up vote 3 down vote favorite
1
share [g+] share [fb]

I am trying to use FFMPEG to resize a video using -s 480x272. Unfortunately something is causing FFMPEG to output a video with 483x272.

For those curious this is the command I am using:

ffmpeg -i 'BirdyNamNam.mp4' -an -pass 1 -vcodec libx264 -vpre fastfirstpass -b 512k -bt 512k -threads 2 -s 480x272 BirdyNamNam1256333420.mp4

ffmpeg -i 'BirdyNamNam.mp4' -acodec libfaac -ab 96k -pass 2 -vcodec libx264 -vpre hq -b 512k -bt 512k -threads 2 -y -s 480x272 BirdyNamNam1256333420.mp4

Is FFMPEG trying to maintain the aspect ratio or something like that? Any advice is appreciated.

link|improve this question
Seems more like a Superuser question... – aehiilrs Oct 23 '09 at 22:08
feedback

migrated from stackoverflow.com Oct 26 '09 at 6:05

This question came from our site for professional and enthusiast programmers.

2 Answers

try with this

FFMPEG Video/Audio Encoding Cheat Sheet

link|improve this answer
feedback

Yes. You probably want -padbottom, -padtop, -padleft, -padright or--if you don't mind losing some of the frame---cropbottom, -croptop, -cropleft and -cropright.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.