[MEncoder-users] Enforce aspectratio

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Mon Apr 14 18:49:28 CEST 2008


On Monday, 14 April 2008 at 10:53, Al Bogner wrote:
> Am Montag, 14. April 2008 00:42:29 schrieb Dominik 'Rathann' Mierzejewski:
> > On Sunday, 13 April 2008 at 22:31, Andy Civil wrote:
> > > James Hastings-Trew wrote:
> > > > Al Bogner wrote:
> > > >> If I play the avi file with mplayer the ascpect-ration is not
> > > >> recognized correctly.
> > > >
> > > > Do AVI files keep aspect ratio information? If you were using mp4 you
> > > > could add dsize=852:480 to your video filters, this would set the SAR.
> > > > Dunno if that would work with AVI.
> > >
> > > I think James suspected this:
> > > "AVI files do not contain pixel aspect ratio information."
> > > (from http://en.wikipedia.org/wiki/Audio_Video_Interleave#Continued_use )
> > >
> > > I would infer from that, that the aspect ratio of an AVI file is assumed
> > > to be the same as the ratio of width and height in pixels.
> >
> > They do, but not many players support ODML headers. You can set the AR
> > using mencoder -ovc copy -oac copy -force-avi-aspect 16/9, for example.
> > MPlayer recognises that and prescales the image accordingly.
> 
> I tried:the following and the aspect is still 4:3. Did I use a wrong syntax?
> 
> 
> mencoder movie.avi -vf pullup,softskip,harddup -nosound -ovc 
> x264 -force-avi-aspect 16/9 -x264encopts 
> bitrate=6000:subq=5:bframes=3:b_pyramid:weight_b:turbo=1:threads=auto:pass=1 -of 
> rawvideo -o /dev/null
> 
> mencoder movie.avi -vf pullup,softskip,harddup -nosound -ovc 
> x264 -force-avi-aspect 16/9 -x264encopts 
> bitrate=6000:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:threads=auto:pass=2 -of 
> rawvideo -o movie.264

Well, -force-avi-aspect affects the output file and only if it's AVI. Since
you're using -of rawvideo, this obviously has no effect. If you want to tell
mencoder that the input file has certain aspect ratio, then use -aspect 16/9,
for example.

Regards,
R.

-- 
MPlayer developer and RPMs maintainer: http://mplayerhq.hu http://rpm.livna.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan



More information about the MEncoder-users mailing list