OpenWrt Forum Archive

Topic: How to have titles for Internet radio streams

The content of this topic has been archived on 24 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello everybody!
Im using mpd and mpc in an openwrt installation I have in my router and BitMPC in my Android to control it.

Everything is working fine, Im just trying to make it more user-friendly.

I have one m3u playlist in the playlists dir which I load on startup and from my mpc I can see and select the radio I want by selecting its URL from a list of URLs.
Sometimes this can be http://xx.xx.xx.xx:8000/bbc_radio.mp3 which is self explanatory which station it is but sometimes it can be http://xx.xx.xx.xx:8000 which obviously means nothing to people who dont memorise IPs like me

I did my research for some hours (I usually prefer to spend a few extra hours finding suggestions and experimenting rather than fire away posts in forums) and I have found the following:
-Standard m3u files do not support titles
-Extended m3u files support titles using the following format:
#EXTM3U
#EXTINF:35,JoinRadio
http://37.59.25.167:8000
-The playlists directory of mpd (the one specified in mpd.conf) is only for mpd to store its own playlists and mpd supports standard m3u format only hence the extra data that ExtM3U supports are ignored when loaded.
-MPC can read ExtM3U if the playlist is loaded from another directory than the playlists directory

And here is the problem. If I run:
mpc load /home/test.m3u

I get the following message:
loading: /home/test.m3u
error: ACK [2@0] {load} playlist name "/home/test.m3u" is invalid: playlist names may not contain slashes

Any hints?

I think you have to put the playlist file into the playlist directory and the load it by its name only, the mpd load command is not meant to accept arbritary paths.

However this is not really OpenWrt related but a standard mpd usage question.

Thanks jow!
I have already posted it on MPD forum but looks like a very inactive community and was wondering if any other fellow openwrt user can give me a hint if they use openwrt in a similar way.
You are right on what you say but If I have the .m3u file in the playlists dir (and then load it only by its name: mpc load test) then standard m3u is used (and shows only the URLs) and not extended which would read the title fields I want to include in the first place.

Has anyone found a workaround on this?
Thanks again for your patience on this kinda off-topic post.

Hey, I have exactly the same issue! I've been surfing around for over an hour now and your thread is still the closest to my problem.

I have set up a mpd server at work and people were complaining that in the radio station m3u names are ip addresses. So I would like to list the Radio Station Names secified with extm3u

I know this is not the perfect forum but it is a piece of software running on my openwrt tp-link router and I hope that someone here has experience with mpd/mpc

Apparently mpd can read extm3u but the culprit is mpc not letting me play any playlists outside of the standard /.mpd/playlists directory

using "mpc load /root/test.m3u" will not load the playlist from there.

does anyone have any idea if i can load extm3u playlists from a non specified directory with mpc?

(Last edited by chrishelms on 17 Jun 2014, 03:52)

Hello,
I've given up on this one and memorised the IP/URL and its position in the list tongue
To be honest as its for my home, me and my gf listen to 5-6 stations max so its not that hard, but reading your post I realised another workaround...
If you have a decent modem/router you can set a redirect there and redirect http://mpd.BBCRadio1.local to http://<Radio1-IP> for each station in you playlist and then change your playlist from IPs to be "fake" URLs (and easily identifiable) that will be picked up by your router and get redirected. Will try that at some point but I dont see why it would not work.

As I already said, yes its a big workaround and maybe for some too much of a hassle but I like experimenting and most importantly making it exactly the way I want it wink

hey guliver,

thanks for your reply! i still can't believe how much time i wasted yesterday to make this work... it seems like such a simple thing to do wink
anyways, your workaround sounds plausible and will probably work but will not work in my case. At home I could make it work on openwrt but at work I set up mpd on an old imac.

One workaround I'm using to seperate stations by musical style is to have fake http addresses in the list like http://----80s----
My girlfriend and me got used to the IP addresses as well to be honest so it's not that big of a deal, especially because once you click on them with Mpod you see the station, bitrate, artist and title. Still, it would be nice to use EXTM3U


One other cool thing I figured out is having music playing once I enter the apartment through IP pings of my phone:
http://stackoverflow.com/questions/2402 … 8#24269698

Here is my list which is still WIP in case you are interested

http://67.23.246.19:/--- 80s ---
http://streaming204.radionomy.com/always-80s
http://streaming207.radionomy.com/80-s--Disco
http://streaming205.radionomy.com/BestBigMix
http://streaming203.radionomy.com/Addictive-80s
http://peace.str3am.com:6320/eightball

http://67.23.246.19/--- 90s ---

http://streaming208.radionomy.com/Vitamine-90
http://radio.clubxgen.com:8000/xgen-1990s
http://webradio.antennevorarlberg.at/90er
http://streaming208.radionomy.com/A-RADIO-90s-JUICE
http://streaming207.radionomy.com/A11-Radio-Dreams-90s

http://67.23.246.19/--- Africa ---
http://streaming204.radionomy.com/Africa-Fm
http://67.23.246.19:8002/
http://209.9.238.5:8580/
http://67.228.150.184:6115/
http://87.98.172.215:8008/
http://67.23.246.19:8004


http://67.23.246.19/--- Bondi ---
http://radio.bondibeachradio.com.au/

http://67.23.246.19/--- Breakbeat ---
http://stream1.radio23.cz/2ch128
http://radio.clubxgen.com:8000/xgen-breakbeat
http://91.121.10.156:8023/
http://208.53.138.125:8294/
http://72.51.43.54:8800/
http://70.36.96.85:9320/
http://87.117.228.94:8036/

http://67.23.246.19/--- Chill ---
http://streaming208.radionomy.com/SunSea-Radio
http://streaming208.radionomy.com/12XIIIIX12
http://108.61.73.115:8700/
http://70.38.11.155:8092/
http://117.53.175.113:15004/
http://108.61.73.117:8750/
http://109.206.96.34:8020/
http://173.244.199.253/
http://173.239.76.146/
http://s7.radioheart.ru:8000/nonstop
http://streaming206.radionomy.com/jangaradio
http://streaming206.radionomy.com/Sunshine-State-Lounge
http://streaming201.radionomy.com/absolutevintage
http://streaming201.radionomy.com/JamRelaxation
http://streaming202.radionomy.com/chillectro-lounge
http://streaming201.radionomy.com/boozik-lounge
http://streaming205.radionomy.com/A-A-Ambient
http://streaming205.radionomy.com/The-Lounge-Channel
http://85.17.75.143/
http://205.164.35.3/
http://38.104.130.91:2800/
http://69.175.13.131:8280/
http://173.192.198.244:8010/
http://109.71.41.250:8034/
http://sc.ipip.cz:8016/

http://67.23.246.19/--- Classical ---
http://streaming206.radionomy.com/JamClassical
http://streaming201.radionomy.com/1000ClassicalHits
http://streaming207.radionomy.com/ABC-Classic
http://peace.str3am.com:6320/symphony
http://kc3ol.dynip.com:8010/live
http://streaming207.radionomy.com/MozartRadio
http://streaming201.radionomy.com/Misterium
http://streaming201.radionomy.com/RADIO-SANFURGO

http://67.23.246.19/--- Comedy ---
http://s2.stationplaylist.com:9150/comedy
http://ice.abradio.cz/humor64.mp3
http://173.236.28.138:8080/
http://173.193.138.136:7240/
http://209.105.250.69:8265/
http://108.61.73.120:8026/
http://64.27.3.130:8181/
http://108.61.73.115:8026/

http://67.23.246.19/--- Funky ---
http://streaming208.radionomy.com/Nu-JazzFunkRadio
http://streaming202.radionomy.com/Laid-Back-Radio

http://67.23.246.19/--- Hawaii ---
http://198.178.123.23:8322/
http://198.178.123.5:7624/
http://199.180.72.2:8033/
http://50.7.96.210:8325/
http://streaming201.radionomy.com/yimago-radio-2

http://67.23.246.19/--- House ---
http://streaming203.radionomy.com/A-PrOn-Invasion-Radio
http://live4.vmix.fm/acc.mp3
http://streaming204.radionomy.com/MiamiClubMusiccom
http://radio.clubxgen.com:8000/xgen-house
http://streaming201.radionomy.com/All-Dance-radio
http://ice.abradio.cz/ghouse64.mp3
http://streaming208.radionomy.com/Surf-Radio-Clubbing
http://streaming207.radionomy.com/DanceClassicsRadio
http://193.34.51.16/
http://173.192.207.51:8062/

http://67.23.246.19/--- Jungle ---
http://relay1.oxyradio.net:8000/bassjunkees.mp3
http://relais.uturnradio.com/drum_and_bass
http://dnbnoise.com:8000/live
http://radio.clubxgen.com:8000/xgen-drumandbass
http://radioson.ru:8009/music.mp3
http://50.7.98.106:8398/
http://95.141.24.54/
http://88.190.241.226:8442/
http://173.236.56.82:8004/
http://212.48.65.54:2470/
http://94.142.241.231:8000/
http://212.48.65.54:2470/
http://188.165.227.201:8000/

http://67.23.246.19/--- Mixtapes ---
http://85.214.210.12:9500/
http://67.212.173.251:8290/
http://199.180.72.2:8038/
http://108.163.213.202:8004/
http://77.92.68.221:15763/

http://67.23.246.19/--- Reggae-Dancehall ---
http://203.150.225.77:8305/
http://174.142.97.228:21000/autodj
http://streaming201.radionomy.com/Dancehall-Riddims
http://streaming207.radionomy.com/Reggae-Connection
http://188.165.60.91:8300/
http://198.178.123.20:7000/
http://67.212.189.122:8042/
http://99.198.118.250:8016/
http://188.165.60.91:8364/
http://206.190.150.90:8217/
http://67.228.150.199:8282/
http://74.115.208.36:8119/
http://108.61.73.119:8052/
http://108.61.73.115:8130/
http://184.107.197.154:8002/
http://205.164.35.25/
http://streaming205.radionomy.com/Reggae-Valencia
http://50.7.77.114:8479/autodj
http://streaming203.radionomy.com/A-REGGAE-FM-WEB
http://50.22.211.228:8008/
http://108.163.213.202:8040/
http://91.250.80.72:8048/
http://50.7.53.6/
http://streaming208.radionomy.com/Bob-Marley
http://streaming207.radionomy.com/Radio-Smoking-Ganja

http://67.23.246.19/--- Rockabilly ---

http://lin3.ash.fast-serv.com:6026/stream_96
http://94.23.210.183:8001/
http://192.99.8.192:3444/
http://67.213.213.143:8032/
http://89.40.221.212:29200/
http://157.181.47.204:9000/
http://209.9.238.6:6042/
http://62.212.132.53:8426/
http://205.237.48.200:8000/
http://200.195.168.12:8282/

http://67.23.246.19/--- Swing ---
http://208.53.158.48:8100/
http://lime.citrus3.com:8002/
http://www.bigblueswing.com:8002/

(Last edited by chrishelms on 17 Jun 2014, 18:16)

Hi,

I'm using the following workaround using MPDroid in android to control mpd:

- Create 1 file for each radio station with the proper naming under playlists folder:

nano "JazzRadio - Fusion Lounge.m3u" --> http://pub1.jazzradio.com:80/jr_fusionlounge

- In MPDroid go to playlists and you'll see:

JazzRadio - Fusion Lounge

- Repeat for all your radio stations and you're done

(Last edited by dgatf on 7 Jun 2015, 11:12)

That dgatf seems even simpler and better than the rest on this thread to be honest! smile
Well done!

Same problem here. But I found that in MPDroid you can append "#Radio Station Name" to the entries in the m3u file.

MPDroid creates a playlist for its "Streams" feature, which is formatted like this:

cat data/mpd/playlists/\[Radio\ Streams\].m3u 
http://dradio-ogg-dl ... gg_dlf_l#Deutschlandfunk
http://dradio-ogg-dk ... kultur_l#Deutschlandradio Kultur
http://dradio-ogg-dw ... wissen_l#DRadio Wissen
http://wdr-3.akacast ... et/wdr-3#WDR 3
http://wdr-5.akacast ... et/wdr-5#WDR 5
http://funkhaus-euro ... s-europa#Funkhaus Europa
http://swr-mp3-m-swr ... 3-m-swr2#SWR 2
http://br-mp3-br-kla ... lassik_m#BR Klassik

Now MPDroid displays these "hashtags" insead of the URL, but somehow I can’t make this work with mpc client, which is how I control it on my laptop.

The discussion might have continued from here.