H.264 conversion with FFmpeg (from a RTP stream)

不羁的心 提交于 2019-12-02 17:11:27

Besides adding the MP4 container, ffmpeg converted your H.264 Annex B byte stream (with NAL prefixes) to a length prefixed format.

Your [0x00 0x00][2 "Random" Bytes] is a 32 bit integer, giving the length of the following NAL unit in bytes.

Looks like the stream got packetized. Many container formats split up the bitstream into packets and add a bit of info such as time stamps, length of the packet, etc. This gives hooks to the decoder to skip through the file without decoding everything, resynching when a packet is lost, synching audio/video, combining multiple streams, etc.

Look at the MP4 file format info for more information:
http://en.wikipedia.org/wiki/MPEG-4_Part_14

You can read more about your changes in open h264 specs. Chapter Annex B.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!