I am able to play
http://live365.com streams with mplayer. My problem was that firefox didn't offer to save a
play.pls file.
After creating an live365 account, you can configure not to use the default Flash player.
Now firefox offered to save a
play.pls file.
My first stage was to copy the url from the
play.pls file and feed it to mplayer
Code:
$ mplayer 'http://www.live365.com/play/304512?auth=d16b3e911d9de95d3b0dedcfff6
4c6f8-1251516247-compaxx&ss=major_j65%3AREH00CtMQNt4L5F&tag=
live365&token=660e15ffc46c9233b349666b0788788c-2419280080601
251&sid=xxx.xxx.xxx.xxx-1251418953547076&lid
=nh-nld&from=pls'
Note that you have to use single quotes to prevent the shell from doing weird things with characters like '&'. Be warned that I replaced my IP address with 'xxx.xxx.xxx.xxx' .
After reading the mplayer manual I found you can pass it the name of a playlist file. So it is as simple as
Code:
$ mplayer -playlist Desktop/play.pls
Code:
MPlayer 1.0rc2-3.3.5 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (Family: 15, Model: 2, Stepping: 4)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Playing http://www.live365.com/play/191432?auth=a29fa8004035f62b6793f59de4a33b71
-1251521875-joerockusa&ss=major_j65%3AREH00CtMQNt4L5F&tag=live365&token
=bdfa0d1bd6f35d927ee9249ebcd96abd-5720280080701251&sid=xxx.xxx.xxx.xxx
-1251418953547076&lid=nh-nld&from=pls.
Resolving www.live365.com for AF_INET6...
Couldn't resolve name for AF_INET6: www.live365.com
Resolving www.live365.com for AF_INET...
Connecting to server www.live365.com[216.235.95.145]: 80...
Resolving 216.235.94.11 for AF_INET6...
Couldn't resolve name for AF_INET6: 216.235.94.11
Connecting to server 216.235.94.11[216.235.94.11]: 80...
Cache size set to 320 KBytes
Cache fill: 15.00% (49152 bytes)
Audio file file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [sndio] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
Blocktype == 0 and window-switching == 1 not allowed.
A:2351.8 (39:11.8) of 0.0 (unknown) 0.9% 35%
I used an 4.6 I386 current snapshot and precomiled binary snapshot packages for firefox and mplayer.
The stream is over TCP as shown by netstat
Code:
$ netstat -an -f inet
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp 15560 0 192.168.222.244.33004 216.235.94.11.80 ESTABLISHED
tcp 0 0 *.6000 *.* LISTEN
tcp 0 0 127.0.0.1.587 *.* LISTEN
tcp 0 0 127.0.0.1.25 *.* LISTEN
tcp 0 0 *.22 *.* LISTEN
tcp 0 0 *.37 *.* LISTEN
tcp 0 0 *.13 *.* LISTEN
tcp 0 0 *.113 *.* LISTEN
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
udp 0 0 192.168.222.244.19487 94.23.144.15.123
udp 0 0 192.168.222.244.1923 194.109.64.200.123
udp 0 0 192.168.222.244.33484 145.24.129.5.123
udp 0 0 192.168.222.244.37586 82.98.234.142.123
udp 0 0 192.168.222.244.19194 194.171.167.130.123
udp 0 0 127.0.0.1.512 *.*
udp 0 0 *.514 *.*