How to Close VLC When Playback Ends

Configure VLC to stop or close after the final playlist item, and prevent repeat, loop or queued media from keeping playback active.

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

  1. Turn off Repeat All, Repeat One and Loop A–B.

  2. Remove unintended queued items from the playlist.

  3. Use the platform’s VLC command-line option for play-and-exit when automation is required.

  4. 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.

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.