Page 1 of 1

selecting audio device from command line

Posted: 20 Jun 2017 02:08
by mrblue1234
Hello everyone...

1.) I am using VLC version 2.2.5.1 on a Raspberian linux distribution.

1.) When I run VLC the graphic interface comes up and I can use the menus to select the audio device

Audio | Audio Device | (And then select from 18 different options with my setup).

Image


2.) I'd like to be able to select the audio device on the fly from the command line without having to using the menus.

3.) Could someone please point me in the right direction?

Thank you!

-Mike

Re: selecting audio device from command line

Posted: 20 Jun 2017 18:14
by Rémi Denis-Courmont
vlc -p alsa

Re: selecting audio device from command line

Posted: 20 Jun 2017 20:08
by mrblue1234
Remi,

Thank you. Using the syntax

vlc --alsa-audio-device hifiberry

vlc --alsa-audio-device default

These commands work, setting up the audio device.

BUT...

I am not able to switch over to any of the other devices that are more than one word, for example with the "snd_rpi_hifiberry_digi" prefix.

vlc --alsa-audio-device snd_rpi_hifiberry_digi, Direct hardware device without any conversions

The errors that are generated look like VLC is trying to parse each word of the device name as a device to open.

Any ideas?

Thanks.

-Mike

Re: selecting audio device from command line

Posted: 21 Jun 2017 18:06
by mrblue1234
Anyone? :)

Re: selecting audio device from command line

Posted: 21 Jun 2017 18:18
by Rémi Denis-Courmont
You can use any valid ALSA PCM output device string there.