(4) Audio and video H265 learning SPS analysis

(1) Audio and video: Decode H264 file process rendering and get the decoded source data YUV complete demo]
(2) Audio and video: MediaCodec encoding desktop information complete demo to further understand H264
(3) Audio and video: analyze H264 SPS to further understand H264
(4) Audio and video H265 learning SPS analysis

H264主要适合1080P以及以下的视频编解码,无法对4K和8K的视频进行编解码。H265可以对4k和8k视频进行编解码。H265和H264相比主要有哪些相同点和不同点呢?

1. Both H265 and H264 are encoded in macroblocks. The coded macroblocks of H264 are mainly 4 4 to 16 16, and the coded macroblocks of H265 are mainly 4 4 to 64 64.
 2. H264 has 9 prediction directions, and H265 has 35 prediction directions, and the coding is more delicate.
 3. H264: delimiter + type + corresponding type of data
  H265: delimiter + type + corresponding type of data
 4. H264: The last 5 bits of a byte after the delimiter (00 00 00 01) indicate the type.
  H265: The middle 6 bits of a byte after the delimiter (00 00 00 01) indicate the type. If a byte after the delimiter remember b. get type:
  (b&7E)>>1
 5. H264:SPS and P

おすすめ

転載: blog.csdn.net/weixin_43911199/article/details/126879818