How to quit VLC via shell script?

macOS specific usage questions
Antti Eintola
Blank Cone
Blank Cone
Posts: 14
Joined: 10 May 2006 20:56
Location: Finland
Contact:

How to quit VLC via shell script?

Postby Antti Eintola » 08 May 2007 16:48

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}"

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to quit VLC via shell script?

Postby Jean-Baptiste Kempf » 08 May 2007 18:18

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
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Antti Eintola
Blank Cone
Blank Cone
Posts: 14
Joined: 10 May 2006 20:56
Location: Finland
Contact:

Postby Antti Eintola » 08 May 2007 20:31

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

krmathis
Cone that earned his stripes
Cone that earned his stripes
Posts: 224
Joined: 26 Nov 2004 22:27
Location: Oslo, Norway

Postby krmathis » 08 May 2007 20:39

What about this simple command?

Code: Select all

killall VLC

Antti Eintola
Blank Cone
Blank Cone
Posts: 14
Joined: 10 May 2006 20:56
Location: Finland
Contact:

Postby Antti Eintola » 09 May 2007 12:59

No luck with that command either... :(

simon
Cone that earned his stripes
Cone that earned his stripes
Posts: 116
Joined: 18 Sep 2004 20:53
Location: Sweden
Contact:

Postby simon » 09 May 2007 16:36

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

Antti Eintola
Blank Cone
Blank Cone
Posts: 14
Joined: 10 May 2006 20:56
Location: Finland
Contact:

Postby Antti Eintola » 09 May 2007 20:43

That didn't even transcode my video... thanks anyway.

ROFLance
New Cone
New Cone
Posts: 1
Joined: 28 Jul 2007 05:59

Re: How to quit VLC via shell script?

Postby ROFLance » 28 Jul 2007 07:19

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


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 3 guests