[MEncoder-users] Getting the sound right in a conversion from avi to mpg (mpeg2)

Media Streaming Services mediastream at gmail.com
Thu Jun 23 20:08:10 CEST 2005


  -lavcopts vcodec=abitrate=128 


On 6/23/05, John Dickinson <john.k.dickinson at gmail.com> wrote:
> I am converting an avi file into an mpg file and seem to have gotten
> the video working well enough (thanks to people here).  However the
> audio is failing for me.  The final goal is to have an mpeg2 VCD
> compatible video file (with audio) for portability to the grandparents
> old VCD/DVD player.
> 
> Here is the command:
> mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg2video:mbd=2:keyint=
> 25:vrc_minrate=600:vbitrate=6000 -vf rotate=1 -oac lavc -af
> lavcresample=48000:srate=48000 in.avi -o test.mpg
> 
> Here is the output:
> 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
> 
> Seems like the bitrate is the problem but the resample doesn't work.
> If I get rid of: "-oac lavc -af lavcresample=48000:srate=48000" and
> replace with "-oac copy" it works but there is no sound with the
> resultant file.
> 
> I am really stumped on this even after reading the html version of the
> manpage that came with the window's binaries of mplayer.
> 
> John
> 
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mencoder-users
>




More information about the MEncoder-users mailing list