Thursday, September 6, 2007

listen to fm4 live stream

#!/bin/bash

while true
do
mplayer http://mp3stream1.apasf.apa.at:8000/listen.pls
sleep 1
done

6 comments:

Franz Enzenhofer said...

thx

Anonymous said...

Thanks a whole lot, dude!
I'd been trying to get the stream to work on my gutsy amd64 forever! Finally!

wooohooo!!!!

Thanks again!

leo said...

You're very welcome!

Anonymous said...

thanx alot for the link :)
nothings better than the good old bash ;D
but i dont understand why you
are yousing a loop to infinity..
is it because of the buffering?

have a nice day
bye

Anonymous said...

question answered ;)
because of the break offs
when pausing and $(bg) it...

should have waited 10min
before askin ;D
bye

leo said...

The loop is also helpful if the connection isn't so stable, so it'll automatically reconnect.

Regarding the pausing: Note that it's also possible to temporarily mute mplayer by pressing [m]. This is sometimes quite helpful.