MEncoder

„MEncoder is a free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs.“

MEncoder. (2008, February 23). In Wikipedia, The Free Encyclopedia. Retrieved 18:57, April 5, 2008, from
http://en.wikipedia.org/w/index.php?title=MEncoder&oldid=193447614


My Blog List

Monday, April 14, 2008

Re: [MEncoder-users] Enforce aspectratio

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
_______________________________________________
MEncoder-users mailing list
MEncoder-users@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users

No comments:

PCBs

Links

Forex brokers, Forex online


Privacy Policy