DOS batch file to save streaming video

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
dormant
New Cone
New Cone
Posts: 2
Joined: 18 Apr 2009 22:21

DOS batch file to save streaming video

Postby dormant » 18 Apr 2009 22:35

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

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: DOS batch file to save streaming video

Postby VLC_help » 20 Apr 2009 12:43

AFAIK AVI output is somewhat broken. And stop-time or start-time doesn't work if the stream doesn't contain time info.

Lorni
Blank Cone
Blank Cone
Posts: 39
Joined: 12 Nov 2008 23:59

Re: DOS batch file to save streaming video

Postby Lorni » 19 May 2009 11:01

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.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 23 guests