This works. I added spaces and used quote instead of code to keep it from stretching this window. I’m not sure if that messes with the command or not. At the end there is a 15 second pause and then it deletes the files. I may need to add a vlc://quit to the media list to make it exit when the broadcast stops, but this is what I’m going with tonight.

This command has two outputs: the HTTP Live Streaming files (served by IIS) and a flv stream at :1234/DBAShow.

I left out the framerate and audio sample rate; it should inherit these from the input stream.

REM Working with vars set for paths and names

set FILEPATH=C:\inetpub\vhosts\webshow.midnightdba.com\hls\
set URLPATH=http://webshow.midnightdba.com/hls/
set FILENAMEBASE=DBAShow
set FILENAMETS=-########.ts

"c:\Program Files (x86)\videolan\vlc\vlc.exe" --mms-caching 0 mmsh://192.168.1.25:81/live --sout=#transcode{width=426,height=240,vcodec=h264,vb=300, venc=x264{aud,profile=baseline,> vel=30,keyint=30,ref=1},acodec=mp4a,ab=64} :duplicate{dst=std{access=livehttp{seglen=5,delsegs=true,numsegs=3, index=%FILEPATH%%FILENAMEBASE%.m3u8, > dex-url=%URLPATH%%FILENAMEBASE%%FILENAMETS%}, mux=ts{use-key-frames}, dst=%FILEPATH%%FILENAMEBASE%%FILENAMETS%}, dst=std{access=http,mux=ffmpeg{mux=flv}, dst=:1234/DBAShow}}

REM delete remnant files when broadcast ends
timeout /t 15
del %FILEPATH%%FILENAMEBASE%.m3u8
del %FILEPATH%%FILENAMEBASE%-*.ts