简体   繁体   English

如何将MP4(h264 / aac)文件转换为HDS的F4F片段(Adobe)

[英]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: 我要寻找的是:

  • How (if) the format is used in libav ? libav如何使用格式?
  • If there is any special requirements (such as the h264_mp4toannexb filter required for converting MP4 to MPEG2 TS)? 是否有特殊要求(例如将MP4转换为MPEG2 TS所需的h264_mp4toannexb过滤器)?
  • Any sample code (even if it's not using libav / ffmpeg ) 任何示例代码(即使未使用libav / ffmpeg
  • An easy-to-read manifest specification. 易于阅读的清单规范。

I'm afraid you have to read mp4/f4f specification, and implementation it your self. 恐怕您必须阅读mp4 / f4f规范,并自行实现。

  1. MP4 file format: ISO/IEC 14496-14 MP4文件格式:ISO / IEC 14496-14
  2. f4f file format: It is included in the f4v specification.( http://www.adobe.com/cn/devnet/f4v.html ) f4f文件格式:它包含在f4v规范中。( http://www.adobe.com/cn/devnet/f4v.html

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.

相关问题 解码由 ffmpeg 从 mp4 文件转储的单个 (H264) 数据包 - Decode a single (H264) packet dumped by ffmpeg from a mp4 file 如何使用 libAV 库 (ffmpeg) 将 H264 编码数据放入类似 .mp4 的容器中? - How to put H264 encoded data, inside a container like .mp4 using libAV libraries (ffmpeg)? AVI,MP4和“原始” h264流中的h264。 不同格式的NAL单元(或ffmpeg错误) - h264 inside AVI, MP4 and “Raw” h264 streams. Different format of NAL units (or ffmpeg bug) libavcodec:如何使用可控制的帧速率和比特率(通过C代码)使用h264编解码器,mp4容器进行编码 - libavcodec : how to encode with h264 codec ,with mp4 container using controllable frame rate and bitrate(through c code) 我怎么知道任何h264文件的持续时间? - How can i know the duration of any h264 file? 我如何解析 H264 文件和帧 - How can i parse H264 file and frames 使用x264将OpenGL输出转换为H264 - Convert OpenGL output to H264 with x264 如何使用ffmpeg API将h.264的原始PCM混合到MP4? - How to mux raw PCM with h.264 to MP4 with ffmpeg API? 如何通过 gstreamer 获取 h264 帧 - How to get h264 frames via gstreamer 使用C / C ++中的ffmpeg库从CCTV(HW)编码器将H.264多路复用到MP4,如何获取AVCodecContext :: extradata - H.264 muxing to MP4 from CCTV (HW) encoder using ffmpeg library in C / C++, how to fetch AVCodecContext::extradata
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM