-
-
Save stengland/4052479 to your computer and use it in GitHub Desktop.
#!/bin/bash | |
play() { | |
playlist="http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_$1.m3u8" | |
echo $playlist | |
if mpc | |
then | |
mpc add $playlist | |
mpc play | |
else | |
mplayer $playlist | |
fi | |
} | |
if [ -z "$1" ]; then | |
echo "Select a station:" | |
select s in radio_one radio_two radio_three radio_fourfm radio_five_live 6music | |
do | |
play ${s##* } | |
break | |
done | |
else | |
play $1 | |
fi | |
# GistID: 4052479 |
Got working with mpd/@mopidy thanks to this http://www.codedefied.co.uk/2011/12/24/playing-bbc-radio-streams-with-mpd/#comment-205
I think that BBC has changed the streaming URL recently.
Could you modify the bbcradio.sh ?
This is how I am playing the streaming now.
$ ffplay -nodisp http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/low/ak/bbc_radio_one.m3u8
References:
http://iplayerhelp.external.bbc.co.uk/help/playing_radio_progs/changes_audio_formats
http://forum.minimserver.com/showthread.php?tid=2173
https://lists.mplayerhq.hu/pipermail/mplayer-users/2013-September/086608.html
Best regards.
Updated with working link as posted by @tamagoyaki and new station names
https://gist.github.com/noodlebug/0e5e3754f4e8dbf608e72431b9c34484
Updated with latest high quality streams listed here https://beebotron.org/index3lite.php?reload
Could you add radio_four_extra to the station list?
Updated again with high quality streams listed here http://forum.minimserver.com/showthread.php?tid=2173 and also added radio_four_extra and five_live_sports_extra
https://gist.github.com/noodlebug/0e5e3754f4e8dbf608e72431b9c34484
The stream links are apparently outdated again -- for mpd, I've modified my own little script, but TL;DR:
playlist="http://bbcmedia.ic.llnwd.net/stream/bbcmedia_$1_mf_p"
and then modify the station names in the select
using any of
STATIONS=(
radio1 radio1xtra radio2 radio3
radio4fm radio4lw radio4extra
radio5live 6music asianet
cymru foyle nangaidheal scotlandfm
ulster walesmw
)
Found stream urls in this blog post.
Lately for streaming radio in the UK I've had the change the URL to
playlist="http://stream.live.vc.bbcmedia.co.uk/bbc_$1"
Thanks to http://www.commandlinefu.com/commands/view/4070/listen-to-bbc-radio-from-the-command-line. for the inspiration