[MEncoder-users] Enforce aspectratio

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Mon Apr 14 00:42:29 CEST 2008


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.

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