PDA

View Full Version : Cropping in FFmpeg


nonoitall
28th March 2008, 04:02
This is really driving me nuts. I have a clip that I want to crop, scale and encode in FFmpeg and I'm having no success at all. The clip is 320x240 and has 14-pixel black bars on the top and bottom. I want to crop each of those off and then resize the clip to 220x146. So, I tried this out:ffmpeg input -croptop 14 -cropbottom 14 -s 220x146 -vcodec mpeg2video -b 200000 outputLook good? It's not. It appears that the cropping of the top and bottom works okay, but then, rather than scaling the clip to 220x146 like I want it to, it continues to crop the bottom and right sides of the clip to make it 220x146. This seems like it should be so simple. What am I doing wrong?

unskinnyboy
28th March 2008, 18:44
Was it r12572 you tried with? Can you try with r11870 or any other older builds? Cropping and resizing seems to be screwed up in r12572.

nonoitall
28th March 2008, 22:39
Whaddya know - a problem that wasn't my fault! :p Thanks a lot, that did the trick!