[MEncoder-users] problem with the aspect ratio

Nico Sabbi nsabbi at tiscali.it
Mon Feb 28 11:21:57 CET 2005


Oded Shimon wrote:

>On Monday 28 February 2005 11:28, Nico Sabbi wrote:
>  
>
>>pablo daniel rey wrote:
>>    
>>
>>>hello
>>>i have an .avi file without any audio stream.
>>>it has the correct aspect-ratio. i play it with mplayer and all goes ok.
>>>i execute ogmmerge to merge the audio file (audio.ogg) and the video file
>>>(video.avi) into an ogm file. but when i play with mplayer the resulting
>>>ogm file i see it with the wrong aspect ratio.
>>>
>>>the commands i use :
>>>
>>>---- the script to encode the dvd ------
>>>mencoder -nosound -ovc lavc -lavcopts
>>>vcodec=mpeg4:vbitrate=$1:vhq:v4mv:vqmin=2:vlelim=-4:vcelim=9:lumi_mask=0.
>>>05:dark_mask=0.01:aspect=1.78:vpass=1 -vop scale=$3,crop=$2 -ofps 23,976
>>>-aspect 1.78 -o /dev/null stream.dump
>>>      
>>>
>>-aspect works in the avi headers. use :aspect=16/9 in lavcopts instead
>>    
>>
>
>Is it just me or is everyone blind lately?...
>He did...
>
>- ods15
>
>  
>

he used aspect=1.78, but currently libmpcodecs/ve_lavc.c calls 
sscanf(aspect, "%d/%d", &num, &den)
so only aspect=16/9 can work.

    Nico




More information about the MEncoder-users mailing list