[MPlayer-users] DivX -> VCD + maintaining aspect ratio = impossible OR Howto ADD black borders

Nico nsabbi at libero.it
Tue Oct 14 21:08:40 CEST 2003


Hi,

if your movie is 592:256 and you want to keep is A/R on a VCD, then 
since VCD is 352:288 with 4:3 AR => 384x288 when played,
this simple proportion  says:

592:256 = 384:y  , so y = (256*384)/592 = 166,  so you have to scale to 
352:166 and add borders up and down:

mplayer film.avi -vf scale=352:166,expand=352:288 ...
or
mplayer film.avi -vop expand=352:288,scale=352:166 ...

and when it's played back by you dvd player it's adjusted to 4:3.

If mplayer doesn't store A/R in your outfile, then simply add

mplayer -aspect 4:3 outfile


> h3h3... I searched for "borders" (should have looked for "border")
>
> encoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -nosound -vf 
> expand=592:480,scale=352:288 '/windows/E/Incoming/AW.avi' -o 
> '/windows/E/AW.mpg'
> -> only green video ... totally wrecked (BUT 352:288)
>
> encoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -nosound -vf 
> expand=592:480 -vop scale=352:288 '/windows/E/Incoming/AW.avi' -o 
> '/windows/E/AW.mpg'
> -> good video but 592x480 (=he added the borders but didn't resize 
> afterwards)
>
> mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -nosound -vf 
> expand=20:20:0:0 -vop scale=352:288 '/windows/E/Incoming/AW.avi' -o 
> '/windows/E/AW.mpg'
> -> good video... but no resize and no borders
>
> mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -nosound -vop 
> scale=352:208 -vf expand=352:288 '/windows/E/Incoming/AW.avi' -o 
> '/windows/E/AW.mpg'
> -> good video... but no resize and no borders
>
> mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -nosound -vf 
> expand=20:20:0:0 -vf scale=352:288 '/windows/E/Incoming/AW.avi' -o 
> '/windows/E/AW.mpg'
> -> good video... resized to 352x288 but no borders (-> streteched)
>
> mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -nosound -vf 
> expand=20:20:0:0,scale=352:288 '/windows/E/Incoming/AW.avi' -o 
> '/windows/E/AW.mpg'
> -> good video... resized to 352x288 but no borders (-> streteched)
>
> mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -nosound -vop 
> expand=20:20:0:0,scale=352:288 '/windows/E/Incoming/AW.avi' -o 
> '/windows/E/AW.mpg'
> -> good video... resized to 352x288 but no borders (-> streteched
>
> I am very new to mplayer... could someone please post me a correct 
> commandline???
> I want an 592x256 avi file down to 352x288 (so resized + borders added)
>
> thx in advance :-D
>
>
> _______________________________________________
> RTFM!!!  http://www.MPlayerHQ.hu/DOCS
> Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
>




More information about the MPlayer-users mailing list