[FFmpeg-trac] #8943(undetermined:new): scale filters in_range and out_range have no effect

FFmpeg trac at avcodec.org
Sat Oct 24 15:03:46 EEST 2020

#8943: scale filters in_range and out_range have no effect
             Reporter:               |                     Type:  defect
  Videogamer555                      |
               Status:  new          |                 Priority:  important
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 Summary of the bug:
 When I noticed that the output of the padding filter (-vf
 pad=x=37:y=20:width=254:height=263:color=black) was generating black who's
 padding "black" values were anything but black (they had a pixel value of
 16, not 0), I realized that it was thinking I wanted an output range of 16
 to 235, but that wasn't what I wanted. So I decided to override it with a
 scaling filter. The new filter command I was now using was (-vf
 Unfortunately the padding STILL had the range of 16 to 235.

 How to reproduce:
 ffmpeg -i video.mp4 -vf
 -r 30 -f rawvideo -dn -an -sn -pix_fmt gray8 -y video.data

 ffmpeg version N-93298-g0ce759defd

 built with gcc 8.2.1 (GCC) 20190212

 I've attached the input and output files to this ticket. The input file is
 video.mp4 and the output is video.data

 Note that this is on the Windows version of FFMPEG, not sure if the same
 bug exists on the Linux version, as a 3rd party is the only one compiling
 for Windows (that 3rd party is ffmpeg.zeranoe.com). The official build is
 always for Linux, but I don't have a Linux computer, so that is not an
 option for me.

Ticket URL: <https://trac.ffmpeg.org/ticket/8943>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list