AFL streaming radio from Linux

This is a big sarcastic thanks to AFL and Telstra for building the AFL web site in such a way that it only really works properly in Windows.

Being in London, I want to listen to the Geelong games over the streaming radio, but in Linux (and probably Mac), Silverlight just won’t cut it – and the radio fails to load with an error.

I did some digging around, and worked out the URL for the the streaming radio, which you can then plug into MPlayer to obtain the ASX stream:

mplayer -user-agent "NSPlayer/11.08.0005.0000" http://lon-cdn220-is-1.se.bptvlive.ngcdn.telstra.com/online-radio-afl_12

The code on the end is the stream ID. These are the station codes I’ve managed to work out:

  • ABC774: 2
  • 5AA Adelaide: 3
  • 6PR Perth: 4
  • 3AW Melbourne: 5
  • National Indigenous Radio Service: 6
  • Gold FM Gold Coast: 7
  • Triple M Sydney: 11
  • Triple M Melbourne: 12
  • Triple M Brisbane: 13
  • Triple M Adelaide: 14
  • K-Rock Geelong: 15

I hope this proves useful to someone else.

UPDATE:¬†This has now been changed for the 2013 season. If you’re interested in listening to AFL radio on Linux/Mac/Windows, then try my XBMC AFL Radio plugin.

Posted in Personal by Andy Botting at April 2nd, 2011.

19 Responses to “AFL streaming radio from Linux”

  1. Rod says:

    small world, i’m a friend of simone’s from geelong and read your blog from time to time, now i’m adding feeds to my jailbroken atv (xbmc) and find your iview and 7up players. well done and thanks, and i totally agree with the afl sites sucking. you can include telstra and nrl. they all suck on chrome and firefox

    enjoy london, love that place

    Rod

  2. David in LA says:

    Hey Andy,

    Fellow mac equipped Cats supporter missing the radio coverage too. Can you provide more basic instructions? I’m a little computer-challenged…really challenged.
    David

  3. paritybit says:

    Fellow mac user and geelong supporter. thanks for the tip, unbelievable that in 2011 the afl’s website is so poorly designed

  4. Bruce says:

    Hey, thanks for that. I’ve been using mplayer on linux to get the footy for a few years, and every couple of years they seem to update the server and break it again. Great work, Telstra.
    Your mplayer command line didn’t work for me… I get redirected to something like ken-cdn220-is-1.se.bptvlive.ngcdn.telstra.com, and then mplayer quits. But finally I found that if I use the redirected server, it works.. weird, but whatever. This is working for me tonight…
    mplayer -user-agent “NSPlayer/11.08.0005.0000″ http://lon-cdn220-is-1.se.bptvlive.ngcdn.telstra.com/online-radio-afl_5

    Hope that helps someone

    Go Cats :-)

  5. asdf says:

    http://tunein.com/

    I don’t know much about telstra’s radio stuff etc but tunein is a pretty good site.

    PS The Swans are awesome

  6. Marko says:

    Thanks Andy, works a treat.

  7. Harry says:

    You also need a T1 connection waiting for it to load, otherwise you fall asleep!

  8. Deano says:

    Do you have a URL that will work in XBMC?

  9. Andy says:

    I’m actually working on an XBMC plugin for it – but it doesn’t work reliably now. It’s a little harder than just sticking a URL into XBMC as you need the funny useragent stuff, but I’m hoping to finish it off shortly.

  10. Deano says:

    Hope you get it all sorted. It would be awesome to have that sort of plugin

  11. Andy Botting says:

    @Deano

    First release of XBMC radio plugin here:

    https://github.com/andybotting/xbmc-addon-afl-radio/downloads

    Pull down the ZIP file and extract it into your XBMC/Addons directory. Some streams don’t work, but the main ones should.

    Let me know how it goes

  12. Deano says:

    Tried to install addon from the ‘install from zip file, function in xbmc system addons but get the following message ‘Addon does not have the correct structure’

  13. Andy Botting says:

    @Deano:

    Can email me at andyATandybotting.com?

    cheers

  14. Mike says:

    Andy, well done, thanks this works a treat, I wanted to show gratitude but also feedback – mplayer reports ‘Audio device got stuck’ on every timeline in terminal but the audio stream is uninterrupted, perfect and a treat for a disgruntled moonlight user!!

    cheers!!

    ps. I’d love to know where you got the url’s from :)

  15. Mike says:

    edit from above – Pulse Audio and a cache increase sorted that out :)

    Much obliged Andy

  16. Andrew Kennedy says:

    Thanks!

  17. Frank Riegel says:

    You saved my day!

    I am living on the Sunny Coast and can’t listen to most Melbourne played games – thanks to the greed of the AFL.

    Your post got me up and running – thanks mate!

  18. ?? says:

    Awesome. Thanks heaps. :)

  19. Peter says:

    Still works nicely, just in time for tonight’s final.

    Thanks!

Leave a Reply


− two = 3