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

后端 未结 3 1802
广开言路
广开言路 2021-01-30 07:57

Environment:

I have an IP Camera, which is capable of streaming it\'s data over RTP in a H.264 encoded format. This raw stream is recorded from the ethe

相关标签:
3条回答
  • 2021-01-30 08:19

    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

    0 讨论(0)
  • 2021-01-30 08:21

    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.

    0 讨论(0)
  • 2021-01-30 08:22

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

    0 讨论(0)
提交回复
热议问题