[FFmpeg-trac] #309(undetermined:closed): width or height not divisible by 2

FFmpeg trac at avcodec.org
Mon Jun 27 11:44:49 CEST 2011


#309: width or height not divisible by 2
--------------------------+---------------------------
Reporter:  AlanJames1987  |       Owner:
    Type:  defect         |      Status:  closed
Priority:  normal         |   Component:  undetermined
 Version:  git-master     |  Resolution:  invalid
Keywords:                 |  Blocked By:
Blocking:                 |  Reproduced:  1
Analyzed:  1              |
--------------------------+---------------------------
Changes (by saste):

 * analyzed:  0 => 1
 * status:  open => closed
 * resolution:   => invalid
 * reproduced:  0 => 1


Comment:

 This is a limitation of libx264, which is unrelated to libavfilter/scale.

 When choosing scale=W:-1 the filter won't round the scaled H by 2, you
 need to explicitely express this to the scale filter, either by employing
 scripting or using expressions in the scale filter itself.

 For example the following will round the scaled height to a multiple of 2,
 keeping the same input aspect ratio:
 scale="854:trunc(ow/a/2)*2"

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/309#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list