2

My goal is to play a welcome melody each time I log in into the graphical environment (xfce4). I think I can realize it with the sessions-and-startup program and a short script, which starts vlc from the command line.

However, I am not able to start VLC without its GUI. I read here here some answers to this problem, but they did not work, for instance: vlc -I null does not work and vlc --intf dummy does not work either.

My VLC version is 2.2.2

5
  • 2
    why would you want to do this with VLC? why restrict yourself? Use "aplay". It is the tool to use for commandline audio. – Rinzwind Apr 29 '17 at 9:16
  • I was not aware that I restrict myself by using VLC, thought it is the standard way of doing it, do not know aplay – sharkant Apr 29 '17 at 9:19
  • 1
    type "aplay" in command line and see the myriad of options ;) – Rinzwind Apr 29 '17 at 9:20
  • I ve used aplay, but it sounded very weird as if a spider humanoid was about to make love to me, this error message showed up:Playing raw data 'untitled.mp4' : Unsigned 8 bit, Rate 8000 Hz, Mono ^CAborted by signal Interrupt... aplay: pcm_write:1940: write error: Interrupted system call – sharkant Apr 29 '17 at 9:30
  • 1
    I've edited your title. You've falled into xy problem trap. Just ask for your original instead of asking you thought is a solution – Anwar Apr 29 '17 at 10:06
3

Try

cvlc music.mp3

cvlc is the command-line interface of VLC media player

enter image description here

2
  • seems to me to work the same as vlc music.mp3, what is different? – sharkant Apr 29 '17 at 9:27
  • i am sure you are right, i must have some bug – sharkant Apr 29 '17 at 10:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.