{
 "date": "2026-11-13",
 "ffmpeg_version": "ffmpeg version 8.1.1-full_build-www.gyan.dev Copyright (c) 2000-2026 the FFmpeg developers",
 "machine_note": "One Windows 11 laptop; wall-clock timings include ffmpeg process start-up.",
 "title": "4:2:0 vs 4:4:4 H.264 on a synthetic screen recording",
 "scope": "One synthetic 1280x1400 screen image rendered with PIL, scrolled into a 1280x720 30 fps 8 s clip. Playback support for 4:4:4 was NOT tested; only the ffprobe pixel format is reported.",
 "published_files": {
  "adsense-a-chroma-420-matched.mp4": {
   "bytes": 349557,
   "sha256": "624e4d6dcc94ae569348c219a530c2b53fea0ed3b5d1208786b9f33ef6d529d0"
  },
  "adsense-a-chroma-444-matched.mp4": {
   "bytes": 302549,
   "sha256": "31b24d424411112c5fc732b6943ea34b6e780dda1687213726febe6fe11e698e"
  },
  "adsense-a-chroma-crop-chips.png": {
   "bytes": 79424,
   "sha256": "aed22b758e39c0fc73634d056283fdee5ed39c8e8ae9f175a8befab926814ee9"
  },
  "adsense-a-chroma-crop-code.png": {
   "bytes": 94736,
   "sha256": "12ee2930327b69e7430bb8e1ee48ec3597f3fca810c5f6b9f1b3a1960094beea"
  },
  "adsense-a-chroma-grid.svg": {
   "bytes": 2801,
   "sha256": "87ed78ff9f13c9ccd7f2cfa9aab6c50df2af79b7c452e5e59b270ee5d472e81a"
  },
  "adsense-a-chroma-source.png": {
   "bytes": 185098,
   "sha256": "12336301935215c04824363c3ad4ed4885c12186ff65471b0ba535d2460fe62f"
  }
 },
 "published_name_map": {
  "screen-source.png": "adsense-a-chroma-source.png",
  "chroma-420-matched.mp4": "adsense-a-chroma-420-matched.mp4",
  "chroma-444-matched.mp4": "adsense-a-chroma-444-matched.mp4"
 },
 "crop_figures": {
  "chips": "frame t=1 s, box x676 y244 300x90, 3x nearest",
  "code": "frame t=1 s, box x26 y218 330x50, 3x nearest"
 },
 "main_experiment": {
  "png": "screen-source.png",
  "crop_expr": "crop=1280:720:0:'min(max(0,(t-2)*170),680)'",
  "sws_flags": "bicubic+accurate_rnd+full_chroma_int",
  "encodes": {
   "chroma-420-lossless": {
    "file": "chroma-420-lossless.mp4",
    "cmds": [
     "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv420p -c:v libx264 -preset medium -qp 0 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -movflags +faststart chroma-420-lossless.mp4"
    ],
    "bytes": 1397672,
    "kbps": 1397.7,
    "ffprobe": {
     "programs": [],
     "stream_groups": [],
     "streams": [
      {
       "codec_name": "h264",
       "profile": "High 4:4:4 Predictive",
       "width": 1280,
       "height": 720,
       "pix_fmt": "yuv420p",
       "color_space": "bt709",
       "nb_frames": "240"
      }
     ],
     "format": {
      "duration": "8.000000",
      "size": "1397672"
     }
    },
    "metrics": {
     "psnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-lossless.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
      "line": "PSNR y:inf u:36.501557 v:35.755159 average:37.873255 min:37.011430 max:39.454968"
     },
     "ssim": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-lossless.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]ssim -f null -",
      "line": "SSIM Y:1.000000 (inf) U:0.963796 (14.412459) V:0.960112 (13.991528) All:0.974636 (15.957808)"
     },
     "rgbpsnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-lossless.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=in_color_matrix=bt709:in_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=gbrp[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',format=gbrp[r];[d][r]psnr -f null -",
      "line": "PSNR r:31.553307 g:41.301403 b:31.033447 average:32.835374 min:31.875047 max:34.474462"
     },
     "vmaf": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-lossless.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]libvmaf=n_threads=4 -f null -",
      "line": "VMAF score: 98.703542"
     }
    }
   },
   "chroma-444-lossless": {
    "file": "chroma-444-lossless.mp4",
    "cmds": [
     "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p -c:v libx264 -preset medium -qp 0 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -movflags +faststart chroma-444-lossless.mp4"
    ],
    "bytes": 373707,
    "kbps": 373.7,
    "ffprobe": {
     "programs": [],
     "stream_groups": [],
     "streams": [
      {
       "codec_name": "h264",
       "profile": "High 4:4:4 Predictive",
       "width": 1280,
       "height": 720,
       "pix_fmt": "yuv444p",
       "color_space": "bt709",
       "nb_frames": "240"
      }
     ],
     "format": {
      "duration": "8.000000",
      "size": "373707"
     }
    },
    "metrics": {
     "psnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-lossless.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
      "line": "PSNR y:inf u:inf v:inf average:inf min:inf max:inf"
     },
     "ssim": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-lossless.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]ssim -f null -",
      "line": "SSIM Y:1.000000 (inf) U:1.000000 (inf) V:1.000000 (inf) All:1.000000 (inf)"
     },
     "rgbpsnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-lossless.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=in_color_matrix=bt709:in_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=gbrp[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',format=gbrp[r];[d][r]psnr -f null -",
      "line": "PSNR r:53.098927 g:60.760393 b:59.124575 average:56.344053 min:54.063727 max:59.596104"
     },
     "vmaf": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-lossless.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]libvmaf=n_threads=4 -f null -",
      "line": "VMAF score: 98.703542"
     }
    }
   },
   "chroma-420-crf18": {
    "file": "chroma-420-crf18.mp4",
    "cmds": [
     "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv420p -c:v libx264 -preset medium -crf 18 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -movflags +faststart chroma-420-crf18.mp4"
    ],
    "bytes": 407846,
    "kbps": 407.8,
    "ffprobe": {
     "programs": [],
     "stream_groups": [],
     "streams": [
      {
       "codec_name": "h264",
       "profile": "High",
       "width": 1280,
       "height": 720,
       "pix_fmt": "yuv420p",
       "color_space": "bt709",
       "nb_frames": "240"
      }
     ],
     "format": {
      "duration": "8.000000",
      "size": "407846"
     }
    },
    "metrics": {
     "psnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-crf18.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
      "line": "PSNR y:53.674034 u:36.352358 v:35.628476 average:37.699533 min:36.749791 max:39.115186"
     },
     "ssim": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-crf18.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]ssim -f null -",
      "line": "SSIM Y:0.999767 (36.329984) U:0.960384 (14.021296) V:0.957042 (13.669573) All:0.972398 (15.590560)"
     },
     "rgbpsnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-crf18.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=in_color_matrix=bt709:in_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=gbrp[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',format=gbrp[r];[d][r]psnr -f null -",
      "line": "PSNR r:31.381805 g:40.823705 b:30.833442 average:32.634483 min:31.580904 max:34.080215"
     },
     "vmaf": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-crf18.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]libvmaf=n_threads=4 -f null -",
      "line": "VMAF score: 98.462292"
     }
    }
   },
   "chroma-444-crf18": {
    "file": "chroma-444-crf18.mp4",
    "cmds": [
     "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p -c:v libx264 -preset medium -crf 18 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -movflags +faststart chroma-444-crf18.mp4"
    ],
    "bytes": 287423,
    "kbps": 287.4,
    "ffprobe": {
     "programs": [],
     "stream_groups": [],
     "streams": [
      {
       "codec_name": "h264",
       "profile": "High 4:4:4 Predictive",
       "width": 1280,
       "height": 720,
       "pix_fmt": "yuv444p",
       "color_space": "bt709",
       "nb_frames": "240"
      }
     ],
     "format": {
      "duration": "8.000000",
      "size": "287423"
     }
    },
    "metrics": {
     "psnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-crf18.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
      "line": "PSNR y:53.528110 u:50.261556 v:50.407842 average:51.162024 min:47.374331 max:53.181449"
     },
     "ssim": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-crf18.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]ssim -f null -",
      "line": "SSIM Y:0.999728 (35.654340) U:0.996266 (24.277794) V:0.997110 (25.391747) All:0.997701 (26.385294)"
     },
     "rgbpsnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-crf18.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=in_color_matrix=bt709:in_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=gbrp[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',format=gbrp[r];[d][r]psnr -f null -",
      "line": "PSNR r:44.486829 g:50.509761 b:43.856745 average:45.445085 min:42.368345 max:47.723995"
     },
     "vmaf": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-crf18.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]libvmaf=n_threads=4 -f null -",
      "line": "VMAF score: 98.472099"
     }
    }
   },
   "chroma-420-crf23": {
    "file": "chroma-420-crf23.mp4",
    "cmds": [
     "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv420p -c:v libx264 -preset medium -crf 23 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -movflags +faststart chroma-420-crf23.mp4"
    ],
    "bytes": 334028,
    "kbps": 334.0,
    "ffprobe": {
     "programs": [],
     "stream_groups": [],
     "streams": [
      {
       "codec_name": "h264",
       "profile": "High",
       "width": 1280,
       "height": 720,
       "pix_fmt": "yuv420p",
       "color_space": "bt709",
       "nb_frames": "240"
      }
     ],
     "format": {
      "duration": "8.000000",
      "size": "334028"
     }
    },
    "metrics": {
     "psnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-crf23.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
      "line": "PSNR y:48.942791 u:36.098255 v:35.405559 average:37.396424 min:36.643809 max:38.672084"
     },
     "ssim": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-crf23.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]ssim -f null -",
      "line": "SSIM Y:0.999242 (31.205179) U:0.955275 (13.494448) V:0.952137 (13.199986) All:0.968885 (15.070240)"
     },
     "rgbpsnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-crf23.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=in_color_matrix=bt709:in_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=gbrp[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',format=gbrp[r];[d][r]psnr -f null -",
      "line": "PSNR r:31.077300 g:40.043958 b:30.493112 average:32.286640 min:31.489943 max:33.539359"
     },
     "vmaf": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-crf23.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]libvmaf=n_threads=4 -f null -",
      "line": "VMAF score: 98.255617"
     }
    }
   },
   "chroma-444-crf23": {
    "file": "chroma-444-crf23.mp4",
    "cmds": [
     "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p -c:v libx264 -preset medium -crf 23 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -movflags +faststart chroma-444-crf23.mp4"
    ],
    "bytes": 227069,
    "kbps": 227.1,
    "ffprobe": {
     "programs": [],
     "stream_groups": [],
     "streams": [
      {
       "codec_name": "h264",
       "profile": "High 4:4:4 Predictive",
       "width": 1280,
       "height": 720,
       "pix_fmt": "yuv444p",
       "color_space": "bt709",
       "nb_frames": "240"
      }
     ],
     "format": {
      "duration": "8.000000",
      "size": "227069"
     }
    },
    "metrics": {
     "psnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-crf23.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
      "line": "PSNR y:48.944049 u:46.001535 v:45.926765 average:46.749737 min:45.312100 max:48.537913"
     },
     "ssim": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-crf23.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]ssim -f null -",
      "line": "SSIM Y:0.999135 (30.630820) U:0.990963 (20.439951) V:0.992918 (21.498689) All:0.994339 (22.471069)"
     },
     "rgbpsnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-crf23.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=in_color_matrix=bt709:in_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=gbrp[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',format=gbrp[r];[d][r]psnr -f null -",
      "line": "PSNR r:40.530755 g:46.276932 b:39.689056 average:41.357152 min:39.957538 max:43.288956"
     },
     "vmaf": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-crf23.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]libvmaf=n_threads=4 -f null -",
      "line": "VMAF score: 98.142751"
     }
    }
   },
   "chroma-420-crf28": {
    "file": "chroma-420-crf28.mp4",
    "cmds": [
     "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv420p -c:v libx264 -preset medium -crf 28 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -movflags +faststart chroma-420-crf28.mp4"
    ],
    "bytes": 244785,
    "kbps": 244.8,
    "ffprobe": {
     "programs": [],
     "stream_groups": [],
     "streams": [
      {
       "codec_name": "h264",
       "profile": "High",
       "width": 1280,
       "height": 720,
       "pix_fmt": "yuv420p",
       "color_space": "bt709",
       "nb_frames": "240"
      }
     ],
     "format": {
      "duration": "8.000000",
      "size": "244785"
     }
    },
    "metrics": {
     "psnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-crf28.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
      "line": "PSNR y:43.875964 u:35.618949 v:34.939480 average:36.737644 min:36.114711 max:37.666130"
     },
     "ssim": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-crf28.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]ssim -f null -",
      "line": "SSIM Y:0.997352 (25.770239) U:0.946598 (12.724440) V:0.942945 (12.437069) All:0.962298 (14.236391)"
     },
     "rgbpsnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-crf28.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=in_color_matrix=bt709:in_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=gbrp[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',format=gbrp[r];[d][r]psnr -f null -",
      "line": "PSNR r:30.393001 g:38.341079 b:29.805808 average:31.537187 min:30.868939 max:32.355654"
     },
     "vmaf": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-crf28.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]libvmaf=n_threads=4 -f null -",
      "line": "VMAF score: 97.380082"
     }
    }
   },
   "chroma-444-crf28": {
    "file": "chroma-444-crf28.mp4",
    "cmds": [
     "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p -c:v libx264 -preset medium -crf 28 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -movflags +faststart chroma-444-crf28.mp4"
    ],
    "bytes": 186335,
    "kbps": 186.3,
    "ffprobe": {
     "programs": [],
     "stream_groups": [],
     "streams": [
      {
       "codec_name": "h264",
       "profile": "High 4:4:4 Predictive",
       "width": 1280,
       "height": 720,
       "pix_fmt": "yuv444p",
       "color_space": "bt709",
       "nb_frames": "240"
      }
     ],
     "format": {
      "duration": "8.000000",
      "size": "186335"
     }
    },
    "metrics": {
     "psnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-crf28.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
      "line": "PSNR y:43.844732 u:42.669841 v:42.358623 average:42.912052 min:41.446222 max:44.391164"
     },
     "ssim": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-crf28.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]ssim -f null -",
      "line": "SSIM Y:0.997596 (26.191144) U:0.982602 (17.594946) V:0.985232 (18.306692) All:0.988477 (19.384183)"
     },
     "rgbpsnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-crf28.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=in_color_matrix=bt709:in_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=gbrp[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',format=gbrp[r];[d][r]psnr -f null -",
      "line": "PSNR r:36.799569 g:41.721708 b:36.126800 average:37.609657 min:35.931425 max:39.106097"
     },
     "vmaf": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-crf28.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]libvmaf=n_threads=4 -f null -",
      "line": "VMAF score: 97.256776"
     }
    }
   },
   "chroma-420-matched": {
    "file": "chroma-420-matched.mp4",
    "cmds": [
     "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv420p -c:v libx264 -preset medium -b:v 334k -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -pass 1 -passlogfile chroma-420-matched -f null -",
     "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv420p -c:v libx264 -preset medium -b:v 334k -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -pass 2 -passlogfile chroma-420-matched -movflags +faststart chroma-420-matched.mp4"
    ],
    "bytes": 349557,
    "kbps": 349.6,
    "ffprobe": {
     "programs": [],
     "stream_groups": [],
     "streams": [
      {
       "codec_name": "h264",
       "profile": "High",
       "width": 1280,
       "height": 720,
       "pix_fmt": "yuv420p",
       "color_space": "bt709",
       "nb_frames": "240"
      }
     ],
     "format": {
      "duration": "8.000000",
      "size": "349557"
     }
    },
    "metrics": {
     "psnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-matched.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
      "line": "PSNR y:47.886167 u:35.993246 v:35.309037 average:37.271093 min:36.436614 max:38.817126"
     },
     "ssim": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-matched.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]ssim -f null -",
      "line": "SSIM Y:0.998774 (29.115243) U:0.953213 (13.298718) V:0.950128 (13.021420) All:0.967372 (14.864033)"
     },
     "rgbpsnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-matched.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=in_color_matrix=bt709:in_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=gbrp[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',format=gbrp[r];[d][r]psnr -f null -",
      "line": "PSNR r:30.948800 g:39.748557 b:30.357090 average:32.144862 min:31.271555 max:33.705882"
     },
     "vmaf": {
      "cmd": "ffmpeg -hide_banner -i chroma-420-matched.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]libvmaf=n_threads=4 -f null -",
      "line": "VMAF score: 98.105318"
     }
    }
   },
   "chroma-444-matched": {
    "file": "chroma-444-matched.mp4",
    "cmds": [
     "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p -c:v libx264 -preset medium -b:v 334k -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -pass 1 -passlogfile chroma-444-matched -f null -",
     "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p -c:v libx264 -preset medium -b:v 334k -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -pass 2 -passlogfile chroma-444-matched -movflags +faststart chroma-444-matched.mp4"
    ],
    "bytes": 302549,
    "kbps": 302.5,
    "ffprobe": {
     "programs": [],
     "stream_groups": [],
     "streams": [
      {
       "codec_name": "h264",
       "profile": "High 4:4:4 Predictive",
       "width": 1280,
       "height": 720,
       "pix_fmt": "yuv444p",
       "color_space": "bt709",
       "nb_frames": "240"
      }
     ],
     "format": {
      "duration": "8.000000",
      "size": "302549"
     }
    },
    "metrics": {
     "psnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-matched.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
      "line": "PSNR y:50.208287 u:47.396347 v:47.555195 average:48.210014 min:43.587444 max:51.578431"
     },
     "ssim": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-matched.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]ssim -f null -",
      "line": "SSIM Y:0.999274 (31.390770) U:0.993792 (22.070172) V:0.995348 (23.323320) All:0.996138 (24.131606)"
     },
     "rgbpsnr": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-matched.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=in_color_matrix=bt709:in_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=gbrp[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',format=gbrp[r];[d][r]psnr -f null -",
      "line": "PSNR r:41.980587 g:47.610224 b:41.223952 average:42.835624 min:38.359528 max:45.406599"
     },
     "vmaf": {
      "cmd": "ffmpeg -hide_banner -i chroma-444-matched.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]libvmaf=n_threads=4 -f null -",
      "line": "VMAF score: 98.278997"
     }
    }
   }
  },
  "matched_target_kbps": 334,
  "ffmpeg_version": "ffmpeg version 8.1.1-full_build-www.gyan.dev Copyright (c) 2000-2026 the FFmpeg developers"
 },
 "downsampling_filter_check": {
  "area": {
   "cmd": "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=area+accurate_rnd+full_chroma_int,format=yuv420p -c:v libx264 -preset medium -crf 23 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -movflags +faststart chroma-420-crf23-area.mp4",
   "metric_cmd": "ffmpeg -hide_banner -i chroma-420-crf23-area.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
   "bytes": 310081,
   "psnr": "PSNR y:48.941762 u:36.201760 v:35.510906 average:37.498430 min:36.611377 max:38.851718"
  },
  "bilinear": {
   "cmd": "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bilinear+accurate_rnd+full_chroma_int,format=yuv420p -c:v libx264 -preset medium -crf 23 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -movflags +faststart chroma-420-crf23-bilinear.mp4",
   "metric_cmd": "ffmpeg -hide_banner -i chroma-420-crf23-bilinear.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
   "bytes": 314992,
   "psnr": "PSNR y:49.039248 u:35.773985 v:35.107621 average:37.095418 min:36.358411 max:38.293176"
  },
  "neighbor": {
   "cmd": "ffmpeg -hide_banner -y -loop 1 -framerate 30 -t 8 -i screen-source.png -vf crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=neighbor+accurate_rnd+full_chroma_int,format=yuv420p -c:v libx264 -preset medium -crf 23 -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv -threads 4 -an -movflags +faststart chroma-420-crf23-neighbor.mp4",
   "metric_cmd": "ffmpeg -hide_banner -i chroma-420-crf23-neighbor.mp4 -loop 1 -framerate 30 -t 8 -i screen-source.png -lavfi [0:v]scale=flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[d];[1:v]crop=1280:720:0:'min(max(0,(t-2)*170),680)',scale=out_color_matrix=bt709:out_range=tv:flags=bicubic+accurate_rnd+full_chroma_int,format=yuv444p[r];[d][r]psnr -f null -",
   "bytes": 382966,
   "psnr": "PSNR y:48.917908 u:35.073781 v:34.526657 average:36.469353 min:35.263069 max:38.338805"
  }
 }
}