Is it possible to exit VLC when the file/stream it plays come to an end?
I would like to script vlc, but right now, after the file/stream ends, vlc doesn't exit; it just closes the interface.
And what option is that? I use the svn version already.You could try a nightly build, it has the option to close VLC after everything in the playlist has finished.
Hmm, "--sout-all vlc:quit" sometimes works, sometimes doesn't.I noticed that if I add "--sout-all vlc:quit", vlc quits like I wanted.
And this option seems to be in 0.8.6c.
I think you only need to add "vlc:quit" (without the "--sout-all") but as last option of the command line. Then it should always work.Hmm, "--sout-all vlc:quit" sometimes works, sometimes doesn't.
--sout-all is something else, indeed, and doesn't take any arguments.I think you only need to add "vlc:quit" (without the "--sout-all") but as last option of the command line. Then it should always work.Hmm, "--sout-all vlc:quit" sometimes works, sometimes doesn't.
Did you test:vlc -I dummy --run-time 5 http://address:port vlc:quit --sout "#duplicate{dst=std{access=file,mux=ts,dst="/tmp/check-http.avi"}}"
Code: Select all
vlc -I dummy --run-time 5 http://address:port --sout "#duplicate{dst=std{access=file,mux=ts,dst="/tmp/check-http.avi"}}" vlc:quit
By the way, I don't see the sense for "#duplicate{...}" in this particular case. Here "#standard{...}" or maybe "#transcode{...}" (in case you do really transcoding) should be sufficient or even correct. With "#duplicate{...}" you should define a 2nd destination (e.g. a 2nd file or further streaming to another computer etc.).but as last option of the command line.
Code: Select all
vlc -I dummy --run-time 30 http://address:port --sout "#standard{access=file,mux=ts,dst="/tmp/check-http.avi"}" vlc:quit
Yes, it works 9 times out of 10, but 1 time out of 10, it just doesn't quit.Did you test:vlc -I dummy --run-time 5 http://address:port vlc:quit --sout "#duplicate{dst=std{access=file,mux=ts,dst="/tmp/check-http.avi"}}"i.e. with "vlc:quit" at the end and not in the middle as I already told you:Code: Select all
vlc -I dummy --run-time 5 http://address:port --sout "#duplicate{dst=std{access=file,mux=ts,dst="/tmp/check-http.avi"}}" vlc:quit
By the way, I don't see the sense for "#duplicate{...}" in this particular case. Here "#standard{...}" or maybe "#transcode{...}" (in case you do really transcoding) should be sufficient or even correct. With "#duplicate{...}" you should define a 2nd destination (e.g. a 2nd file or further streaming to another computer etc.).but as last option of the command line.
If I try with #standard and vlc:quit at the end it works:Code: Select all
vlc -I dummy --run-time 30 http://address:port --sout "#standard{access=file,mux=ts,dst="/tmp/check-http.avi"}" vlc:quit
That will do.vlc <<very fancy things>> vlc://quit
Return to “General VLC media player Troubleshooting”
Users browsing this forum: No registered users and 34 guests