You can tell scale to choose an even value for a given height (720 in this example): scale="trunc(oh*a/2)*2:720" One downside of scale when using libx264 is that this encoder requires even values and scale may automatically choose an odd value resulting in an error: width or height not divisible by 2. 1 can also be used for width if you provide a given height. The -1 will tell ffmpeg to automatically choose the correct height in relation to the provided width to preserve the aspect ratio. Using the scale filter will provide more flexibility: ffmpeg -i input.avi -filter:v scale=720:-1 -c:a copy output.mkv The most basic example is this: ffmpeg -i input.avi -s 720x480 -c:a copy output.mkv
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |