Extracting a URL for BBC AAC radio stream from their config file (contents inside)

internet-radiostreaming

I found some links for BBC radio stations. I'm trying to get the actual url for their AAC stream for BBC5.

They are listed here. http://support.bbc.co.uk/multicast/streams.html

The contents of the file for the BBC5 acc are :

v=0
o=bbcrd 1140190509 1140190509 IN IP4 132.185.224.80
s=BBC 5Live Sports Extra [AAC]
i=Multicast trial service from BBC Research & Development Copyright (c) 2006 British Broadcasting Corporation
a=x-qt-text-nam:BBC 5Live Sports Extra [AAC]
a=x-qt-text-aut:BBC Research & Development
a=x-qt-text-cpy:Copyright (c) 2006 British Broadcasting Corporation
u=http://www.bbc.co.uk/multicast/
e=Multicast Support <multicast-tech@bbc.co.uk>
t=0 0
c=IN IP4 233.122.227.170/32
m=audio 5170 RTP/AVP 96
b=AS:128000
a=rtpmap:96 mpeg4-generic/44100/2
a=fmtp:96 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1210

But from this I don't have the knowledge to put together the actual URL that is used.

Does this make sense to anybody? Or is the another way to skin this beast?

Best Answer

What you're looking at is an Session Description Protocol file that basically tells you the IP where the stream is to be found and what it actually is.

So here's the information about where the stream is:

c=<network type> <address type> <connection address>    
c=IN IP4 233.122.227.170/32 

And here for the media stream contained:

m=<media> <port> <transport> <fmt list>
m=audio 5170 RTP/AVP 96

Now, as far as I'm concerned, you should be able to open a media player like VLC and let it connect to rtp://233.122.227.170:5170, which should get you the stream's contents.

However I can't access anything at that URL which is probably due to the fact that BBC limits its broadcasting to UK only IP addresses.

Related Question