Page 1 of 1

How to quit VLC via shell script?

Posted: 08 May 2007 16:48
by Antti Eintola
I have a shell script that uses VLC to convert videofile to another format. But how do I get the script to quit VLC after the conversion process is done?

Here's my script:
/Applications/VLC.app/Contents/MacOS/VLC -vvv " & Tiedosto & " --sub-track=1 --sout="#transcode{soverlay,vcodec=mpgv,vb=4000,acodec=mpga,ab=192,channels=2}:standard{dst=/Desktop/video.mpg,access=file,mux=ps}"

Re: How to quit VLC via shell script?

Posted: 08 May 2007 18:18
by Jean-Baptiste Kempf
I have a shell script that uses VLC to convert videofile to another format. But how do I get the script to quit VLC after the conversion process is done?

Here's my script:
/Applications/VLC.app/Contents/MacOS/VLC -vvv " & Tiedosto & " --sub-track=1 --sout="#transcode{soverlay,vcodec=mpgv,vb=4000,acodec=mpga,ab=192,channels=2}:standard{dst=/Desktop/video.mpg,access=file,mux=ps}"
add vlc:quit

Posted: 08 May 2007 20:31
by Antti Eintola
Hmm... doesn't seem to work... Where exactly should I add the VLC:quit command? Below is the script I'm using.



/Applications/VLC.app/Contents/MacOS/VLC -vvv " & Tiedosto & " --sub-track=1 --sout="#transcode{soverlay,vcodec=mpgv,vb=4000,acodec=mpga,ab=192,channels=2}:standard{dst=/Desktop/video.mpg,access=file,mux=ps}"vlc:quit

Posted: 08 May 2007 20:39
by krmathis
What about this simple command?

Code: Select all

killall VLC

Posted: 09 May 2007 12:59
by Antti Eintola
No luck with that command either... :(

Posted: 09 May 2007 16:36
by simon
Hmm... doesn't seem to work... Where exactly should I add the VLC:quit command? Below is the script I'm using.



/Applications/VLC.app/Contents/MacOS/VLC -vvv " & Tiedosto & " --sub-track=1 --sout="#transcode{soverlay,vcodec=mpgv,vb=4000,acodec=mpga,ab=192,channels=2}:standard{dst=/Desktop/video.mpg,access=file,mux=ps}"vlc:quit

try replacing /Applications/VLC.app/Contents/MacOS/VLC with /Applications/VLC.app/Contents/MacOS/clivlc and leave the rest the same

Posted: 09 May 2007 20:43
by Antti Eintola
That didn't even transcode my video... thanks anyway.

Re: How to quit VLC via shell script?

Posted: 28 Jul 2007 07:19
by ROFLance
I made a playlist file that will quit VLC once opened, just append it to the end of the playlist.
http://www.lance.hm/videos/quit%20vlc.m3u