[FFmpeg-trac] #6524(undetermined:new): Video filter with relative scaling produces invalid resolutions (not divisible by 2)

FFmpeg trac at avcodec.org
Fri Jul 14 17:12:32 EEST 2017


#6524: Video filter with relative scaling produces invalid resolutions (not
divisible by 2)
-------------------------------------+-------------------------------------
             Reporter:  monty        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by tbucher):

 -1 simply preserves source aspect ratio, it doesn't care whether output
 dimensions will be odd or even. If you need them divisible by 2, use -2.

 FFmpeg documentation for the scale filter states:

 If one and only one of the values is -n with n >= 1, the scale filter will
 use a value that maintains the aspect ratio of the input image, calculated
 from the other specified dimension. After that it will, however, make sure
 that the calculated dimension is divisible by n and adjust the value if
 necessary.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6524#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list