Parsing H264 in mdat MP4

前端 未结 3 1610
执笔经年
执笔经年 2021-02-01 07:35

I have a file that only contains the mdat atom in a MP4 container. The data in the mdat contains AVC data. I know the encoding parameters for the data. The format does not appea

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-01 08:31

    Be careful! The NAL Length is not required to be 4! The AvcConfigurationBox ('moov/trak/mdia/minf/stbl/stsd/avc1/avcC') contains a field 'lengthSizeMinusOne' specifying the length. But the default is 4.

提交回复
热议问题