Hi,
I'm new to this forum, so please excuse any faux pas.
I have a scheduled .bat script to record a Live radio stream, and also another to record an archived stream.
Code: Select all
if not "%minimized%"=="" goto :minimized
set minimized=true
start /min cmd /C "%~dpnx0"
goto :EOF
:minimized
rem Anything after here will run in a minimized window
FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B
For /f "tokens=1-4 delims=/ " %%a in ('date /t') do (set date=%%b-%%a-%%c)
"C:\program files (x86)\videolan\vlc\vlc.exe" <radio stream url:port> :sout=#file{dst="<drive:>\<folder>\<file name> %date%.mp3"} --play-and-exit --run-time=1860 --stop-time=1860 --qt-start-minimized :sout-keep
exit
This will start a CMD windows minimised so not to be annoying.
VLC will also start minimized.
The date is set in USA format MM-DD-YY (move the %%a, %%b, %%c around to change that)
It streams to a file at location you specify, appends a space, the current date, and puts the .mp3 extension on.
The streaming will run for 1860 seconds (1h 1m)
After completion, VLC will close, then the CMD window will.
Does that help? I know you are trying to transcode, but I haven't got quite that far yet.