[MPlayer-users] Cache dependent problem when playing wma audio
Roderick Johnstone
rmj at ast.cam.ac.uk
Tue Mar 23 18:30:28 CET 2004
Hi
I have a problem with mplayer 1.0pre3 playing:
mmst://audio2.musicradio.com/Ad/onetel.wma
(This is an advert which is prepended to the streaming audio of a radio
station I listen to using mplayerplug-in
(http://www.classicfm.com/index.cfm?nodeId=315), or at least I did until
they changed the site to prepend this advert)
What happens is dependent on the cache size setting:
0 kB: plays choppily, terminates correctly
64kB: plays choppily, writes "everything done. Thank you for downloading
a media file containing proprietary and patentend technology." and hangs
256kB: plays well and then hangs
8192kB: doesnt play, writes "everything done. Thank you for downloading
a media file containing proprietary and patentend technology." and then
always hangs.
I first saw this in mplayer 1.0pre3 and I just confirmed that the cvs
version behaves in exactly the same way.
Can anyone else confirm this as a bug please?
My system is:
Feora core 1
kernel 2.4.22-1.2174.nptl
libc-2.3.2
gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
GNU ld version 2.14.90.0.6 20030820
GNU assembler 2.14.90.0.6 20030820
AMD thunderbird 1300MHz
Sound card is:
00:0b.0 Multimedia audio controller: Ensoniq 5880 AudioPCI (rev 02)
Subsystem: Ensoniq Creative Sound Blaster AudioPCI128
Also found the same behaviour on a redhat 7.3 system so its not a
problem with exec_shield or prelink.
Thanks
Roderick Johnstone
ps output of mplayer -v follows:
mplayer -v -cache 64 mmst://audio2.musicradio.com/Ad/onetel.wma
MPlayer 1.0pre3-RPM-3.2.2 (C) 2000-2003 MPlayer Team
CPU: Advanced Micro Devices Athlon Thunderbird 1312 MHz (Family: 6,
Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection.
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/rmj/.mplayer/config
Reading /home/rmj/.mplayer/codecs.conf: Can't open
'/home/rmj/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 61 audio & 169 video codecs
CommandLine: '-v' '-cache' '64' 'mmst://audio2.musicradio.com/Ad/onetel.wma'
init_freetype
get_path('font/font.desc') -> '/home/rmj/.mplayer/font/font.desc'
font: can't open file: /home/rmj/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
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
get_path('input.conf') -> '/home/rmj/.mplayer/input.conf'
Can't open input config file /home/rmj/.mplayer/input.conf: No such file
or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 53 binds
get_path('onetel.wma.conf') -> '/home/rmj/.mplayer/onetel.wma.conf'
Playing mmst://audio2.musicradio.com/Ad/onetel.wma.
Trying ASF/TCP...
Resolving audio2.musicradio.com for AF_INET...
Connecting to server audio2.musicradio.com[62.25.99.92]:1755 ...
connected
unknown object
unknown object
file object, packet length = 1567 (1567)
unknown object
unknown object
stream object, stream id: 1
unknown object
data object
mmst packet_length = 1567
Cache size set to 64 KBytes
Connected to server: audio2.musicradio.com
CACHE_PRE_INIT: 0 [0] 0 pre:13107 eof:0
Cache fill: 12.50% (8192 bytes) ASF file format detected.
Title:
Author:
Copyright:
Comment:
ASF: packets: 35 flags: 2 max_packet_size: 1567 min_packet_size: 1567
max_bitrate: 32600 preroll: 2432
stream type: guid_audio_stream
stream concealment: guid_audio_conceal_interleave
type: 28 bytes, stream: 8 bytes ID: 1
unk1: 0 unk2: 3C2F6C8
FILEPOS=0x956
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 32000
avg byte/sec: 4000
Block align: 1536
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [88] [0] [0] [17] [0] [0] [1e] [0] [0]
===========================
ASF: audio scrambling: 1 x 1 x 1536
============ ASF Stream group == START ===
object size = 32
stream count=[0x1][1]
stream id=[0x1][1]
max bitrate=[0x7f58][32600]
============ ASF Stream group == END ===
Found movie at 0x9CC - 0xE009
ASF: 1 audio and 0 video streams found
ASF: Searching for audio stream (id:-1).
Auto-selected ASF audio ID = 1
Clip info:
name:
author:
copyright:
comments:
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 131072 + 65536 = 196608 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 32000 Hz, 2 ch, 16 bit (0x10), ratio: 4000->128000 (32.0 kbit)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (ffmpeg))
==========================================================================
Checking audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=32000Hz, nch = 2, format = 0x00000001
and bps = 2
AF_pre: af format: 2 bps, 2 ch, 32000 hz, little endian signed int
AF_pre: 32000Hz 2ch Signed 16-bit (Little-Endian)
ao2: 32000 Hz 2 chans Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested:
Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 32000 Hz samplerate (requested: 32000)
audio_setup: frags: 128/128 (1024 bytes/frag) free: 131072
AO: [oss] 32000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 32000Hz/2ch/16bit -> 32000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=32000Hz, nch = 2, format = 0x00000001
and bps = 2
[dummy] Was reinitialized, rate=32000Hz, nch = 2, format = 0x00000001
and bps = 2
Video: no video
Freeing 0 unused video chunks
Starting playback...
everything done. Thank you for downloading a media file containing
proprietary and patentend technology.
A: 10.4 58.0% 0%
and it hangs. Sometimes it will exit if you press <cr> in the window
running mplayer.
More information about the MPlayer-users
mailing list