Recording a radio stream without looping, duplicating, or running away

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
elderhoard
New Cone
New Cone
Posts: 3
Joined: 28 Sep 2019 20:04

Recording a radio stream without looping, duplicating, or running away

Postby elderhoard » 03 Oct 2019 00:36

I am fairly new to using VLC via Command Prompt/Batch files and have been having a heck of a time with it. What I am trying to do is record a specific show for a set time. It runs for 5 hours and I want to record just that.

The issues I have encountered include the same stream being duplicated 6 times (same set time, just repeating 6 times regardless of duration), rewriting over itself after it reaches the end, and just not stopping when it's done(ended up with a 15 hour recording after manually stopping the process).

Below is what I am currently using. It's running on Win 8.1 Pro via task scheduler.

Code: Select all

@echo off set CUR_YYYY=%date:~10,4% set CUR_MM=%date:~4,2% set CUR_DD=%date:~7,2% set SUBFILENAME=KUSC-The-Evening-Program_%CUR_YYYY%-%CUR_MM%-%CUR_DD%.mp3 start "" "C:\Program Files\VideoLAN\VLC\vlc.exe" "http://playerservices.streamtheworld.com/pls/KUSC.pls" --sout=#transcode{vcodec=none,acodec=mp3,ab=64,channels=2,samplerate=22050,scodec=none}:std{access=file,mux=mp3,dst='*rest of the directory here*/%SUBFILENAME%'} --run-time=18000 --stop-time=18000 vlc://quit

Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 66 guests