Video size to fit in screen
Hi! I am using ffmpeg to convert videos for MP3 player and phone. They have screen sizes X by Y and I want to convert and resize videos to fit on that screen. If video doesn't have the same aspect ratio as MP3 player/phone then it should be smaller in one dimension (to maintain aspect ratio). Does ffmpeg support such option or should I write a script to do this? BR, Davis
Hi! I am using ffmpeg to convert videos for MP3 player and phone. They have screen sizes X by Y and I want to convert and resize videos to fit on that screen. If video doesn't have the same aspect ratio as MP3 player/phone then it should be smaller in one dimension (to maintain aspect ratio). Does ffmpeg support such option or should I write a script to do this? BR, Davis
Davis Davis wrote: the use of a combination of -s and -aspect takes care of that. A dvd-format as source could have a aspect of 16:9 where an iPod only accepts square pixels. A source of -s 720x576 -aspect 16:9, which displays at 1024*576, 16/9*576, has to be converted to 640x360 with aspect 1:1 to maintain the same aspect ratio.
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user