• Lars Kiesow's avatar
    libavfilter/vf_scale: Ensure scaled video is divisible by n · 74d4bc0f
    Lars Kiesow authored
    This patch adds a new option to the scale filter which ensures that the
    output resolution is divisible by the given integer when used together
    with `force_original_aspect_ratio`. This works similar to using `-n` in
    the `w` and `h` options.
    
    This option respects the value set for `force_original_aspect_ratio`,
    increasing or decreasing the resolution accordingly.
    
    The use case for this is to set a fixed target resolution using `w` and
    `h`, to use the `force_original_aspect_ratio` option to make sure that
    the video always fits in the defined bounding box regardless of aspect
    ratio, but to also make sure that the calculated output resolution is
    divisible by n so in can be encoded with certain encoders/options if
    that is required.
    Signed-off-by: 's avatarLars Kiesow <lkiesow@uos.de>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    74d4bc0f
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...