[FFmpeg-cvslog] Add -vf scale example for making pixels square

Tomas Härdin git at videolan.org
Thu Feb 22 00:39:27 EET 2018


ffmpeg | branch: master | Tomas Härdin <tjoppen at acc.umu.se> | Mon Feb 19 18:42:25 2018 +0100| [41317da325921d39834b65d8552a2ebb2f3e802b] | committer: Tomas Härdin

Add -vf scale example for making pixels square

This is a common use case.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=41317da325921d39834b65d8552a2ebb2f3e802b
---

 doc/filters.texi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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
+
+ at item
+Make pixels square by combining scale and setsar:
+ at example
+scale='trunc(ih*dar):ih',setsar=1/1
+ at end example
+
+ at item
+Make pixels square by combining scale and setsar,
+making sure the resulting resolution is even (required by some codecs):
+ at example
+scale='trunc(ih*dar/2)*2:trunc(ih/2)*2',setsar=1/1
+ at end example
 @end itemize
 
 @subsection Commands



More information about the ffmpeg-cvslog mailing list