Closed ifb closed 1 year ago
The code looks good. The comparison is interesting - in the mobcal comparison it looks like the RGB version has half the vertical chroma resolution, maybe? Is ffmpeg somehow going via a subsampled YCbCr format when we're generating the input?
I believe the swscale defaults are notoriously bad. accurate_rnd and full_chroma_int are off by default? I personally always use zscale, but it doesn't ship with Ubuntu.
https://ffmpeg.org/ffmpeg-scaler.html https://ffmpeg.org/ffmpeg-filters.html#zscale-1
In case anyone else is wondering about this, I tried adding -sws_flags accurate_rnd+bitexact+full_chroma_inp+full_chroma_int
to the ffmpeg command in test-chroma, but it made no difference to the PSNRs...
Adds the -p/--input-format options. Below-black (pluge) patterns are possible now.
There's about a 6 dB bump in PSNR for YUV which makes me distrust the test a bit. The difference is visible, though.
NTSC bars line 420 https://imgsli.com/MTM0NjYx NTSC bars vectorscope https://imgsli.com/MTM0NjYy mobcal frame 3 https://imgsli.com/MTM0NjU2