【问题标题】:How to differentiate between H.264 bitstream and HEVC bitstream?如何区分 H.264 比特流和 HEVC 比特流?
【发布时间】:2019-11-20 08:04:59
【问题描述】:

我有两个解析器来解析 h.264 和 HEVC 比特流。当我得到一个比特流时,如何区分比特流以便我可以使用正确的解析器。

感谢您的帮助

【问题讨论】:

    标签: parsing h.264 codec multimedia hevc


    【解决方案1】:

    对于您正在寻找的 H.264:

    (0x00) 0x00 0x00 0x01 [Access Unit Delimiter]
    
    Where Access Unit Delimiter must be: (byte & 0x1f) == 0x09
    

    对于您正在寻找的 H.265

    (0x00) 0x00 0x00 0x01 [Access Unit Delimiter | VPS | SPS]
    
    Where Access Unit Delimiter must be: (byte >> 1 & 0x3f) == 0x23 or
    VPS must: (byte >> 1 & 0x3f) == 0x20 or 
    SPS must: (byte >> 1 & 0x3f) == 0x21
    

    【讨论】:

      猜你喜欢
      • 2015-12-12
      • 1970-01-01
      • 1970-01-01
      • 2013-11-07
      • 2011-08-18
      • 2022-02-09
      • 1970-01-01
      • 1970-01-01
      • 2016-06-08
      相关资源
      最近更新 更多