]> git.sesse.net Git - ffmpeg/commit
fftools/ffmpeg_filter: add -autoscale to disable/enable the default scale
authorLinjie Fu <linjie.fu@intel.com>
Mon, 8 Jun 2020 08:58:05 +0000 (16:58 +0800)
committerLinjie Fu <linjie.fu@intel.com>
Thu, 18 Jun 2020 08:31:09 +0000 (16:31 +0800)
commit0b511bd9a5487c672fe199ffb2a78a50fc5b2d9f
tree0172a1ed2c537b1e84544c86d0973b3d8790f5ee
parenta37109d55574a3c388f3e65610244d10dac8dd59
fftools/ffmpeg_filter: add -autoscale to disable/enable the default scale

Currently, ffmpeg inserts scale filter by default in the filter graph
to force the whole decoded stream to scale into the same size with the
first frame. It's not quite make sense in resolution changing cases if
user wants the rawvideo without any scale.

Using autoscale/noautoscale as an output option to indicate whether auto
inserting the scale filter in the filter graph:
    -noautoscale or -autoscale 0:
    disable the default auto scale filter inserting.

ffmpeg -y -i input.mp4 out1.yuv -noautoscale out2.yuv -autoscale 0 out3.yuv

Update docs.

Suggested-by: Mark Thompson <sw@jkqxz.net>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
doc/ffmpeg.texi
fftools/ffmpeg.h
fftools/ffmpeg_filter.c
fftools/ffmpeg_opt.c