H.264 码流格式: Annex-B, AVCC与extradata详解



本篇废弃,参MarkDown整理版:H.264 码流格式: Annex-B, AVCC与extradata详解




AVCC 格式extradata

 
  

0x0000 | 01 64 00 1E FF E1 00 1F 67 64 00 1E AC C8 60 33  // E1: 1SPS  00 1F: SPS 31byte
0x0010 | 0E F9 E6 FF C1 C6 01 C4 44 00 00 03 00 04 00 00 
0x0020 | 03 00 B8 3C 58 B6 68 01 00 05 68 E9 78 47 2C     // 01: 1PPS  00 05: PPS 5byte

extradata语法:

bits      
8   version ( always 0x01 )  
8   avc profile ( sps[0][1] )  
8   avc compatibility ( sps[0][2] )  
8   avc level ( sps[0][3] )  
6   reserved ( all bits on )      // 即 0xFC | current byte
2   NALULengthSizeMinusOne        // 前缀长度-1 
3   reserved ( all bits on )      // 即 0xE0 | currrent byte
5   number of SPS NALUs (usually 1)  
    -- repeated once per SPS --  
16  SPS size  
N   variable SPS NALU data  
8   number of PPS NALUs (usually 1)  
    -- repeated once per PPS --
16  PPS size  
N   variable PPS NALU data  


你可能感兴趣的:(AVC/H.264)