[MEncoder-users] x264 converts to bad aspect ratio

Cristian Rusu crirus at gmail.com
Tue Jan 12 18:24:48 CET 2010


On Tue, Jan 12, 2010 at 19:09, Etienne Buira <etienne.buira.lists at free.fr>wrote:

> On Tue, Jan 05, 2010 at 04:56:23PM +0200, Cristian Rusu wrote:
> > Hello
> >
> > This drives me crazy
> >
> > I tried to convert a wmv (the most sucking file format) to mp4(h.264)
> >
> > For some reason the aspect ratio is set to 4/3 although I get x264
> [info]:
> > using SAR=1/1
> >
> > Should I mention I can never sync audio and video from that wmv?
> >
> > Please help
> >
> >
> > Here is what I use:
> >
> > mencoder 1057.wmv -o /dev/null -ovc x264 -x264encopts
> >
> pass=1:turbo:bitrate=600:threads=auto:trellis=1:subq=1:frameref=1:bframes=3:b_pyramid=normal:weight_b
> > -oac faac -faacopts br=56:mpeg=4:object=2 -srate 44100 -ofps 24000/1001
> -vf
> > harddup -demuxer lavf -noskip -mc 0
> > mencoder 1057.wmv -o temp.raw -ovc x264 -x264encopts
> >
> turbo=1:bitrate=400:threads=auto:trellis=1:subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid=normal:weight_b
> > -oac faac -faacopts br=56:mpeg=4:object=2 -srate 44100 -ofps 24000/1001
> -vf
> > harddup -demuxer lavf -noskip -mc 0
> >
> >
> > mplayer  temp.raw -dumpaudio -dumpfile  temp.aac
> > mplayer  temp.raw -dumpvideo -dumpfile  temp.h264
> >
> > mp4creator -create=temp.aac  1057.mp4
> > mp4creator -create=temp.h264 -rate=23.976  1057.mp4
> >
> > mp4creator -hint=1  1057.mp4
> > mp4creator -hint=2  1057.mp4
> > mp4creator -optimize  1057.mp4
>
> Hi.
>
> Got sometimes the same problem by the past.
>
> Ususally, use of -aspect option, and/or dsize vf fixed it, but I did not
> understand the very reason why it happens.
>
> Good luck
>

Well, that's the whole point, to preserve whatever is there not to force
aspect.
Maybe it worth to mention I am converting a wmv1 format?


More information about the MEncoder-users mailing list