Chroma siting when converting RGB to 4:2:2 and 4:2:0

Each converter converts sourceimages/chroma_siting_chart.png (16-bit RGB, untagged) to 16-bit 4:2:2 or 4:2:0. Positions are in luma samples: co-sited (0) means the chroma sample sits on the even luma sample, as professional 4:2:2 and H.264/HEVC 4:2:0 expect (left); center (0.5) means half way between two luma samples (JPEG/MPEG-1 style). H.264/HEVC 4:2:0 (left) is co-sited horizontally and centered vertically. Each cell has these lines:

Line Example What it is Correct for pro 4:2:2 / H.264 4:2:0
Position co-sited / center Measured from the chart’s tents: where the chroma samples actually are. For 4:2:0, horizontal / vertical. co-sited (4:2:0: co-sited / center)
Lines consistent (0 / 0) The position measured from single-pixel lines on even and on odd columns (rows). A correct filter gives the same for both. pair-averaged means they differ by about 1: the converter averaged pairs of pixels before filtering, which loses the real siting (libswscale does this for RGB input unless full_chroma_inp is set). consistent
Tag tag not written The chroma location written to the H.264 stream by a lossless encode. not written means readers use the H.264 default, left (ffprobe also shows left). H.264 only signals this for 4:2:0; 4:2:2 has no field and is assumed co-sited. ProRes and DNxHD have no field at all. left or not written

FFmpeg builds: 6.0 = 6.0, 7.0 = 7.0, 7.1 = 7.1.5, 8.0.1 = 8.0.1, 8.1 = 8.1, 9.0 = 9.0.2, 9.1 = 9.1.

Output Converter 6.0 7.0 7.1 8.0.1 8.1 9.0 9.1
4:2:2 scale center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
4:2:2 auto center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
4:2:2 scale_chr_pos co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
4:2:2 scale_chr_pos+full_chroma_inp co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
4:2:2 scale_chroma_loc_left no out_chroma_loc no out_chroma_loc co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
4:2:2 scale_chroma_loc_left+full_chroma_inp no out_chroma_loc no out_chroma_loc co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
4:2:2 auto+chroma_sample_location center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
center
pair-averaged (0 / 1)
tag not written
co-sited (-0.053)
pair-averaged (-0.538 / 0.462)
tag not written
4:2:2 zscale co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
co-sited
consistent (0 / 0)
tag not written
4:2:2 zscale_chromal_center center
consistent (0.5 / 0.5)
tag not written
center
consistent (0.5 / 0.5)
tag not written
center
consistent (0.5 / 0.5)
tag not written
center
consistent (0.5 / 0.5)
tag not written
center
consistent (0.5 / 0.5)
tag not written
center
consistent (0.5 / 0.5)
tag not written
center
consistent (0.5 / 0.5)
tag not written
4:2:0 scale center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
4:2:0 auto center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
4:2:0 scale_chr_pos co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
4:2:0 scale_chr_pos+full_chroma_inp co-sited / center
consistent (0 / 0)
rows: consistent (0.53 / 0.462)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.53 / 0.462)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.53 / 0.462)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.53 / 0.462)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.53 / 0.462)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.53 / 0.462)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.53 / 0.462)
tag not written
4:2:0 scale_chroma_loc_left no out_chroma_loc no out_chroma_loc co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
4:2:0 scale_chroma_loc_left+full_chroma_inp no out_chroma_loc no out_chroma_loc co-sited / center
consistent (0 / 0)
rows: consistent (0.53 / 0.462)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.53 / 0.462)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.53 / 0.462)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.53 / 0.462)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.53 / 0.462)
tag not written
4:2:0 auto+chroma_sample_location center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
center / center
pair-averaged (0 / 1)
rows: consistent (0.53 / 0.459)
tag not written
co-sited (-0.053) / center
pair-averaged (-0.538 / 0.462)
rows: consistent (0.531 / 0.46)
tag not written
4:2:0 zscale co-sited / center
consistent (0 / 0)
rows: consistent (0.469 / 0.531)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.469 / 0.531)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.469 / 0.531)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.469 / 0.531)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.469 / 0.531)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.469 / 0.531)
tag not written
co-sited / center
consistent (0 / 0)
rows: consistent (0.469 / 0.531)
tag not written
4:2:0 zscale_chromal_center center / center
consistent (0.5 / 0.5)
rows: consistent (0.469 / 0.531)
tag center
center / center
consistent (0.5 / 0.5)
rows: consistent (0.469 / 0.531)
tag center
center / center
consistent (0.5 / 0.5)
rows: consistent (0.469 / 0.531)
tag center
center / center
consistent (0.5 / 0.5)
rows: consistent (0.469 / 0.531)
tag center
center / center
consistent (0.5 / 0.5)
rows: consistent (0.469 / 0.531)
tag center
center / center
consistent (0.5 / 0.5)
rows: consistent (0.469 / 0.531)
tag center
center / center
consistent (0.5 / 0.5)
rows: consistent (0.469 / 0.531)
tag center

Copyright © 2022 ORI Contributors. Distributed under a CC BY 4.0 license.

This site uses Just the Docs, a documentation theme for Jekyll.