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

Zanna
  • 69,223
  • 56
  • 216
  • 327
sharkant
  • 1,281
  • 7
  • 16
  • 25
  • 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 09: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 09:19
  • 1
    type "aplay" in command line and see the myriad of options ;) – Rinzwind Apr 29 '17 at 09: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 09:30
  • 1
    I've edited your title. You've falled into [xy problem trap](http://xyproblem.info). Just ask for your original instead of asking you thought is a _solution_ – Anwar Apr 29 '17 at 10:06

1 Answers1

3

Try

cvlc music.mp3

cvlc is the command-line interface of VLC media player

enter image description here

digiwizkid
  • 2,399
  • 2
  • 17
  • 29