![]() What I'm doing with the -vf command and the x=y,z=a expressions that follow is creating a chain of filters. So if you want to stretch the movie anamorphically to a new aspect ratio you need to manually set the pixel aspect ratio, called the SAR for "Sample Aspect Ratio", thus for square pixels use: ffmpeg -i input.mov -vf scale=720x406,setsar=1:1 output.mp4Īlternatively you can set the display aspect ratio to whatever you want, thus: ffmpeg -i input.mov -vf scale=720x406,setdar=16:9 output.mp4 Will create a movie with the required pixel dimensions, but if you look at the output you'll find that it adds information into the metadata so that it will play back at the same aspect ratio as the original, by using non-square pixels. ![]() ffmpeg -i input.mov -vf scale=720x406 output.mov ![]() Using the scale filter will do it, but there is a bit more to it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |