mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 18:02:11 +00:00
Add -vf scale example for making pixels square
This is a common use case.
This commit is contained in:
parent
fd76e7be70
commit
41317da325
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user