title: VLC batch conversion from m3u8 won't move to next file without user input
body: <p>I have a batch file that is supposed to open every m3u8 file in a folder, stream it into a mp4 file and move to the next one. The lengths of the videos vary and the m3u8 files don't appear to have any info in them about length. The batch file works except that when the end of the stream is reached it says "{0048ef84} main playlist debug: dead input" and then it just pauses and waits. If I then close the command prompt window, the other one asks if I want to end the batch and if I say no then it pops open another window and moves to the next file. Anyone know of any way I can do this without user input? Here is the code:</p>
  
  <pre><code> @ECHO OFF
  FOR /R %%G IN (*.m3u8) DO (CALL :SUB_VLC "%%G")
  FOR /R %%G IN (*.m3u8.mp*) DO (CALL :SUB_RENAME "%%G")
  GOTO :eof
  
  :SUB_VLC
   SET _firstbit=%1
   SET _qt="
   CALL SET _newnm=%%_firstbit:%_qt%=%%
   SET _commanm=%_newnm:,=_COMMA_%
   REM echo %_commanm%
   CALL "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -I dummy -vvv %1 --file-caching=300 --sout=#transcode{vcodec="h264",acodec="mpga",ab="128","channels=2",samplerate="44100"}:standard{access="file",mux="mp4",dst="%_commanm%.mp4"} vlc://quit
  GOTO :eof
  
  :SUB_RENAME
   SET _origfnm=%1
   SET _endbit=%_origfnm:*.m3u8=%
   CALL SET _newfilenm=%%_origfnm:.m3u8%_endbit%=.mp4%%
   SET _newfilenm=%_newfilenm:_COMMA_=,%
   COPY %1 %_newfilenm%
   DEL %1
  GOTO :eof
  
  :eof
  </code></pre>