I am trying to start VLC from the command line on a Raspberry Pi and play on a bluetooth speaker. I have tried using this:
vlc music.mp3 --aout="My Speaker"
Unfortunately it doesn't work but is playing on the analog output. Inside the VLC GUI I can see My Speaker in the Audio|Audio Device menu. And it works if I select the speaker in the menu, but I want to select it from the command line.
I now realize that I might have misunderstood the --aout argument, as it seems to specify module and not device. But I cannot figure out how to specify the device from the command line.