[FFmpeg-trac] #10986(avfilter:new): The "scale" filter has wrong color range ("out_range") parameter autodetection and set

FFmpeg trac at avcodec.org
Tue Apr 30 08:47:58 EEST 2024


#10986: The "scale" filter has wrong color range ("out_range") parameter
autodetection and set
----------------------------------+---------------------------------------
             Reporter:  ioctl     |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avfilter  |                  Version:  unspecified
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+---------------------------------------
 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.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10986>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list