[MPlayer-users] CBC & .asx streams
Graham Wilson
grahamwilsonca at yahoo.ca
Wed Jul 18 19:35:08 CEST 2007
I'm having a tough time listening to the current CBC streams and I was wondering if anyone else is having issues.
The feeds are given here:
http://www.cbc.ca/listen/streams.html
Pointing mplayer to the first feed (Calgary):
---
mplayer -ao pcm:file=/data/tmp/Test_2007-07-18_1140.wav -playlist http://origin.www.cbc.ca/mrl2/livemedia/cbcr1-calgary.asx
MPlayer dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (Family: 15, Model: 2, Stepping: 5)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Resolving origin.www.cbc.ca for AF_INET6...
Couldn't resolve name for AF_INET6: origin.www.cbc.ca
Resolving origin.www.cbc.ca for AF_INET...
Connecting to server origin.www.cbc.ca[159.33.3.85]: 80...
STREAM_ASF, URL: http://origin.www.cbc.ca/mrl2/livemedia/cbcr1-calgary.asx
Resolving origin.www.cbc.ca for AF_INET6...
Couldn't resolve name for AF_INET6: origin.www.cbc.ca
Resolving origin.www.cbc.ca for AF_INET...
Connecting to server origin.www.cbc.ca[159.33.3.85]: 80...
read: Resource temporarily unavailable
Failed, exiting.
Resolving origin.www.cbc.ca for AF_INET6...
Couldn't resolve name for AF_INET6: origin.www.cbc.ca
Resolving origin.www.cbc.ca for AF_INET...
Connecting to server origin.www.cbc.ca[159.33.3.85]: 80...
Cache size set to 320 KBytes
Playing http://mfile2.akamai.com/9617/live/reflector:36811.asx?bkup=36812.
Resolving mfile2.akamai.com for AF_INET6...
Couldn't resolve name for AF_INET6: mfile2.akamai.com
Resolving mfile2.akamai.com for AF_INET...
Connecting to server mfile2.akamai.com[207.61.136.32]: 80...
STREAM_ASF, URL: http://mfile2.akamai.com/9617/live/reflector:36811.asx?bkup=36812
Resolving mfile2.akamai.com for AF_INET6...
Couldn't resolve name for AF_INET6: mfile2.akamai.com
Resolving mfile2.akamai.com for AF_INET...
Connecting to server mfile2.akamai.com[207.61.136.24]: 80...
size_confirm mismatch!: 22611 20047
Error while parsing chunk header
Failed, exiting.
Resolving mfile2.akamai.com for AF_INET6...
Couldn't resolve name for AF_INET6: mfile2.akamai.com
Resolving mfile2.akamai.com for AF_INET...
Connecting to server mfile2.akamai.com[207.61.136.32]: 80...
Cache size set to 320 KBytes
Cache fill: 0.08% (272 bytes)
Exiting... (End of file)
---
If I grab the .asx URL with curl/wget, I find the entry is a link to another asx.
<ASX VERSION="3.0">
<ENTRY>
<REF HREF="http://mfile2.akamai.com/9617/live/reflector:36811.asx?bkup=36812" />
</ENTRY>
</ASX>
If I grab this asx file, it reads:
<ASX VERSION="3.0">
<ENTRY>
<REF HREF="mms://a812.l961736811.c9617.g.lm.akamaistream.net/D/812/9617/v0001/reflector:36811" />
</ENTRY>
<ENTRY>
<REF HREF="mms://a813.l961736812.c9617.g.lm.akamaistream.net/D/813/9617/v0001/reflector:36812" />
</ENTRY>
</ASX>
I can get mplayer to process this last file either by using '-playlist http://mfile2.akamai.com/9617/live/reflector:36811.asx?bkup=36812' or by grabbing one of the mms streams directly. That is to say that both of these work:
---
mplayer -ao pcm:file=/data/tmp/Test_2007-07-18_1140.wav -playlist http://mfile2.akamai.com/9617/live/reflector:36811.asx?bkup=36812
mplayer -ao pcm:file=/data/tmp/Test_2007-07-18_1140.wav mms://a812.l961736811.c9617.g.lm.akamaistream.net/D/812/9617/v0001/reflector:36811
---
The trouble is that the URL of these secondary asx links (and the mms URLs) change periodically and I must constantly update my listening/recording scripts. I'd really like to use the top-level asx link.
Any ideas?
Graham
---------------------------------
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail
More information about the MPlayer-users
mailing list