[英]How to create an Mp4 file from H264 raw data that I am receiving from a live streamer
How to create an Mp4 file from H264 raw data that I am receiving from a live streamer (no predefined duration or moov atom), unfortunately can't use FFMPEG, I have to write my own code using live555. 如何从我从实时流媒体接收的H264原始数据创建Mp4文件(没有预定义的持续时间或moov原子),不幸的是无法使用FFMPEG,我必须使用live555编写自己的代码。 Can somebody help me with Mp4 container and how h264 data has to be pushed into it.?
有人可以帮助我使用Mp4容器,以及如何将h264数据推入其中吗? Thank you in advance : )
先感谢您 : )
There are several operations to be made to store H.264 raw data into MP4, among them: 有几种操作可以将H.264原始数据存储到MP4中,其中包括:
moov
box moov
盒子 mdat
box, possibly storing non-VCL NAL units in the moov
box mdat
框中,可能将非VCL NAL单元存储在moov
框中 It also depends on your requirements. 这也取决于您的要求。 If you want to do the conversion on-the-fly, you have to use fragmented mp4.
如果要即时进行转换,则必须使用片段化的mp4。 If you can store the H264 and then do the conversion, you may use non-fragmented mp4.
如果您可以存储H264然后进行转换,则可以使用非片段化mp4。 In particular using
MP4Box
: 特别是使用
MP4Box
:
MP4Box -add file.264 file.mp4
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.