How to run cvlc closing after the play

Is there any parameter to run cvlc from a terminal command line in a way that the dummy interface returns control after an mp3 file is played?

Currently I run this: me@ubuntu:~/Documents$ cvlc 732533130.mp3 and I can't type again after the file has been played, to take control I have to type ^C.

Running on Ubuntu 12.04.5 LTS (Precise Pangolin).

2 Answers

There are two ways you can instruct VLC to quit playback after the playlist is played fully:

  1. By supplying the --play-and-exit CLI option, e.g.:

    cvlc --play-and-exit audio1.mp3 audio2.mp3

    or

    vlc --play-and-exit audio1.mp3 audio2.mp3

    or creating a bash alias (in ~/.bashrc):

    alias cvlc='cvlc --play-and-exit'
  2. By adding the dummy item vlc://quit to your playlist, e.g.:

    cvlc audio1.mp3 audio2.mp3 vlc://quit

    or

    vlc audio1.mp3 audio2.mp3 vlc://quit

Source:

2

you can always take control by suffixing an & at the end of the command. the command will launch and you will also have control on the terminal.

try

cvlc 732533130.mp3 &

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like