Page 1 of 1

DOS batch file to save streaming video

Posted: 18 Apr 2009 22:35
by dormant
I am trying to run a DOS batch file to run vlc to save an MMS stream to an avi file once per day. The file type is not important.

I am useless at DOS programming, so am getting in a real pickle.

My batch file works when it has this line.

Code: Select all

"C:\Program Files\VideoLAN\VLC\vlc.exe" mms://172.20.0.172:1755/ :sout=file/avi:C:\data\video\MVO\%date%.avi
My batch file doesn't work when I try to make it stop automatically

Code: Select all

"C:\Program Files\VideoLAN\VLC\vlc.exe" --stop-time=60 mms://172.20.0.172:1755/ :sout=file/avi:C:\data\video\MVO\%date%.avi
It just creates an empty AVI file and never stops.

When I add the dummy interface like this:

Code: Select all

"C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy --stop-time=60 mms://172.20.0.172:1755/ :sout=file/avi:C:\data\video\MVO\%date%.avi
I get the following error messages:

Code: Select all

[00000397] dummy interface: VLC media player - version 0.9. 6-2009 the VideoLAN team [00000397] dummy interface: Warning: if you can't access the GUI anymore, open a command the directory where you installed VLC and run "vlc -I qt" [00000397] dummy interface: using the dummy interface module [00000415] access_mms access error: no data received [00000415] access_mms access error: no data received [00000415] access_mms access error: cannot connect to server [00000415] access_mms access error: cannot read data 2
I'm sure I'm doing something really stupid. Can someone please point out what it is?
-----------------------------------
vlc 0.9.9 under Windows XP

Re: DOS batch file to save streaming video

Posted: 20 Apr 2009 12:43
by VLC_help
AFAIK AVI output is somewhat broken. And stop-time or start-time doesn't work if the stream doesn't contain time info.

Re: DOS batch file to save streaming video

Posted: 19 May 2009 11:01
by Lorni
Try --run-time and vlc://quit at the end of command line to force player exit after the last track (one in this case).

Code: Select all

vlc.exe --intf=dummy --dummy-quiet mms://172.20.0.172:1755/ --run-time=60 --sout=#duplicate{dst=std{access=file,dst=e:\file.mpg}} vlc://quit
Or avi or what you want.