Tool
A name like yuv420p10le in ffprobe output or an ffmpeg command packs three things into one word: how much the color was reduced, how many bits each sample takes, and in what order the data is stored. Enter a name and the tool spells it out, then calculates the raw size before compression from resolution, fps and length. All calculations happen inside this browser and nothing is sent to a server.
Decode a pix_fmt name
yuv420p
Among 16 pixels (4×4), there are only 4 places carrying color information. Pixels with the same number share one chroma value. Luma (Y) is stored separately for all 16.
Size before compression (raw): calculated by arithmetic
This is a theoretical value from width × height × fps × length (1 GB = 1 billion bytes), not the size of a saved file. Bit depths above 8 are calculated as held in 16-bit slots. The size after compressing with x264 or x265 differs from this value, and this site has not measured compressed size by chroma format.
Changing only the chroma at the same resolution and fps (raw size comparison)
| pix_fmt | One second | 60 sec | vs. 420 |
|---|---|---|---|
| yuv420p | 93.31 MB | 5.60 GB | ×1.00 |
| yuv422p | 124 MB | 7.46 GB | ×1.33 |
| yuv444p | 187 MB | 11.20 GB | ×2.00 |
| yuv420p10le | 187 MB | 11.20 GB | ×1.00 |
| yuv422p10le | 249 MB | 14.93 GB | ×1.33 |
| yuv444p10le | 373 MB | 22.39 GB | ×2.00 |
“vs. 420” is the ratio with 4:2:0 at the same bit depth as 1. 10-bit is held in a 16-bit slot, so it is calculated as twice 8-bit, but that is before compression. For the difference in bit depth after compression, see the 10-bit vs. 8-bit measurements.
Does this browser accept the profile?
This is the result of asking canPlayType about each codec string. The answer is per profile, so it does not tell you whether an actual file plays at that chroma format and bit depth, or whether it is handled in hardware.
| Profile | Answer |
|---|---|
| H.264 High (4:2:0 8bit) | … |
| H.264 High 10 (10bit) | … |
| H.264 High 4:2:2 | … |
| H.264 High 4:4:4 Predictive | … |
| HEVC Main (4:2:0 8bit) | … |
| HEVC Main 10 | … |
| HEVC Range Extensions (4:2:2·4:4:4 etc.) | … |
| VP9 Profile 0 (4:2:0) | … |
| VP9 Profile 1 (4:2:2·4:4:4) | … |
| AV1 Main (4:2:0) | … |
| AV1 High (4:4:4) | … |
ffmpeg command to encode to the pix_fmt you want
ffmpeg -i input.mp4 -c:v libx264 -crf 20 -preset slow -pix_fmt yuv420p -c:a copy output.mp4To check the result:
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,profile,pix_fmt,color_range -of default=nw=1 output.mp4The CRF value is a starting point, not a guarantee of quality.
Read yuv420p10le in pieces: yuv (a luma + chroma model), 420 (chroma subsampling), p (planar, each component stored separately), 10 (10 bits per sample) and le (little endian).nv12 is a 4:2:0 8-bit layout that stores U and V alternating in a single plane, and p010le is its 10-bit version. gbrp stores RGB as planes, so it does not reduce color. If a name has no bit count, it is 8-bit.
The eye is sensitive to changes in brightness and less sensitive to changes in color, so the format keeps luma (Y) for every pixel and lowers only the resolution of the chroma (U·V). 4:4:4 reduces nothing, 4:2:2 halves the chroma horizontally, and 4:2:0 halves it both horizontally and vertically. At the same 8 bits, a pixel takes 1.5 samples in 4:2:0, 2 in 4:2:2 and 3 in 4:4:4, so the raw sizes come out at 1 : 1.33 : 2 (the arithmetic values in the table above). The principle is covered in more detail in Chroma subsampling in the course.
When chroma is reduced, brightness edges stay sharp but color edges can bleed. Places where only the color changes abruptly, such as red text on a black background, thin colored lines and the edges of subtitles, show it first. Natural footage has smoothly changing color, so it tends to show less. This is why people look for 4:4:4 in screen recordings, graphics and document videos. However, how visible the difference is and how much the file size grows after compression were not measured on this site.
ffmpeg passes the input format to the encoder as is whenever it can. If you feed x264 a screen recording stored as RGB, a PNG sequence, or a source shot in 4:4:4 or 4:2:2, it may be encoded with a non-4:2:0 profile (High 4:4:4 Predictive and the like). Such files are known not to open on some devices, browsers and TVs that reliably play only 4:2:0 8-bit. If compatibility is the goal, pin the format with -pix_fmt yuv420p. Conversely, 4:2:2 and 4:4:4 make sense if you are keeping an intermediate file for editing or a screen recording where color edges matter. The command box in the tool above generates the command for both cases.
To see what format a file is in, use the video file info inspector or ffprobe. To find out whether a file fails to play because of its profile or 10-bit, continue with the playability checker.
pix_fmt= value from ffprobe in the box above to see its chroma format and bit depth.yuv420p; for editing or archiving, choose the same format as the source, then copy the command.pix_fmt is the value you intended.ffmpeg -pix_fmts. The bit depths and slot sizes are this site's summary of the naming rules and were not checked one by one against actual ffmpeg output.