Home > bash, music > Klassikradio MP3 streams

Klassikradio MP3 streams

Klassikradio is a German radio station with an easy-to-digest selection of classical music, movie themes and other relaxing sounds, with not too many commercials.

They have many channels, all available as mp3 streams. The full list and links to the streams can be found at http://stream.klassikradio.de/

On my computers, I have saved the m3u files for all the 192kb streams. I retrieved them using one convenient wget command and then moved them to my media/radio folder.

These are the shell commands (works on Linux, Unixes, Cygwin and probably MacOS):

cd
mkdir -p media/radio
wget http://stream.klassikradio.de/ -r -l1 -A '*.m3u' \
--accept-regex '.*\/mp3-192\/stream\.klassikradio\.de\/play\.m3u'
cd stream.klassikradio.de
for channel in *; do
mv "${channel}/mp3-192/stream.klassikradio.de/play.m3u" \
"${HOME}/media/radio/klassikradio-${channel}.m3u";
done
cd ; rm -rf stream.klassikradio.de

M3U files are the easiest way to “bookmark” media streams to be played by an audio player of your choice, outside the web browser.

I use the VLC player with the “Allow only one instance” setting and configure it as the default application for *.m3u files.

Advertisements
Categories: bash, music
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: