[MPlayer-users] Re: problem encoding a compliant DVD from an XviD source movie

John Brown johnbrown105 at hotmail.com
Sun Apr 15 14:01:49 CEST 2007


Prabu(A.G.Oliveira <mahaprabr <at> yahoo.com.br> writes:

[cut]
> for example, one of my source movie is:
> 
> Lost_S03_E01.avi - VIDEO:  [XVID]  608x336  24bpp  23.976 fps  1019.6 
> kbps (124.5 kbyte/s
> 
> And I would like to put it on a dvd (with subtitles) to watch on tv.
> 
[cut]
> 
> ( Plays beatifully on the computer but on tv I get a expanded screen my 
> subtitles go down out of view
>   and I loose image on top, bottom, left, and right, because the image 
> is displayed bigger than what it should be)
> 
[most of script cut]
> -vf crop=592:336,expand=592:444:0:30,scale=720:480,harddup \

I normally perform my calculations as follows:

At an aspect ratio of 4/3, your video is going to be expanded vertically by
12.5% from 720x480 to 720x540 on playback. Because of overscanning, that entire
 picture will not be visible, so you need to reduce your picture and add a black
border around it. On the other hand, you do not want to see the black borders.
You want the visible part of your picture to be just small enough to fit on the
screen, so you have to choose the size of your borders carefully.

Some TVs overscan more than others. For me, when my source video is a 640x480
AVI, scale=656:432,expand=704:480:-1:16 works well enough. That is, the border
is 32 except for the top, which is 16 pixels. If you want to use width=720
instead of 704, I would suggest scale=672:432. I normally use 704 only because
my source video is usually 640x480, and 704 is nearer to 640.

Your video's width/height is approximately equal to 16/9. To maintain that ratio
when width = 672, the height would have to be 9 / 16 X 672 = 378. To make the
height 378 on playback, you must set height = 378/1.125 = 336 when encoding. If
336 were not divisible by 16, then I would advise you to change it to the
nearest number that is divisible by 16.

In short I would use the following options:

-vf crop=592:336,scale=672:336,expand=720:480,harddup -lavcopts
vcodec=mpeg2video:...:aspect=4/3:...

> oh yes I must also say that Im using dvdauthor and k3b to write the 
> media on my debian sarge box.
> 
> $   dvdauthor -o /tesdir mymovie.mpg       # I think this should be 
> enough,  shouldn't it??
> 

$ dvdauthor -o /tesdir mymovie.mpg #and then
$ dvdauthor -o /tesdir --toc #to generate the table of contents






More information about the MPlayer-users mailing list