Quick answer
For a one-time command-line launch, use VLC’s play-and-exit behavior. In the graphical interface, first disable loop and repeat so the playlist can actually finish.
Understand the task
Input
A finite VLC playlist with repeat and loop controls turned off.
VLC action
The play-and-exit behavior tells VLC to close after the final playlist item ends.
Expected result
The VLC application exits. The computer itself does not shut down.
Tip: Test the command with a short file before using it for overnight playback.
Steps to close VLC When Playback Ends
Turn off Repeat All, Repeat One and Loop A–B.
Remove unintended queued items from the playlist.
Use the platform’s VLC command-line option for play-and-exit when automation is required.
Test with a short local file before relying on it overnight.
Limits and recovery
- Closing VLC is different from shutting down the computer.
- System shutdown should be handled by an operating-system automation with explicit safeguards.
Related decisions
If several VLC windows are running, first review how VLC separates instances and playlists so the command closes the intended process.
If you want to continue later rather than exit permanently, configure VLC playback resume before automating closure.
Sources and corrections
VLC User Documentation >Menus can differ by VLC version and operating system. If a verified current build behaves differently, report the exact version and platform.