#10986 closed defect (worksforme)
The "scale" filter has wrong color range ("out_range") parameter autodetection and set
Reported by: | ioctl | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avfilter |
Version: | unspecified | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Here are the steps to reproduce from scratch:
Generate video with the PC color range:
ffmpeg -f lavfi -i mandelbrot=end_pts=50:size=1920x1080 -pix_fmt yuv420p10le -vf scale=out_range=pc -t 5 mandelbrot-in.mkv
Variant 1, scale and encode with the x264:
ffmpeg -i mandelbrot-in.mkv -vf scale=960:-1:flags=lanczos mandelbrot-x264.mp4
ffprobe mandelbrot-x264.mp4 2>&1 | grep yuv4
in the output color type is yuv420p10le(progressive) , no PC spec
Variant 2, scale and encode with the svt-av1:
ffmpeg -i mandelbrot-in.mkv -vf scale=960:-1:flags=lanczos -c:v libsvtav1 mandelbrot-av1.mp4
ffprobe mandelbrot-av1.mp4 2>&1 | grep yuv4
in the output color type is yuv420p10le(tv, progressive) , PC become unexpected TV
Looks like the scale filter has incorrect input color range autodetection and/or incorrect set of this option for the further encoding.
Change History (4)
comment:1 by , 7 months ago
comment:2 by , 7 months ago
There is no such option. Why it should be there?
It's not obvious that the scale filter will touch out_range. This behavior seems unexpected.
comment:3 by , 7 months ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Can't reproduce; works with git master.
comment:4 by , 7 months ago
FYI.
Just tested git master version - works fine. This bug was in version 6.1.1
Where is out_range=pc in second and third commands?