HOWTO: Record internet radio using VLC
I had to dig through several posts to set up automated recording of my favorite internet radio show. So I hope this may of help to someone besides me.
This can be done with a single command using VLC:
1. Create a script file 'recordmyshow.sh', with the following content.
Code:
#!/bin/sh
NOW=$(date +"%b-%d-%y")
cvlc --run-time=7200 http://kqed-ice.streamguys.org:80/kqedradio-ch-e1 --sout "#duplicate{dst=std{access=file,mux=raw,dst=/home/<user>/myshow-$NOW.mp3}" vlc://quit ;
cvlc is the commandline version of vlc
use --run-time to indicate the duration of the show in seconds
Replace the url to the radio station of your choice and dst to the path you desire. That's it
2. Mark the file as executable
Code:
chmod +x recordmyshow.sh
3. Schedule the recording in cron.
a. Launch the cron
b. Put the schedule in it
Code:
00 18 * * 06 /home/<user>/recordmyshow.sh
My favorite show is at 6 pm every Saturday.
Re: HOWTO: Record internet radio using VLC
Thanks
Is this possible with video asf files?
Re: HOWTO: Record internet radio using VLC
The url I used is feeding mp3. I am not sure about asf. If you give me the link I can try...
Re: HOWTO: Record internet radio using VLC
I would like to schedule a live stream of WPLJ radio station. Here's the address:
Code:
mmsh://citadelcc-wplj-fm.wm.llnwd.net/citadelcc_WPLJ_FM?MSWMExt=.asf
I can't seem to figure out how to do it. Any help would be much appreciated! Thanks.
Re: HOWTO: Record internet radio using VLC
Quote:
Originally Posted by
tubunu
I would like to schedule a live stream of WPLJ radio station. Here's the address:
Code:
mmsh://citadelcc-wplj-fm.wm.llnwd.net/citadelcc_WPLJ_FM?MSWMExt=.asf
I can't seem to figure out how to do it. Any help would be much appreciated! Thanks.
I will follow this thread too:popcorn:
Re: HOWTO: Record internet radio using VLC
Quote:
would like to schedule a live stream of WPLJ radio station
Change the mux to asf
ex.
--sout "#duplicate{dst=std{access=file,mux=asf,dst=/home/doug/nj1.wma}"
Re: HOWTO: Record internet radio using VLC
THANK YOU bheemboy for a great script and THANK YOU mc4man for great advice. It works perfectly! :)
Re: HOWTO: Record internet radio using VLC
hi everybody i need to record radio with this adress:
http://www.ouifm.fr/player/metafile/...tdebit-wmp.asx
what is the command with cvlc?.
i know how do with mplayer but i need to use only vlc:
thanks
Re: HOWTO: Record internet radio using VLC
i found solution myself.
i use wget to download adress radio.after i open the file asx downloaded with kwrite for example and i see the real adress that i can use to record with cvlc
Re: HOWTO: Record internet radio using VLC
i modified the code to this
Code:
#!/bin/sh
vlc --run-time=10800 http://www.live365.com/cgi-bin/play.pls?stationid=319909&now=1157978043165&token=53ddde2191ce2a16d9a3d1f10e1cf672-3012110080400000&AuthType=NORMAL&bitrate=256&SaneID=81.187.66.150-1156155723215&membername=&session=kxlu2%3A0&tag=live365&filename.pls --sout "#duplicate{dst=std{access=file,mux=mp3,dst=/home/paul/mfn.mp3}" vlc://quit ;
to record a show on KXLU which uses .pls format. i changed cvlc to vlc just for testing.
when i execute the .sh file, vlc starts and plays the stream just fine, but no recording takes place. i am able to manually save the stream using the media>convert/save dialogue.
can anyone show me where i'm going wrong? the link for the stream is
Code:
http://www.live365.com/cgi-bin/play.pls?stationid=319909&now=1157978043165&token=53ddde2191ce2a16d9a3d1f10e1cf672-3012110080400000&AuthType=NORMAL&bitrate=256&SaneID=81.187.66.150-1156155723215&membername=&session=kxlu2%3A0&tag=live365&filename.pls