[MEncoder-users] Is it possible to make Mencoder encode video file DAR(Display Aspect Ratio) same as ffmpeg does?

littlebat dashing.meng at gmail.com
Fri Dec 14 10:51:30 CET 2012


On Thu, 13 Dec 2012 23:06:50 +0100
Christian Ebert <blacktrash at gmx.net> wrote:

> * littlebat on Thursday, December 13, 2012 at 20:28:14 +0800
> > On Wed, 12 Dec 2012 16:23:16 +0000
> > Christian Ebert <blacktrash at gmx.net> wrote:
> >> afaik dsize takes a size, not a ratio. That's how I did it before
> >> switching to ffmpeg (for most purposes):
> >> 
> >> -noautoexpand -aspect 176/144 \
> >> -vf dsize=176:144,scale=176:144,harddup
> > 
> > No, can't get the required DAR yet. Below is my command line:
> > 
> > mencoder \
> >  -noconfig all \
> >  -ovc lavc \
> >  -oac pcm \
> >  -lavcopts vcodec=mpeg4:vbitrate=256 \
> >  -noautoexpand -aspect 4:3 \
> >  -vf dsize=4/3,scale=176:144,harddup \
> >  -of lavf \
> >  -ofps 10 \
> >  -lavfopts format=mkv \
> >  -o "m.mkv" \
> >  "108.flv" -ss 0 -endpos 10
> > 
> > I need DAR 1.3333(4/3), but the result DAR is 1.2222(176:144). I
> > suppose mencoder can't do this work.
> 
> As I wrote, try the "real" dSIZE, not ratio:
> -vf dsize=176:144,scale=176:144,harddup
> 

I just want to get a mkv file which has [SAR 176:144(11:9), PAR: 12:11,
DAR 4:3], but I can't get it with MEncoder(even lastest
SVN-r35679-4.4.3) while ffmpeg does.

I tried your command line as below, but still can't get it. "ffmpeg -i
m.mkv" show "176x144 [PAR 1:1 DAR 11:9]" while "ffmpeg -i f.mkv" show
"176x144 [PAR 12:11 DAR 4:3]". See:
1, MEncoder command line:
mencoder \
  -noconfig all \
  -ovc lavc \
  -oac pcm \
  -lavcopts vcodec=mpeg4:vbitrate=256 \
  -noautoexpand -aspect 192/144 \
  -vf dsize=192:144,scale=176:144,harddup \
  -of lavf \
  -ofps 10 \
  -lavfopts format=mkv \
  -o "m.mkv" \
  "108.flv" -ss 0 -endpos 10

2, ffmpeg command line:
ffmpeg -y \
  -i "108.flv" \
  -ss 0 -t 10 \
  -vcodec mpeg4 -b 256k -r 10 -s 176x144 -aspect 4:3 \
  -acodec pcm_s16le \
  -f matroska \
  "f.mkv"

Maybe, it's time to give up using MEncoder as a main tool to do video
file transcoding works now. As one MEncoder developer said many times,
it has been stopped devloping several years.


More information about the MEncoder-users mailing list