Android 和 Live 555 媒体兼容性

发布于 2024-10-27 12:51:07 字数 417 浏览 0 评论 0原文

我对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぇ气 2024-11-03 12:51:07

由于Android(取决于版本)和Live555支持不同的编解码器集。

例如,如果您使用的是 Android 2.2;

  • MPEG_4、H263、H264、THREE_GPP

Live555(截至 2011 年 3 月 14 日来源)

  • MPEG 传输流文件(文件名后缀为“.ts”)
  • MPEG-1 或 2 节目流文件(文件名后缀为“.mpg”)
  • MPEG- 4 视频基本流文件(文件名后缀为“.m4e”)
  • H.264 视频基本流文件(文件名后缀为“.264”)
  • DV 视频文件(文件名后缀为“.dv”)
  • MPEG-1 或 2 (包括第三层 - 即“MP3”) 音频文件(文件名后缀为“.mp3”)
  • WAV (PCM) 音频文件(文件名后缀为“.wav”)
  • AMR 音频文件(文件名后缀为“.amr” ) 》)
  • AAC(ADTS格式)音频文件(文件名后缀为“.aac”)

如果你对编码不太了解,建议你使用ffmpeg 库,用于将一种格式转码为另一种格式。

Since Android (depending on version) and Live555 support different sets of codecs.

For example if you are using Android 2.2;

  • MPEG_4,H263, H264, THREE_GPP

Live555 (as of 2011.03.14 sources )

  • MPEG Transport Stream file (with file name suffix ".ts")
  • MPEG-1 or 2 Program Stream file (with file name suffix ".mpg")
  • MPEG-4 Video Elementary Stream file (with file name suffix ".m4e")
  • H.264 Video Elementary Stream file (with file name suffix ".264")
  • DV video file (with file name suffix ".dv")
  • MPEG-1 or 2 (including layer III - i.e., 'MP3') audio file (with file name suffix ".mp3")
  • WAV (PCM) audio file (with file name suffix ".wav")
  • AMR audio file (with file name suffix ".amr")
  • AAC (ADTS format) audio file (with file name suffix ".aac")

If you don't know too much about encoding, I suggest you to use ffmpeg library for transcoding one format to another.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文