Changes between Version 10 and Version 11 of Scaling
- Timestamp:
- Dec 27, 2017, 10:22:10 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Scaling
v10 v11 101 101 == Specifying scaling algorithm == 102 102 103 You can specify which algorithm is used for the resizing,103 You can specify which algorithm is used for resizing with the `-sws_flags` option. For example, to use bilinear instead of the default bicubic scaling: 104 104 105 {{{ffmpeg -i test.tif -vf scale=504:376 -sws_flags bilinear out.bmp}}} 105 {{{ 106 ffmpeg -i test.tif -vf scale=504:376 -sws_flags bilinear out.bmp 107 }}} 106 108 107 See the [https://ffmpeg.org/ffmpeg-scaler.html documentation]. Default is bicubic. To have multiples it's like {{{-sws_flags lanczos+full_chroma_inp}}} You can also specify like {{{-vf scale=1920x1080:flags=lanczos}}} 109 See the [https://ffmpeg.org/ffmpeg-scaler.html scaler documentation] for more info. To set multiple flags you can combine them with a `+` sign. For example: 110 111 {{{ 112 -sws_flags lanczos+full_chroma_inp 113 }}} 114 115 You can also specify the options directly in the `scale` filter, for example: 116 117 {{{ 118 -vf scale=1920x1080:flags=lanczos 119 }}}
