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