Hi Rudy, Brent and radiostreaming lovers,
in attachment the promissed whichstation-script, together with the
whichstation.lst it currently uses.
I'm working on it to update the .lst file due to some missing urls / broken
urls.
It's difficult to maintain it, I'm not sure to be able to maintain it at
a long term: server addresses are changing at regular times and not all
streaming urls are located at one and only mega-giga radiostation list.
Rudy, feel free to inspire on whichstation to create your own personalized
streaming-tool.
Note:
- ACBRadio is already present on my list, but not WABCRadio,
- to use the script, cp both the whichs* files to /usr/local/bin,
make whichstation executable, install mplayer, and
type: whichstation <ENTER> or: whichstation <number 1-36> <ENTER> ... wait
and enjoy!
- pressing ENTER or CTRL+C stops streaming and goes back to the preset menu.
Labrador.
(attachment)
On Sun, Jun 06, 2010 at 03:43:50PM -0500, Brent Harding wrote:
Oh, I know of ones you just can't capture, they're those new liquid
compass ones or something, the higher 64k instead of 32. I could never
find a valid url to use with those and the default volume is very low.
Even with a windows tool designed to sniff the packet and get the URL, it
didn't work.
----- Original Message ----- From: "Labrador" <labrad0r@xxxxxxxxx>
To: "Linux for blind general discussion" <blinux-list@xxxxxxxxxx>
Sent: Sunday, June 06, 2010 6:50 AM
Subject: Re: command line streaming URL scraping tool
Hi Rudy:
On Sat, Jun 05, 2010 at 05:52:30PM -0400, Rudy Vener wrote:
I'm trying to locate a tool which when given a web page with a
"Listen Live"
link, can return the actual URL of an audio stream which can be handed
off to mplayer.
My problem as you will doubtless surmise, is finding the actual
URLs of audio streams.
Ideally I'd like a tool which I can use like this:
$ get_audio_url http://www.wabcradio.com > url.txt
or
$ mplayer `get_audio_url http://www.wabcradio.com`
Does anyone know if such a beastie exists?
I have myself published a script called whichstation; I made this for
BE FR
and NL + some other stations.
The problem I encounter is to get an updated list of updated
streaming-urls:
Google is my friend in that case,
and more and more radio stations does use a .php url + a javascript-alike
app that starts a .swf player, which does contain a real m3u or mp3 of asf
or asx location.
I am not sure to be able to continue maintaining my script, but it was
designed to be
a) blindfriendly
b) and using mplayer on the commandline.
There isn't any url online where to go for having the latest upgraded
streaming urls for all radios in the world;
I totally missed how does shoutcast and icecast sites does maintain those
lists, but I'm not full professionally busy with radio streamings, so
can't
do anymore for now.
I propose to send you a package of whichstation at the end of the week,
once
I've tried to fix some broken urls in the whichstation.lst;
maybe this can inspire for similar projects, even if ooutside Europe.
Labrador
_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list
_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list
#!/bin/bash
#
# WhichStation-NG - The ultimate easy radio station streaming script
# N)ew G)eneration Edition
#
# O. La Rosa - http://whichstation.blinuxman.net - 19-06-2004 - Public
# Latest release: 27-10-2009
# Based on a script found here: news:be.comp.os.linux
# Feel free to visit http://blinuxman.net providing us with new urls
# (see online form to contact us).
#
# Variables:
#
P[1]=" 1 ACBRadio en_us "
P[2]=" 2 BeOne be_nl "
P[3]=" 3 Classic21 be_fr "
P[4]=" 4 DreamFactory en_de "
P[5]=" 5 Europe1 fr_fr "
P[6]=" 6 Europe2 fr_fr "
P[7]=" 7 FIP fr_fr "
P[8]=" 8 FranceBleu fr_fr "
P[9]=" 9 FranceCulture fr_fr "
P[10]=" 10 FranceInfo fr_fr "
P[11]=" 11 FranceInter fr_fr "
P[12]=" 12 GrooveSalad en_gb "
P[13]=" 13 JoeFM be_nl "
P[14]=" 14 LaPremiere be_fr "
P[15]=" 15 LeMouv fr_fr "
P[16]=" 16 MNM be_nl "
P[17]=" 17 NRJ fr_fr "
P[18]=" 18 PureFM be_fr "
#
Q[1]=" 19 Q-Music be_nl "
Q[2]=" 20 Radio1 be_nl "
Q[3]=" 21 Radio2 be_nl "
Q[4]=" 22 Radio3 nl_nl "
Q[5]=" 23 RadioCampus be_fr "
Q[6]=" 24 RadioNostalgie eu_** "
Q[7]=" 25 RFI fr_fr "
Q[8]=" 26 RIM fr_fr "
Q[9]=" 27 RireEtChansons fr_fr "
Q[10]=" 28 RMC mc_fr "
Q[11]=" 29 RTL fr_fr "
Q[12]=" 30 SkyRock fr_fr "
Q[13]=" 31 SlowRadio nl_be "
Q[14]=" 32 SpamRadio en_us "
Q[15]=" 33 StudioBrussel be_nl "
Q[16]=" 34 TonicLounge en_de "
Q[17]=" 35 TopRadio be_nl "
Q[18]=" 36 Vivacite be_fr "
#
LST="/usr/local/bin/whichstation.lst"
#
#MP="mplayer -cache 256 -vo null"
#MP="mplayer -cache 512 -vo null -hardframedrop"
#MP="mplayer -cache 512 -vo null -hardframedrop -ao sdl"
#MP="mplayer -vo null -wid 0x2200041 -xy 242 -nortc -cache 128 -osdlevel 1 -nojoystick -nolirc -slave -nomouseinput"
#MP="mplayer -vo null -wid 0x2200041 -xy 242 -nortc -cache 128 -ao oss -osdlevel 1 -nojoystick -nolirc -slave -nomouseinput"
#MP="mplayer -vo null -af volnorm=2 -wid 0x2200041 -xy 242 -nortc -cache 256 -cache-min 7 -cache-seek-min 55 -ao oss,alsa, -osdlevel 1 -nojoystick -nolirc -slave -nomouseinput"
#MP="mplayer -vo null -af volnorm=2 -nortc -cache 256 -cache-min 7 -cache-seek-min 55 -ao oss,alsa, -osdlevel 1 -nojoystick -nolirc -nomouseinput -slave"
MP="mplayer -vo null -af volnorm=2 -nortc -cache 256 -cache-min 7 -cache-seek-min 55 -ao oss,alsa, -osdlevel 1 -nojoystick -nolirc"
# Running!!!
#
clear
setleds +num
if [ "$1" == "" ]; then
echo " =-=-=-=-=-=-=-=-= Which station would you like to listen to? =-=-=-=-=-=-=-=-=
"
for i in $(seq 1 18); do
echo -e "${P[$i]}\t${Q[$i]}"
done
echo -ne "\a"
echo "
------------------------------------------------------------------------------"
read -p" Enter the number of your choice (or give it as an argument to the script): " K
else
K="$1"
fi
test -z "$K" && clear && echo "Goodbye!" && exit
for S in "$K"; do
S="`sed -n \"$K\"p $LST`"
clear
echo "CTRL+C to exit . . . "
$MP $S
done
exec $0
#
# End of script.