[英]How to convert MP4 (h264/aac) file to F4F fragments for HDS (Adobe)
I am looking for some input on how to programmatically convert mp4 files to fragmented f4f files with accompanying manifests. 我正在寻找有关如何以编程方式将mp4文件转换为带有清单的f4f碎片文件的信息。
I currently have an implementation for creating segmented MPEG2-TS files with accompanying manifest for Apples HLS, and want to create a similar piece of software for Adobes HDS. 我目前有一个用于为Apple HLS创建带有相应清单的分段MPEG2-TS文件的实现,并且想为Adobe HDS创建一个类似的软件。
My code is based on Libav (alternatively, ffmpeg), so I was hoping they had native support for muxing f4f files, but I have not been able to find any resources for it. 我的代码基于Libav(或者ffmpeg),因此我希望他们对混合f4f文件具有本机支持,但是我无法为其找到任何资源。
What I am specifically looking for: 我要寻找的是:
libav
? libav
如何使用格式? h264_mp4toannexb
filter required for converting MP4 to MPEG2 TS)? 是否有特殊要求(例如将MP4转换为MPEG2 TS所需的h264_mp4toannexb
过滤器)? libav
/ ffmpeg
) 任何示例代码(即使未使用libav
/ ffmpeg
) I'm afraid you have to read mp4/f4f specification, and implementation it your self. 恐怕您必须阅读mp4 / f4f规范,并自行实现。
The code of mod_h264_streaming ( http://h264.code-shop.com/trac ) may be helpful. mod_h264_streaming( http://h264.code-shop.com/trac )的代码可能会有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.