Reputation: 821
I searched for information before posting and I didn't find exactly what I was looking for. Hopefully someone can point me in the right direction. There is a certain radio show that I like to listen to, but I can't listen to it all the time because it broadcasts during the middle of the day. I would like to have the capability to record parts of it on the days that I can't listen. Does Java provide the means to record audio from an internet radio stream? I'm willing to use another language if Java isn't the right choice for this. I'm just not quite sure where to start.
Thanks alot
Upvotes: 2
Views: 1658
Reputation: 185053
You can use LiveHttpHeaders Firefox addon to dump the HTTP headers to find which URL is streamed. (You will see the ressource file).
Then, no need of Java for this, a simple curl command should do the trick :
curl -A "Mozilla/5.0" -b /tmp/c -c /tmp/c "http://domain.tld/path/to/radio_show.extension" > radio_show.flv
Edit : with the real URL :
curl -A "Mozilla/5.0" -L -b /tmp/c -c /tmp/c -s "http://208.92.55.56/WABCAMAAC?streamtheworld_user=1&nobuf=1337218977154" > /tmp/dump
Upvotes: 2