[MPlayer-users] Problem n reencoding the audio of an avi file

Fabio S. fast at ferrara.linux.it
Thu Jul 29 21:01:51 CEST 2004


Hi all.

I have a file which comes with an audio format which is not recognized by
my dvd/divx player, so I try to convert it in mp3 but I have some problem,
that is, the converted file has no audio at all.

The originale file, when palyed with mplayer, gives the following output:

****************************
MPlayer 1.0pre4-3.2 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon Thunderbird 1199 MHz (Family: 6, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading config file /usr/local/etc/mplayer/mplayer.conf
Reading config file /home/stumbo/.mplayer/config
Reading /home/stumbo/.mplayer/codecs.conf: 61 audio & 157 video codecs
Font /home/stumbo/.mplayer/font/font.desc loaded successfully! (206 chars)
Using Linux hardware RTC timing (1024Hz).
Input config file /home/stumbo/.mplayer/input.conf parsed: 39 binds

Playing ok_0003.avi.
AVI file format detected.
VIDEO:  [DIVX]  320x240  24bpp  15,000 fps  1151,5 kbps (140,6 kbyte/s)
Clip info:
  Software: MEncoder 1.0pre4-3.2
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 11024 Hz, 1 ch, 8 bit (0x8), ratio: 11024->11024 (88,2 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Disabling DPMS
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 11024Hz/1ch/8bit -> 11024Hz/2ch/8bit...
AF_pre: af format: 1 bps, 1 ch, 11024 hz, little endian unsigned int 
AF_pre: 11024Hz 1ch Unsigned 8-bit
AO: [oss] 11024Hz 2ch Unsigned 8-bit (1 bps)
Building audio filter chain for 11024Hz/1ch/8bit -> 11024Hz/2ch/8bit...
Starting playback...
VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
VO: [xv] 320x240 => 320x240 Planar YV12 
************************************************************************

THen I try to convert just the audio with the command

mencoder ok_0003.avi -oac mp3lame -lameopts cbr -ovc copy -o test.avi

the resulting file, which has no audio, gives the following output:

*********************************************************************
MPlayer 1.0pre4-3.2 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon Thunderbird 1199 MHz (Family: 6, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading config file /usr/local/etc/mplayer/mplayer.conf
Reading config file /home/stumbo/.mplayer/config
Reading /home/stumbo/.mplayer/codecs.conf: 61 audio & 157 video codecs
Font /home/stumbo/.mplayer/font/font.desc loaded successfully! (206 chars)
Using Linux hardware RTC timing (1024Hz).
Input config file /home/stumbo/.mplayer/input.conf parsed: 39 binds

Playing test.avi.
AVI file format detected.
AVI: No audio stream found -> no sound.
Could not determine number of frames (for absolute seek).
VIDEO:  [DIVX]  320x240  24bpp  15,000 fps  -17179870,0 kbps (-2097152,0 kbyte/s)
Clip info:
  Software: MEncoder 1.0pre4-3.2
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Disabling DPMS
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
**************************************************************************

So, problem: why does this happen?

How to get a file with the correct audio?

Thanks a lot

Fabio




More information about the MPlayer-users mailing list