MP4 segments with a title in each keyframe

I am trying to find h264 frames in a mp4 container of a segmented file (styp). For segmentation, I currently use the MP4Box dash. I used the MP4Box parser, and I noticed that in each keyframe (IDR) the sample size is different from the size of the same frame in the source file. I calculated the difference and always 37 bytes for the same file in other segments.

enter image description here

What do these bytes represent? They are displayed only in segmented mp4 file types before each keyframe. I tested with other files, and the number of these bytes varied a bit (the other file was 39 bytes) and are not the same data (although they have several byte patterns). Is this something from the mp4 or H264 standard, or even the MP4Box? I have no clue.

+4
1

00 00 00 19 67 ... - H.264 SPS NAL 0x19 (25) + 4 = 29

00 00 00 04 68 ... - H.264 PPS NAL 0x04 (4) + 4 = 8

29 + 8 = 37 SPS/PPS. mp4 ( avc1) SPS/PPS ( mdat) avcC. . Afaik SPS/PPS , avc3.

+5

Source: https://habr.com/ru/post/1694541/


All Articles