Commit 41317da3 authored by Tomas Härdin's avatar Tomas Härdin

Add -vf scale example for making pixels square

This is a common use case.
parent fd76e7be
...@@ -13721,6 +13721,19 @@ keeping the same aspect ratio as the input: ...@@ -13721,6 +13721,19 @@ keeping the same aspect ratio as the input:
@example @example
scale=w='min(500\, iw*3/2):h=-1' scale=w='min(500\, iw*3/2):h=-1'
@end example @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 @end itemize
@subsection Commands @subsection Commands
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment