2009-05-22 13:16:09 mplayer stucked in cache fill
Julien Linder (SWITZERLAND)
Message: 74455
Hi,
I am facing the following problem. I try to use MPlayer to play audio
file from a stream. But it get stucked in the "Cache fill" stage (stays at
0%). Once I am stucked there, killing mplayer cause this message to be
printed on console :
bfin-wdt: Unexpected close, not stopping watchdog!
Any network connection is closed and the system becomes unstable.
I can succefully use mplayer to play a file on an NFS drive.
The stream is ok. I can listen to it with exactly the same command
line on my host computer using MPlayer 1.0rc2-4.2.3 (well, I
put something else than "-ao null" off course).
I am using components from 2008R1.5-RC3 release (toolchain and uClinux-dist)
Version prints the following info :
kernel: Linux release 2.6.22.19-ADI-2008R1.5-svn, build #64 Fri May 22 12:48:50 CEST 2009
toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)
user-dist: release 2008R1.5, build #19 Fri May 22 12:43:01 CEST 2009
My hardware is BF537-EZKit.
MPlayer version is dev-SVN-rUNKNOWN-4.1.2.
Anyone got an idea ? Is anybody able to stream with mplayer on this
release or a previous one ?
Here is the mplayer's log and command line used :
root:/mnt> mplayer -v -ao null " 84.16.67.134/rsr-espace2-low.mp3"
MPlayer dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2007 MPlayer Team
Creating config file: //.mplayer/config
get_path('codecs.conf') -> '//.mplayer/codecs.conf'
Reading //.mplayer/codecs.conf: Can't open '//.mplayer/codecs.conf': No such file or directory
Reading /etc/codecs.conf: 117 audio & 238 video codecs
Configuration: --enable-cross-compile --target=bfin-linux-uclibc --host-cc=gcc --cc=bfin-linux-uclibc-gcc --as=bfin-linux-uclibc-as --prefix=/usr --confdir=/etc --mandir=/usr/share/man --enable-fbdev --disable-mp3lib --disable-live
CommandLine: '-v' '-ao' 'null' ' 84.16.67.134/rsr-espace2-low.mp3'
get_path('font/font.desc') -> '//.mplayer/font/font.desc'
font: can't open file: //.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using Unoptimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '//.mplayer/input.conf'
Can't open input config file //.mplayer/input.conf: No such file or directory
Can't open input config file /etc/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('rsr-espace2-low.mp3.conf') -> '//.mplayer/rsr-espace2-low.mp3.conf'
Playing 84.16.67.134/rsr-espace2-low.mp3.
get_path('sub/') -> '//.mplayer/sub/'
Filename for url is now 84.16.67.134/rsr-espace2-low.mp3
Filename for url is now 84.16.67.134/rsr-espace2-low.mp3
STREAM_HTTP(1), URL: 84.16.67.134/rsr-espace2-low.mp3
Connecting to server 84.16.67.134[84.16.67.134]: 80...
--- HTTP DEBUG HEADER --- START ---
protocol: [HTTP/1.0]
http minor version: [0]
uri: [(null)]
method: [(null)]
status code: [200]
reason phrase: [OK]
body size: [0]
Fields:
0 - Content-Type: audio/mpeg
1 - icy-br:48
2 - ice-audio-info: ice-samplerate=44100;ice-bitrate=48;ice-channels=2
3 - icy-br:48
4 - icy-description:Powered by Infomaniak.net
5 - icy-genre:Public Radio
6 - icy-name:RSR Espace 2
7 - icy-private:0
8 - icy-pub:1
9 - icy-url: www..rsr.ch
10 - Server: Icecast trunk
11 - Cache-Control: no-cache
12 - icy-metaint:16000
--- HTTP DEBUG HEADER --- END ---
Content-Type: [audio/mpeg]
Cache size set to 320 KBytes
STREAM: [null] 84.16.67.134/rsr-espace2-low.mp3
STREAM: Description: http streaming
STREAM: Author: Bertrand, Albeau, Reimar Doeffinger, Arpi?
STREAM: Comment: plain http
CACHE_PRE_INIT: 0 [0] 0 pre:65536 eof:0
Cache fill: 0.00% (0 bytes)
QuoteReplyEditDelete
2009-05-22 13:49:41 Re: mplayer stucked in cache fill
Robin Getz (UNITED STATES)
Message: 74457
Julien:
Does mp3play work?
QuoteReplyEditDelete
2009-05-22 17:40:11 Re: mplayer stucked in cache fill
Julien Linder (SWITZERLAND)
Message: 74462
Robin,
Yes, it works ... more or less
I can use this command :
mp3play " 84.16.67.134/rsr-espace2-low.mp3" -w test
which produces the file "test" but then I can't do anything with it.
No idea about the format. I tried to feed mplayer on my host
machine with it with no result.
I will try tomorrow with older releases back to RC7. I think it is
unusefull to try earlier because mplayer wasn't yet working.
Do you have any idea if this did work in the past ?
I tried VLC too but I experienced kernel crash when playing from
the stream above.
QuoteReplyEditDelete
2009-05-23 06:11:20 Re: mplayer stucked in cache fill
Julien Linder (SWITZERLAND)
Message: 74470
I tried with 2008R1-RC8 and I have the same result (tested mplayer only).
Does anybody have success streaming with mplayer ? I guess yes since
there is a description on this website of streaming with VLC and MPlayer.
An image for the STAMP board was even supplied, but unfortunatly it
seems it was removed.
Could anybody who has a working mplayer (for streaming) provide its
config, the disto version and exact command line for MPlayer please ?
Any kind of help is welcome
Thank you.
Julien
QuoteReplyEditDelete
2009-05-23 06:17:55 Re: mplayer stucked in cache fill
Jiri Beranek (CZECH REPUBLIC)
Message: 74471
Hi, look to blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3895
Jiri Beranek
QuoteReplyEditDelete
2009-05-23 07:30:14 Re: mplayer stucked in cache fill
Julien Linder (SWITZERLAND)
Message: 74472
Thank you very much Jiri,
I just tried mplayer with the -nocache option and it works.
I will try to use your version of cache2.c.
Julien
QuoteReplyEditDelete
2009-05-23 14:18:58 Re: mplayer stucked in cache fill
Julien Linder (SWITZERLAND)
Message: 74475
Probably the last email of this thread.
Jiri, I tried your fix and it works nicely.
One more time thank you for helping.
Julien
QuoteReplyEditDelete
2009-05-23 18:41:07 Re: mplayer stucked in cache fill
Robin Getz (UNITED STATES)
Message: 74480
Julien:
You want to send things to a file? or just listen to it?
I normally use mp3play all the time for streaming audio, and listening to it. If you want - you should be able to capture it to a file with -d foobar (I think) - but the file will be the raw samples, and will not play in any audio player. You could need to add the necessary headers on things to turn it back into a wav file. (Or just cat foobar > /dev/dsp).
-Robin
QuoteReplyEditDelete
2009-05-24 15:04:45 Re: mplayer stucked in cache fill
Julien Linder (SWITZERLAND)
Message: 74506
Thank you Robin. I though mp3play did output the raw data but I wasn't sure
and did not take the time to find out.
I play the file (DAC on sport device - AD1854), but as I want to be able to use other
formats than just mp3, I prefer using MPlayer.
It works fine now.
Julien