[MPlayer-dev-eng] problem with crop

D Richard Felker III dalias at aerifal.cx
Tue Nov 4 21:44:27 CET 2003


On Tue, Nov 04, 2003 at 05:14:36PM -0300, Alejandro Néstor Vargas wrote:
> I am trying to crop a video with mencoder. I've found it reports an error 
> even using data obtained with cropdetect. The strange thing is that mplayer 
> works ok with the same parameters.
> 
> Trying this:
> # mplayer socooo.mpg -vop crop=350:428:0:72,scale -zoom -xy 640
> 
> It works ok.
> 
> But trying this:
> # mencoder socooo.mpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -vop 
> crop=350:428:0:72,scale -zoom -xy 640

> 
> Mencoder crashes with a "crop: bad position/width/height - cropped area is 
> out of the original!" message.

Because you're cropping after scaling! Switch the order of the two
filters on the command line, or else use the -vf option instead of
-vop (which is in the opposite, much saner order).

Rich



More information about the MPlayer-dev-eng mailing list