[MEncoder-users] Scale overriding original aspect ratio

Ian Collier ian.collier at cs.ox.ac.uk
Mon Mar 10 13:32:50 CET 2014


On Sun, Mar 09, 2014 at 08:10:40PM +0000, you wrote:
> Basically, every time I scale a movie for an old living room DVD player
> that accepts USB pens using this command line, I have to calculate the
> height manually.
> 
> mencoder "original_video.mp4" -o NUL -ovc xvid -xvidencopts pass=1 -vf
> scale=640:267,expand=640:480 -nosound
> mencoder "original_video.mp4" -o "converted_video.avi" -ovc xvid
> -xvidencopts pass=2:bitrate=3000 -vf scale=640:267,expand=640:480 -oac
> mp3lame
> 
> In this case I have to calculate the 267 value from the original width and
> height of the video. I tried using 0, -1, -2 and -3 instead, but nothing
> works, because no aspect ratio is declared in the original video.

Does this work?  -vf dsize=-1:-1,scale=640:-2,expand=640:480

imc


More information about the MEncoder-users mailing list