[MPlayer-users] How to encode mpegs for 16:9 (wide screen) DVDs?

RC rcooley at spamcop.net
Sat Jun 25 07:52:33 CEST 2005


On Sat, 25 Jun 2005 03:36:53 +0100
VJ <vijay.s.gill at gmail.com> wrote:

> -vf crop=688:400,hqdn3d,expand=720:576

Well, it's better if you do the math by-hand (using the crop and
aspect values from the source), but if you don't mind scaling twice,
you can get automatic conversion.

First you have to determine whether your video is closer to widescreen
(after cropping the black borders) or closer to fullscreen.

Use:  "mplayer -vf scale=-1:-2,cropdetect=20:2"

Then divide the width by the height (from the output of cropdetect). If
the result is greater than 1.555... it's closer to widescreen.  If it's
less than 1.555... it's closer to fullscreen.

For widescreen:   Set "aspect=16/9" in lavcopts
-vf crop=X:Y,scale=1024:-2,expand=0:576,crop=1024:576,scale=720:576

For fullscreen:  Set "aspect=4/3" in lavcopts
-vf crop=X:Y,scale=768:-2,expand=0:576,crop=768:576,scale=720:576



Next week...  How to determine the lift/drag coeffecient of a wing.
So be sure to tune-in for that. ;-)




More information about the MPlayer-users mailing list