[FFmpeg-user] Padding in ffmpeg
Mark Richards
mark at richardsemail.net
Fri Sep 2 21:17:27 CEST 2011
Hello all,
I am trying to understand the new padding syntax, but I am struggling to get
it to work.
My source video is 720x576 (5:4)
My output size is 640x360 (16:9)
The source scaled down to 360 pixels high is 450x360.
I want to pillarbox the video, so it ends up with a 94 pixel pillar on each
side of the video.
Since I want the output to be 640x360, these are the params I tried
(roughly)
-vcodec libx264 -fpre libx264-fast.ffpreset -fpre libx264-main.ffpreset
-aspect 16:9 -b 600k ........ -aspect 16:9 -w 640 -h 360 -vf
pad=640:360:94:0:red
But, ffmpeg gives me back this error.
Input area 94:0:734:360 not within the padded area 0:0:440:360 or zero-sized
I guess I clearly don't understand the documentation, cause I've tried every
combination of parameters I can think of, and can't get around that message.
I tried the formula from the documentation, and while it runs, it gives me a
640x640 video that is completely squashed.
vf pad="max(iw\,ih):ow:(ow-iw)/2:(oh-ih)/2"
You help is greatly appreciated!
Mark
More information about the ffmpeg-user
mailing list