Page 1 of 1

How to exit VLC via CLI?

Posted: 23 Mar 2007 20:45
by grittree
I have a batch file which starts VLC at a scheduled time and sout's a file.

I need a way to stop (and exit) VLC with another scheduled event. The closest I can find in the wiki is a command to play (a playlist) and exit.

Posted: 23 Mar 2007 23:47
by Jean-Baptiste Kempf
--start-time
--stop-time

Add vlc:quit.

Posted: 25 Mar 2007 18:51
by grittree
I'm unsure how to parse these commands.

My present command is:
vlc udp:@:5000 :access-filter=timeshift :udp-caching=300 --width 400 :vout-filter=deinterlace :deinterlace-mode=blend :sout=#duplicate{dst=std{access=file,mux=ts,url="G:\filename.ts"}}

++++++++++++++++++++
--start-time=<integer> Start time ....... The stream will start at this position (in seconds).

I put --start-time=60 after 'udp-caching=300 ' and nothing changed. Same with =99999999

++++++++++++++++++++
vlc:quit Special item to quit VLC

Where does this go? What determines when it is executed?

Posted: 25 Mar 2007 19:55
by dionoea
these only work for seekable inputs. udp isn't seekable so it wont work.

Posted: 25 Mar 2007 22:01
by DJ
vlc:quit is placed at the end of the command line.