What command line options do I use to open VLC, play a single video and then close?

I'm building an autorun menu in Compact Autorunner to open a series of training videos on a USB stick to send out to sites with unreliable net connections. The idea is that the users will click the button, which will load the portable VLC player on the USB stick, play a specific video and then close. Trying the button, though, loads up everything on the drive into a playlist and plays them all. The launch arguments I'm using are:

--fullscreen --play-and-exit <APP_PATH>\Vid_Auto\Auto1.mp4

I haven't yet looked up how to avoid the playlist opening, so that's not in the arguments yet.

At the moment everything is stored locally, but it'll eventually all be on the USB stick.

Any idea what I've missed?


Add the command vlc://quit to the end of your command line.
This could look like this:

cvlc --fullscreen <APP_PATH>\Vid_Auto\Auto1.mp4 vlc://quit

As unlikely as it seems - it really works.
The above command opens a VLC window (in fullscreen), plays the video, and then closes the window/program.


VLC, Tools, Preferences, bottom-right click All under Show settings, Playlist, Play and exit, Save. My VLC portable saves/respects that change for good, it appears to change this file: \VLC\Data\settings\vlc-qt-interface.ini adding this info:

headerStateV2=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\xff\xff\xff\xff\x1\0\0\0\0\0\0\0\0\0\0\0\v\xec\a\0\0\0\b\0\0\0\n\0\0\0\x64\0\0\0\t\0\0\0\x64\0\0\0\b\0\0\0\x64\0\0\0\a\0\0\0\x64\0\0\0\x6\0\0\0\x64\0\0\0\x5\0\0\0\x64\0\0\0\x3\0\0\0\x64\0\0\0\x2\0\0\0\x64\0\0\x2j\0\0\0\v\x1\x1\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x5\0\0\0\xc8\0\0\0\x1\0\0\0\0\0\0\0P\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x2\0\0\0\0\0\0\x1R\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\x6\0\0\0\0)

Thinking you may be able to change the playlist pop-up preference as well.