[MEncoder-users] Converting an avi file to mpeg2 for legacy players (losing sound and lots of error messages).

John Dickinson john.k.dickinson at gmail.com
Fri Jun 17 18:04:13 CEST 2005


I should have mentioned I am working on a windows pc with the pre0.7
release of mplayer (I don't have sufficient privledges to install
wingm etc...)

I tried your suggestion and got:
D:\mplayer>mencoder -of mpeg -ovc lavc -lavcopts mbd=2:keyint=25:vrc_maxrate=900
0:vrc_minrate=600:vbitrate=2000:vrc_max_size=1835 -oac lavc -vop rotate=1 in.avi
 -o test.mpg
MEncoder 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
File not found: 'frameno.avi'
Failed to open frameno.avi
Option lavcopts: Unknown suboption vrc_max_size

Exiting... (error parsing cmdline)

I next tried:
D:\mplayer>mencoder -of mpeg -ovc lavc -lavcopts mbd=2:keyint=25:vrc_maxrate=900
0:vrc_minrate=600:vbitrate=2000 -oac lavc -vop rotate=1 in.avi -o test.mpg
MEncoder 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0  data: 0x0 - 0x289070
AVI file format detected.
VIDEO:  [MJPG]  640x480  24bpp  30.000 fps  6917.0 kbps (844.4 kbyte/s)
[V] filefmt:3  fourcc:0x47504A4D  size:640x480  fps:30.00  ftime:=0.0333
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 16000 Hz, 1 ch, u8, 128.0 kbit/100.00% (ratio: 16000->16000)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
PACKET SIZE: 2048 bytes
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [rotate=1]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
[mp2 @ 00A268B8]bitrate 224 is not allowed in mp2
Couldn't open codec mp2, br=224

Anymore suggestions?
John

On 6/17/05, Nico Sabbi <nsabbi at fastwebnet.it> wrote:
> 
> >I have tried (to make good mpeg2):
> >=========================
> >D:\mplayer>mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg2video
> >-oac copy -vop rotate=1 in.avi -o test.mpg
> 
> add to -lavcopts mbd=2:keyint=25:vrc_maxrate=9000:vrc_minrate=600:vbitrate=NNN:vrc_max_size=1835
> (where NNN is the bitrate you want)
> 
> and -oac lavc (although using -oac toolame or -oac twolame gives much better
> results)
> 
> 
> 
> 
>




More information about the MEncoder-users mailing list