${fontLinkMarker}

Alin Marin Elena's

Republic of Numbers and Letters
Tags

Charles Simic

alberto giacometti

Louis MacNeice

belle and Sebastian

gagarin

tar

van der graaf generator

daily

romanian

english

legend

camera obscura

supercomputing

top 500

coppola

eliade

film

youth without youth

Human rights act

abuse

migrants

iphone

lousy

4-3-2

oscar

french

le questionnaire de proust

creative sciences

francois mitterrand

sale

farmers

libido

malawi

hello

picture

diet

hazards

dragasani

ebay fraud

dor-de-munca

games

minicity

gorillas

missionary position

cuba

spanish

vista pictures

Marin Sorescu

Roger McGough

Craiova

cotidian

duel

varia

amarok

bbc

kde

flash

opensuse

dilema veche

nokia

yellow smiley face

academia life

Intimate monologues

many shades of blue

dart poetry

fabrizio de andrè

Andrea Parodi

Pablo Neruda

Amalia Rodrigues

Philip Larkin

uk ellections 2010

may day weekend

englush

modern art

despre prietenie

lateral thinking

eurovision 2010

wrong bank

dali

dreams

david lodge

thinks

dear fear

migala

cpu

gpu

intel. dogs

nvidia

ernesto sabato

makine

reading

google calendar

korganizer

philip glass

stupidity

electronic devices

vinicio capossela

amedeo modigliani

vinicio caposella

Mario Benedetti

Peter Porter

Andy Warhol

Femme Fatale

Lou reed

Velvet Underground

andrew motion

hp pavillion dm1 1020sa

opensuse 11.3

eye test

google chat

children in restaurants

kde4

ucd life

gabriel metsu

national gallery dublin

john cage

silence

bugs

software management

haruki mursakami

commonwealth games

church

vomit

Samuel Beckett

Anne Carson

rome

Michel Houellebecq

student protests

Christopher Hitchens

Tom Wayman

dublin

ireland

multicultural experiences

kent

be free think!!!

julian assange

wikileaks

Brian Patten

Jorge Luis Borges

arcade fire

John Grant

Paul Celan

henry moore

Murray Lachlan Young

crowd wisdom

Pier Paolo Pasolini

if not

Andrei Voznesensky

Marché Aux Puces

Tessimond

Camillo Sbarbero

Giuseppe Ungaretti


By: Alin Marin | January 01, 1970

It is well known that bbc streams in real player and windows media player formats.
Here is an easy list with all the links
http://www.radiofeeds.co.uk/query.asp?feedme=bbc

Now if you want to play it in linux you can use the real player streams and play them in real player or mplayer directly.
Actually you can play the mms streams with a little bit of digging. Until someone thinks and has the skills to transform them in a amarok plugin I describe here the manual procedure.

The simplest way is to download the .asx file open it in a text editor grab the mms link and open it amarok. However because sometimes due to congestions or simply out-of-order streams your station may stop playing. That is why I decided to extract all the provided mms links and create a m3u playlist. Here is the step by step procedure for bbc radio 4 fm and bbc radio 3 (the stations that I listen).
step 1. get the r4.asx and r3.asx

wget http://www.bbc.co.uk/radio/listen/live/r3.asx
wget http://www.bbc.co.uk/radio/listen/live/r4.asx

the result

alin@blue:~/Music/bbcStreams> l
total 24
drwxr-xr-x 2 alin users 4096 2010-04-25 09:57 ./
drwxr-xr-x 101 alin users 4096 2010-04-25 09:56 ../
-rw-r--r-- 1 alin users 6627 2010-04-25 09:56 r3.asx
-rw-r--r-- 1 alin users 6627 2010-04-25 09:57 r4.asx

step 2a. script to convert asx to m3u
now we should transform the asx in m3u. To make my life easier just wrote a small script to do that automatically for me. Here is it:

#!/bin/bash
# usage
# asx2m3u <asx file> <m3u file> "label for the station"
# Author Alin M Elena alinm.elena@gmail.com
#copy the files
cp $1 $2
#remove header it has 9 lines
sed -i '1,9d' $2
#clean the links
sed -i -e '/<\/Entry>/d' -e 's/<ref href=\"//g' -e 's///g' -e 's/\" \/>//g' -e 's/\t *//g' $2
# now just add the label
sed -i 's/<Entry>/#EXTINF:0,'"$3"'/g' $2
#remove last line
sed -i '$d' $2


copy and save it to asx2m3u
change permissions

alin@blue:~/Music/bbcStreams> chmod 755 asx2m3u

step 2b. the conversion

alin@blue:~/Music/bbcStreams> ./asx2m3u r3.asx bbcr3.m3u "BBC Radio 3"
alin@blue:~/Music/bbcStreams> ./asx2m3u r4.asx bbcr4.m3u "BBC Radio 4 FM"

result

alin@blue:~/Music/bbcStreams> l
total 44
drwxr-xr-x 2 alin users 4096 2010-04-25 10:05 ./
drwxr-xr-x 101 alin users 4096 2010-04-25 09:56 ../
-rwxr-xr-x 1 alin users 405 2010-04-25 10:01 asx2m3u*
-rw-r--r-- 1 alin users 5798 2010-04-25 10:04 bbcr3.m3u
-rw-r--r-- 1 alin users 5894 2010-04-25 10:05 bbcr4.m3u
-rw-r--r-- 1 alin users 6627 2010-04-25 09:56 r3.asx
-rw-r--r-- 1 alin users 6627 2010-04-25 09:57 r4.asx

step 3.. Locate on your hdd, load in amarok and enjoy.

Notes
*The same procedure should apply to all the other stations. I have tried myself on few and it worked. If you have problems you can drop a line I may try to help if time allows.
*I assumed that you already have a working version of amarok. You have the non-free plugins installed. I use amarok 2.3.0 and opensuse 11.2 with a preview of kde sc 4.5
*It may take few times until starts as I suspect it does some buffering at the beginning.

Category: daily 

Tags: daily, english, varia, amarok, bbc, kde 

Comments:

Be the first to comment ...

Post a Comment