diff options
author | Tomas Härdin <tjoppen@acc.umu.se> | 2018-02-19 18:42:25 +0100 |
---|---|---|
committer | Tomas Härdin <tjoppen@acc.umu.se> | 2018-02-21 23:38:49 +0100 |
commit | 41317da325921d39834b65d8552a2ebb2f3e802b (patch) | |
tree | f9b8eef539987664d49e106940afac6dd5792dbc /doc | |
parent | fd76e7be70c10861567ebefd0bc6864f223fb017 (diff) | |
download | ffmpeg-41317da325921d39834b65d8552a2ebb2f3e802b.tar.gz |
Add -vf scale example for making pixels square
This is a common use case.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/filters.texi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index bd93e0ab84..8a9b78d778 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -13721,6 +13721,19 @@ keeping the same aspect ratio as the input: @example scale=w='min(500\, iw*3/2):h=-1' @end example + +@item +Make pixels square by combining scale and setsar: +@example +scale='trunc(ih*dar):ih',setsar=1/1 +@end example + +@item +Make pixels square by combining scale and setsar, +making sure the resulting resolution is even (required by some codecs): +@example +scale='trunc(ih*dar/2)*2:trunc(ih/2)*2',setsar=1/1 +@end example @end itemize @subsection Commands |