[Matroska-devel] libmatroska and H.264

Colin S. Miller matroska-devel at csmiller.demon.co.uk
Mon Jul 15 21:37:22 CEST 2013


What is the format of the first 6 bytes in KaxCodecPrivate for H.264?
Looking a mkvinfo, bytes 1 & 3 are the profile_idc and level_idc, however
mkvinfo doesn't decode the remaining bytes.

Immediately following this, appears to be
2 bytes SPS length, in little endian format.
The SPS data
1 byte of '0x01'

2 bytes PPS length, in little endian format
The PPS data
end of private data.

Both the SPS/PPS do not have the leading 0x00 0x00 0x00 0x01 sequence
that most decoders need. Nor does the SimpleBlocks, and RTP data.

Is my analysis of this correct, and if so, what does the 0x01 represent?

Likewise, the SimpleBlock appears to start with 4 bytes representing the
length of the frame, in little endian format.

Can there be several frames in each SimpleBlock, and if so, is there
spacing byte(s) between each frame?

Colin S. Miller

More information about the Matroska-devel mailing list