VLC as a Recorder |
Tip: You can record without a computer using an online service. See Record Radio Online.
Tip: You can transcode streams to make them easier to record. See Transcode with VLC.
Tip: You can transcode streams to make them easier to record. See Transcode with VLC.
VLC media player (free open source cross-platform multimedia player and framework) is a great way to listen to Internet radio (streams). All you need is a streaming URL (often obtainable from the source website; e.g., http://18543.live.streamtheworld.com:80/KUSCMP96_SC from KUSC) which you open in VLC with Media > Open Network Stream. To save a source for future listening while it is playing, just drag the Title and drop it onto the Media Library.
Recording a source while it's playing is quite easy: View > Advanced Controls to make the recording control available; click on the red record button circle to record; and click again to stop recording. The recording file will be appropriately named and (on Windows) saved in your Music folder.
Scheduling recordings for times when you're not at your computer can be done with (a) the Task Scheduler built into Windows and (b) the VLC command line interface. Start by testing your recording command in a Command Prompt window, with the following four elements separated by spaces:
- Complete path to vlc.exe; e.g.,
"C:\Program Files\VideoLAN\VLC\vlc.exe" - Stream URL; e.g.,
http://playerservices.streamtheworld.com/pls/KUSCMP128.pls - Recording duration in seconds; e.g., (for 60 mins)
--run-time 3600 vlc://quit - VLC record parameters; e.g.,
--sout="#std{access=file,mux=raw,dst=Recording.mp3}"
Complete example with date and time (single line):
http://playerservices.streamtheworld.com/pls/KUSCMP128.pls ‑‑run‑time 3600 vlc://quit ‑‑sout‑file‑format ‑‑sout="#std{access=file,mux=raw,dst=The_Record_Shelf_%Y‑%m‑%d_%H%M_(KUSC).mp3}"
Putting them all together on a line in a Command Prompt window should launch the VLC GUI and create the recording file. After VLC has completed the recording and quit, double-click on the recording file to play it, or open it in VLC. When this is working properly, you can move on to scheduling:
- Open Task Scheduler
- Click Create Task
- On the General tab:
- Enter Name (e.g., My Stream)
- Select Run whether user is logged on or not
- On the Triggers tab, click New:
- Enter desired schedule
- Check Stop task if it runs longer than: and enter twice desired recording duration
- Make sure Enabled is checked
- Click OK
- On the Actions tab, click New:
- Action: Start a program
- Program/script: complete path to vlc.exe (1st item above); e.g.,
"C:\Program Files\VideoLAN\VLC\vlc.exe" - Add arguments (optional): 2nd and 3rd items separated by a space; e.g.,
http://playerservices.streamtheworld.com/pls/KUSCMP128.pls --run-time 3600 vlc://quit --sout="#std{access=file,mux=raw,dst=Recording.mp3}"
(Note: Display of line above may be truncated!) - On the Conditions tab, set whatever options you wish
- On the Settings tab:
- Set Stop the task if it runs longer than: to twice desired recording duration
- Check If the running task does not end when requested, force it to stop
- Click OK to save the task
- Test the task by selecting it in the Task Scheduler Library:
- Click Run to start the task
- Click End to stop the task
- Check recorded file
- Close Task Scheduler
No comments:
Post a Comment