HHGTTG and mplayer / realmedia

Daniel Brewer dan_list at brewer.me.uk
Fri Oct 1 02:24:10 PDT 2004

On 1 Oct 2004, at 12:49 am, Ian Molton wrote:

> Hi.
> I've been trying to get mplayer to play the HHGTTG (among other  
> things).
> I've built it with win32 codec support and installed the essential  
> codecs and rp9 codec packs.
> It seems to hang if I try to actually use it though - for example, a  
> file my parents want recorded:-
> mplayer rtsp://rmv8.bbc.net.uk/radio4/comedy/thu2300.ra
> just hangs it after printing the stream info and apparently attempting  
> playback.
> I do appear to be able to dump the stream using -dumpstream.
> Has anyone got this working ? can you check the above works for you?
> Presumably I dont need rp10? (it'd barf, right?)

It works fine for me.  You do not need rp10 because I do not think I  
have it (it would be weird if BBC did use the latest version as they  
are normally quite slow with this stuff).  Just a couple of ideas:
1) There is (or was when I last compiled it) an option to set the  
realplayer codec directory in ./configure
2) Does it work with any other ra streams?
3) Is the codecs.conf the latest one.  I know I had problems when I  
upgraded mplayer but did not copy the new codecs.conf to over-write the  
one that I had in ~/.mplayer, this caused quite a few problems

Warning to all this is that I have done it on OS X at work so it might  
be different on linux but I doubt it.  Here is my output:
mplayer rtsp://rmv8.bbc.net.uk/radio4/comedy/thu2300.ra
MPlayer dev-CVS-040802-10:26-3.3 (C) 2000-2004 MPlayer Team

AltiVec found
CPU: PowerPC
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file  
or directory
Reading config file /Users/daniel/.mplayer/config
Reading /Users/daniel/.mplayer/codecs.conf: Can't open  
'/Users/daniel/.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 file: /Users/daniel/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206  
Using usleep() timing
Input config file /Users/daniel/.mplayer/input.conf parsed: 52 binds

Playing rtsp://rmv8.bbc.net.uk/radio4/comedy/thu2300.ra.
Resolving rmv8.bbc.net.uk for AF_INET6...
Couldn't resolve name for AF_INET6: rmv8.bbc.net.uk
Resolving rmv8.bbc.net.uk for AF_INET...
Connecting to server rmv8.bbc.net.uk[]:554 ...
Cache size set to 640 KBytes
Connected to server: rmv8.bbc.net.uk
Cache fill: 18.75% (0 bytes)    REAL file format detected.
======= WAVE Format =======
Format Tag: 28515 (0x6F63)
Channels: 2
Samplerate: 44100
avg byte/sec: 44100
Block align: 640
bits/sample: 16
cbSize: 26
Unknown extra header dump: [0] [80] [0] [10] [0] [17] [2] [80] [0] [10]  
[1] [0] [0] [3] [8] [0] [0] [25] [0] [0] [0] [0] [0] [2] [0] [4]
Clip info:
  name: Radio 4 Thursday 11pm
  author: BBC Radio 4
  copyright: (C) British Broadcasting Corporation 2004
Opening audio decoder: [realaud] RealAudio decoder
opening shared obj  
Audio codec: [23] 44 kbps Stereo Music High Response - RA8
Audio bitrate: 44.100 kbit/s (5513 bps)
AUDIO: 44100 Hz, 2 ch, 16 bit (0x20), ratio: 5513->176400 (44.1 kbit)
Selected audio codec: [racook] afm:realaud (RealAudio COOK)
Checking audio filter chain for 44100Hz/2ch/16bit ->  
AF_pre: af format: 2 bps, 2 ch, 44100 hz, big endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Big-Endian)
AO: [macosx] 44100Hz 2ch Floating Point (4 bps)
Building audio filter chain for 44100Hz/2ch/16bit ->  
Video: no video
Starting playback...
A:        15.0  3.3% 17%

Finally (just in case you are interested), here is a few commands that  
allows you to stream straight to ogg format:

mkfifo /tmp/soundpipe
oggenc /tmp/soundpipe -o $oggoutput & mplayer -quiet -ao pcm -aofile  
/tmp/soundpipe -vo null -vc dummy $file
rm -f /tmp/soundpipe

Hope that helps


Dan Brewer

LFS ID: 5309
GPG fingerprint:
D2B6 DE30 530B 6C5D C96B  9506 9A6F F054 299E 1B6C

More information about the lfs-chat mailing list