of the pregame and/or postgame shows (approx 1 hr.) at specific day and time to run automatically while I am away.
I can do it manually now from my included test batch file via VLC player that downloads the stream to specified location and
then converts to m4a format etc. but again would prefer to have it run unattended. I found this link: http://forum.videolan.org/viewtopic.php?f=14&t=102156
with a sample batch (but can not get this to work.) And this one: http://dfellows.zzl.org/site_html/batch_files.html (which requires a lot of aux exe files)
Any help would be appreciated..Thanks, Dos_Probie
P.S. The md works first time but after that I get the "already exists" error would like to look
for folder and if found go there and if not make the directory. Thanks again..
Code: Select all
@echo off&color a
title [ VLC - RECORDING RADIO STEAM ]
::W7x64
:: VARIABLES
For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%date:~4,2%.%date:~7,2%.%date:~10,4%_%date:~0,3%)
For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a.%%b)
set target=cd "%userprofile%\Recordings\Streams\Radio"&cd>nul
set vlc="%ProgramFiles(x86)%\VideoLAN\VLC\vlc.exe"
set runtime=--run-time=10
set stream=http://provisioning.streamtheworld.com/asx/WJZAMDIALUP.asx
set data=--sout="#transcode{acodec=mp3,ab=128,channels=2,samplerate=48000}:std{access=file,mux=raw,dst='%mydate%_%mytime%_ESPN.m4a'}" vlc://quit
:: MAKE DIR(get already exists error msg)
::md %target%>nul
:: DESTINATION
%target%
:: START TIME
@for /f "tokens=1,2" %%a in ('time /t') do @set time3=%%a%%b
@echo Stream download began at %time3%.
@echo.
@echo Please Wait..This Screen Will Close When Done!
:: RECORD
%vlc% %runtime% %stream% %data%
cls
:: END TIME
@for /f "tokens=1,2" %%a in ('time /t') do @set time3=%%a%%b
@echo.
@echo The Stream Download finished at %time3%.
@echo.
echo Press [ANY KEY] to EXIT.
pause >nul
exit