June 7, 2010 · General · Email This Post
Share
{lang: 'en-GB'}

This tutorial will explain how to record internet radio using VLC this can be done with a single command using VLC
Procedure to follow

1. Create a script file ‘recordmyshow.sh’, with the following content from your terminal

#!/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.

2.Mark the file as executable

chmod +x recordmyshow.sh

3.Schedule the recording in cron.

a. Launch the cron

crontab -e

b. Put the schedule in it

00 18 * * 06 /home/<user>/recordmyshow.sh

Source from here

Share

Related posts

3 Comments to “How to Record internet radio using VLC”

  1. Floyd says:

    How would one do this for a web site that requires a login and password? Could that be included in the script?

    [Reply]

  2. Bit Hacker says:

    Simply copying the URL of the radio and using Advanced Control button of recording does the same job. :)

    [Reply]

  3. maedox says:

    @Floyd: If it supports bacis auth you can put your username and password in front of the URL like this: http://username:password@website.com

    And if it doesn’t, there probably is another mechanism to do it. di.fm for example, uses a simple hash string (url?some-ugly-hash-string) to identify everyone. Ask them. :-)

    [Reply]

Leave a Reply