[MEncoder-users] MPEG2 encoding options

Eduardo Gargiulo egargiulo at users.sf.net
Thu Mar 8 19:51:01 CET 2007


On Wed, Mar 7, 2007, Eduardo Gargiulo <egargiulo at users.sf.net> said:

> Hi all,
> 
> A friend of mine has given to me an avi file containing video from DV
> source and edited with proprietery software. The output of mplayer
> -identify is the following:
> 
> MPlayer 1.0pre8-4.1.2 (C) 2000-2006 MPlayer Team
> CPU: AMD Athlon(tm) 64 Processor 2800+ (Family: 15, Model: 4, Stepping:
> 10)
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
> Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
> 
> Playing alsina.avi.
> AVI file format detected.
> ID_VIDEO_ID=0
> ID_AUDIO_ID=1
> VIDEO:  [dvsd]  720x480  24bpp  29.970 fps  28771.2 kbps (3512.1 kbyte/s)
> ==========================================================================
> Opening audio decoder: [pcm] Uncompressed PCM audio decoder
> AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
> Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
> ==========================================================================
> ID_FILENAME=alsina.avi
> ID_DEMUXER=avi
> ID_VIDEO_FORMAT=dvsd
> ID_VIDEO_BITRATE=28771200
> ID_VIDEO_WIDTH=720
> ID_VIDEO_HEIGHT=480
> ID_VIDEO_FPS=29.970
> ID_VIDEO_ASPECT=0.0000
> ID_AUDIO_CODEC=pcm
> ID_AUDIO_FORMAT=1
> ID_AUDIO_BITRATE=1536000
> ID_AUDIO_RATE=48000
> ID_AUDIO_NCH=2
> ID_LENGTH=140.04
> 
> I want to encode it to MPEG2 for playing on standalone DVD players; file
> size doesn't matter because it is shorth enought but I wouldn't like to
> lose quality. Which mencoder options should I use to achieve that? Any
> hint would be appreciated.
> 
> Thanks in advance and sorry for my english,

I'm trying with the following options of mencoder

$ mencoder -of mpeg -mpegopts format=dvd \
>  -srate 48000 -af lavcresample=48000   \
>  -oac lavc -lavcopts acodec=ac3:abitrate=448 -vf pp=lb,harddup \
>  -ovc lavc -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\
>  vrc_maxrate=9000:vbitrate=4000:keyint=18:trell:mbd=2:ilme:ildct \
>  -o alsina.mpg alsina.avi

This options works well with dv files captured from my miniDV camera, but
not with the edited file. The result file plays ok on mplayer but on
standalone DVD player there are scenes where the audio and video slows
down. I need help to adjust mencoder options to improve the result mpeg
file.

Regards,

--ejg @sf.net



More information about the MEncoder-users mailing list