Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
22
rated 0 times [  22] [ 0]  / answers: 1 / hits: 20866  / 3 Years ago, wed, november 17, 2021, 8:28:20

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


More From » vlc

 Answers
5

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: https://stackoverflow.com/q/10249261/1708932


[#22418] Friday, November 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fatuatexen

Total Points: 451
Total Questions: 107
Total Answers: 110

Location: Trinidad and Tobago
Member since Thu, Apr 27, 2023
1 Year ago
fatuatexen questions
;