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:
By supplying the
--play-and-exitCLI option, e.g.:cvlc --play-and-exit audio1.mp3 audio2.mp3or
vlc --play-and-exit audio1.mp3 audio2.mp3or creating a bash alias (in ~/.bashrc):
alias cvlc='cvlc --play-and-exit'By adding the dummy item
vlc://quitto your playlist, e.g.:cvlc audio1.mp3 audio2.mp3 vlc://quitor
vlc audio1.mp3 audio2.mp3 vlc://quit
Source:
2you 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 &