Quit after playlist command line

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
ghell
Blank Cone
Blank Cone
Posts: 10
Joined: 09 Nov 2008 14:41

Quit after playlist command line

Postby ghell » 04 May 2012 02:16

What is the current command line to quit at the end of the playlist?

I have found many threads on it but all of them are several years out of date and none of them seem to work in either the stable release or nightly build.

These include things like adding vlc:quit, vlc://quit and --play-and-exit.



Media -> Quit at the end of playlist from the GUI does work but I can't find any command that doesn't require me to have to select it manually every time after VLC starts.

Adding vlc://quit to the playlist from the GUI also works, but from the command line it just doesn't get added to the playlist (everything else does).

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Quit after playlist command line

Postby Rémi Denis-Courmont » 04 May 2012 10:23

vlc://quit and --play-and-exit are up-to-date and working.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ghell
Blank Cone
Blank Cone
Posts: 10
Joined: 09 Nov 2008 14:41

Re: Quit after playlist command line

Postby ghell » 04 May 2012 10:26

Neither do anything for me (on Windows 7 x64) on either 2.0.1 (stable release) or 2.1.0 (nightly)

I was hoping I wouldn't have to file a bug report and I was just doing something wrong, as bug reports (understandably) take a very long time to get dealt with.



When I look at it in task manager, it seems to be because even though I'm starting with "vlc --play-and-exit foo.avi vlc://quit", for example, the actual process that loads up seems to always be "vlc --started-from-file foo.avi" regardless of how I start it.

Edit: after testing, what it seemed to be doing was starting once with vlc --play-and-exit, closing immediately, then just running foo.avi (for which the default player is VLC) and being left open after that.

RobertsRozis
New Cone
New Cone
Posts: 2
Joined: 25 Jul 2012 23:04

Re: Quit after playlist command line

Postby RobertsRozis » 25 Jul 2012 23:19

Hi!

It does work. With the only difference that vlc://quit must be located at the end of playlist items, not at the end of the statement:

Code: Select all

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vvv mms://ier-w.latvijasradio.lv/pppy?20120716A235930000000 vlc://quit --sout "#transcode{acodec=mp3,ab=192}:duplicate{dst=display,dst=std{access=file,mux=raw,dst=e:\Downloads\selfInfo.mp3}}
This works works for me on Win7 Pro 64bit with VLC media player v.2.0.2 -- captures mms to a mp3 file.

Roberts

ghell
Blank Cone
Blank Cone
Posts: 10
Joined: 09 Nov 2008 14:41

Re: Quit after playlist command line

Postby ghell » 26 Jul 2012 12:46

It was just an issue with Windows batch files.

It ran correctly from the command line but the batch file was splitting the arguments and producing this behaviour:
starting once with vlc --play-and-exit, closing immediately, then just running foo.avi (for which the default player is VLC) and being left open after that.
For example, the command line

Code: Select all

vlc vlc://quit foo.avi
became

Code: Select all

vlc vlc://quit foo.avi
which would quit once, then run foo.avi (default player vlc) and stay open.

Code: Select all

vlc foo.avi vlc://quit
would similarly just run "vlc foo.avi" and stay open before getting to a new command vlc://quit, which is an application that doesn't exist.

Roughly the same thing happened with --play-and-exit.

I got it running eventually. It was not a problem with VLC.

--play-and-exit seems to be a better way of doing it than vlc://quit too, as it feels less hacky, doesn't need to be at the end and also lets you modify your playlist more easily once it's open.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests