leandromoreira / digital_video_introduction

A hands-on introduction to video technology: image, video, codec (av1, vp9, h265) and more (ffmpeg encoding). Translations: 🇺🇸 🇨🇳 🇯🇵 🇮🇹 🇰🇷 🇷🇺 🇧🇷 🇪🇸
https://github.com/leandromoreira/introduction_video_technology
BSD 3-Clause "New" or "Revised" License
15.28k stars 1.32k forks source link

Possible mistake with H.264 profile #102

Closed vonorfasyexela closed 3 years ago

vonorfasyexela commented 3 years ago

In the 6th step of "A generic codec" you have the following line:

The second byte (binary=01100100, hex=0x64, dec=100) of an SPS NAL is the field profile_idc which shows the profile that the encoder has used, in this case, we used the constrained high-profile, it's a high profile without the support of B (bi-predictive) slices.

Maybe it should be just "high profile"? Because the next byte is 0x00 and this next byte determines the actual type of High Profile (constrained or progressive). And if this byte is 0x00 then I guess it is just High Profile.

Please fix me if I'm wrong.

leandromoreira commented 3 years ago
image

I think you're right :)