[MPlayer-users] ACELP.net, playback truncated

dybulk at tri8.net dybulk at tri8.net
Tue Aug 10 21:43:20 CEST 2004


Hi all,

I sure hope I'm not missing something obvious here, but I am at the end of
my rope and am resorting to posting to this list.

I'm trying to play a stupid WMA file on my Mandrake 9.2 box. I cannot get
the vendor whose app generates these files to send anything else. It has
to be this WMA format.

And, it's audio only, so it should be even simpler.

No problem, as MPlayer can do it, right? Well, sort of.

I've tried Mandrake RPMs, compiling from source, PLF RPMs, plus xine,
totem, xmms + avi-xmms, and perhaps a dozen other tricks. Bomb.

I get the farthest with MPlayer, which is obviously a wonderful app. I can
get it compiled and all set up, which isn't necessarily true of the others
(for example avi-xmms won't compile on Mandrake 9.2 using gcc 3.3.1).

What is happening is that this WMA file will only play the first 2
seconds. It then stops. I've spent about 5 hours (after I finally got SOME
audio) figuring that something was wrong with my libraries/codecs (I've
reinstalled codecs and such about 10 times). But, I now think it's just
something about the ACELP codec.

This is because I *can* play another WMA file just fine. Works like a
champ:

[dan at raynix dan]$ mplayer /home/audio/good.wma
MPlayer 1.0pre5-3.3.1 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2660 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or
directory
Reading config file /home/dan/.mplayer/config
Reading /home/dan/.mplayer/codecs.conf: Can't open
'/home/dan/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
font: can't open  /home/dan/.mplayer/font/font.desc
font: can't open  /usr/local/share/mplayer/font/font.desc
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system
startup scripts.
Using usleep() timing
Can't open input config file /home/dan/.mplayer/input.conf: No such file
or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such
file or directory
Falling back on default (hardcoded) input config

Playing /home/audio/good.wma.
ASF file format detected.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 24002->176400 (192.0 kbit)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (ffmpeg))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Video: no video
Starting playback...
A:         1.6  0.8% 0%


[I interrupt after various playback times]


Yes, I see the errors about codecs.conf and so forth, but I'm thinking
that those don't matter because the file is playing fine--I could be wrong
and maybe I'm missing something about what I could configure to help the
problem. But this file plays just fine, even with the errors and warnings,
for the whole time.

I have very little clue what I'm talking about, but it looks like it
grabbed the ffwmav2 codec and used it with perfect success.

Again, it sounds fine, no problem.

But, when I try to play the file that I have to have:


[dan at raynix dan]$ mplayer /home/dan/Message_2020.wma
MPlayer 1.0pre5-3.3.1 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2660 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or
directory
Reading config file /home/dan/.mplayer/config
Reading /home/dan/.mplayer/codecs.conf: Can't open
'/home/dan/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
font: can't open  /home/dan/.mplayer/font/font.desc
font: can't open  /usr/local/share/mplayer/font/font.desc
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system
startup scripts.
Using usleep() timing
Can't open input config file /home/dan/.mplayer/input.conf: No such file
or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such
file or directory
Falling back on default (hardcoded) input config

Playing /home/dan/Message_2020.wma.
ASF file format detected.
==========================================================================
Opening audio decoder: [dshow] Win32/DirectShow decoders
AUDIO: 8000 Hz, 1 ch, 16 bit (0x10), ratio: 805->16000 (6.4 kbit)
Selected audio codec: [acelp] afm:dshow (ACELP.net Sipro Lab Audio
Decoder)
==========================================================================
Checking audio filter chain for 8000Hz/1ch/16bit -> 8000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 1 ch, 8000 hz, little endian signed int
AF_pre: 8000Hz 1ch Signed 16-bit (Little-Endian)
AO: [oss] 8000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 8000Hz/1ch/16bit -> 8000Hz/2ch/16bit...
Video: no video
Starting playback...
A:         1.8  0.2% 0%

Exiting... (End of file)



It exits after 2 seconds. But it is a 10-second file! It plays the first 2
seconds just fine, then stops.

I tried in on a Windoze box, and it worked fine--the file itself is
absolutely good and is 10 seconds long, so that eliminated a file
corruption suspicion.

I have tried multiple test files (they are generated by a voicemail app),
and they all do this.

It looks to me like these files, unlike the ones that work OK (see above),
have to use the ACELP.net codec, and it never works.

I tried forcing other codecs, such as the ffwmav2 (that worked on the
other file), but it bombs:

[dan at raynix dan]$ mplayer -ac ffwmav2 /home/dan/Message_2020.wma
MPlayer 1.0pre5-3.3.1 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2660 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

[snip same errors as above]
Using usleep() timing
Can't open input config file /home/dan/.mplayer/input.conf: No such file
or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such
file or directory
Falling back on default (hardcoded) input config

Playing /home/dan/Message_2020.wma.
ASF file format detected.
==========================================================================
Forced audio codec: ffwmav2
Cannot find codec for audio format 0x130.
Read DOCS/HTML/en/codecs.html!
==========================================================================
Audio: no sound
Video: no video


Exiting... (End of file)



Audio format 0x130 is definitely the ACELP codec, according to what I've
seen in other postings and such.

Doing a properties view with Windows Media Player (ugh!) on the Windoze
box reveals that yes, it's using the ACELP.net codec.

And so, I am just stuck. It appears that I must use the ACELP.net codec
(which MPlayer selects correctly) to read these files, but doing so gives
me two seconds of good audio and then it stops.

xine does the very same thing, by the way. Seems like it has to be codec
related, but again I am pretty clueless (obvious to everyone by now).

Please help!

Thanks,
Dan




More information about the MPlayer-users mailing list