Android 和 Live 555 媒体兼容性
我对 live555 媒体服务器非常陌生,但我试图用它作为骨干来开发一个简单的视频和音频流服务器,使用 android 作为客户端。我一直在拼命测试,并成功地以扩展名为 .264 的 H.264 编码一个简单的测试视频,并使用完整的 live555 媒体服务器将其流式传输到手机。问题是:我从原始 avi 录制构建了 .264 文件,并大大降低了其规格,使帧大小为 320X240,比特率和帧速率非常低。我真的希望我的系统能够传输 live555 目前不支持但 android 本身支持的任何 mp4 文件。
我可以在不了解太多编码或流媒体的情况下将这种格式实现到 live555 代码中吗?如果这对我来说不可能,请有人告诉我下一步要采取的步骤。我非常确定,尝试根据服务器的请求将 mp4 编码为原始 .264 文件与正确答案相去甚远,但 atm 这是我可以流式传输的唯一格式。任何帮助或指导将不胜感激。
I am very new to live555 media server but I am trying to use it as the backbone to develop a simple video and audio streaming server using android as the client. I have been desperately testing and have managed to encode a simple test video in H.264 with the extension .264 and streamed it to the handset using the complete live555 media server. The problem with this is: I constructed the .264 file from a raw avi recording and lowered its spec considerably making the fame size 320X240 and bit rate and frame rate very low. I really want my system to be able to stream any mp4 file which live555 does not support at the moment but is natively supported by android.
Can I implement this formats into the live555 code without knowing too much about encoding or streaming? If this is not possible for me can some body please advise me on the next steps to take. I am quite sure that trying to encode the mp4 to a raw .264 file upon request at the server is very far from the right answer but atm it is the only format I can stream. Any help or direction would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于Android(取决于版本)和Live555支持不同的编解码器集。
例如,如果您使用的是 Android 2.2;
Live555(截至 2011 年 3 月 14 日来源)
如果你对编码不太了解,建议你使用ffmpeg 库,用于将一种格式转码为另一种格式。
Since Android (depending on version) and Live555 support different sets of codecs.
For example if you are using Android 2.2;
Live555 (as of 2011.03.14 sources )
If you don't know too much about encoding, I suggest you to use ffmpeg library for transcoding one format to another.