[MPlayer-users] Re: AVI->DVD: Problem understanding expand and scale

Sterling Sympatico smacnay at sympatico.ca
Sat Oct 8 17:10:38 CEST 2005


On Sat, Oct 08, 2005 at 09:15:11AM +0200, Thomas Heuving wrote:
> Nico Sabbi schrieb am Thu, 06 Oct 2005 10:10:04 +0200:
> >>  mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf
> >>  expand=672:378:16:4,dsize=16/9,scale=720:576,harddup
> >>  -lavcopts aspect=16/9:acodec=ac3:abitrate=192:vcodec=mpeg2video:
> >>  vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=18
> >>  -o test.mpg -endpos 100 my.avi
> >
> > why not simply -vf scale=-1:-10,expand=720:576,harddup
> > to keep the original width, or
> 
> that works, but I want some black borders as most DVD-Players seem
> to cut some of the original content in order to present the material
> on the Television. I think that's the reason why commercial content
> tends to have black borders too (?).
> Less complicated is
> scale=-1:10:::::pal (or ntsc)
> so you don't have to expand by yourself.
> 
> > -vf scale 720:-10,expand=720:576,harddup  to resize the width to 720
> > and the height according to the A/R ?
> 
> This gives bad distortions.
> 
> > unnecessarily complicated
> 
> But it seems to be necessary to do two invokations, as I didn't find
>  and nobody mentioned a working example of putting black borders and do
>  a scaling in one go.

Hi,

Look at tovid.sourceforge.net - it is a project of bash scripts that
utilise mplayer/mencoer, ffmpeg, mjpegtools, and others.  When it writes
a dvd, it places a 10% border around the picture for the reasons you
desire.  You don't necessarily need to use the scripts but by looking at
them, you can see how it is done.

Good luck,

Sterling MacNay








More information about the MPlayer-users mailing list