
H.264 Profiles and Levels Explained for Compatibility
Understand H.264 profiles (Baseline, Main, High) and levels (3.1, 4.1, 5.1): what they limit, how to compute a level from size and rate, and how to set them.
Tag
6 posts

Understand H.264 profiles (Baseline, Main, High) and levels (3.1, 4.1, 5.1): what they limit, how to compute a level from size and rate, and how to set them.

Follow one H.264 frame through the encoder: macroblocks, intra and inter prediction, the 4x4 integer transform, quantisation, deblocking and CAVLC or CABAC.

Learn how I, P and B frames and the GOP work in H.264 video, why keyframes enable seeking, and how to inspect and set them with ffprobe and x264 options.

Convert any video file to MP4 with H.264 and AAC using one gst-launch-1.0 pipeline: demux, decode, encode, mux, handle audio, and finish the file with -e.

Convert MOV, MKV, AVI or WebM files to a widely playable MP4 with H.264 video and AAC audio using one FFmpeg command, and learn what each option does.

Understand codecs and containers from raw pixels to files: compression, frame types, H.264, H.265, VP9, AV1, AAC, Opus, MP4, MKV, WebM, streaming and ffmpeg.