selecting audio device from command line

*nix specific usage questions
mrblue1234
Blank Cone
Blank Cone
Posts: 21
Joined: 12 May 2017 19:53

selecting audio device from command line

Postby mrblue1234 » 20 Jun 2017 02:08

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: selecting audio device from command line

Postby Rémi Denis-Courmont » 20 Jun 2017 18:14

vlc -p alsa
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mrblue1234
Blank Cone
Blank Cone
Posts: 21
Joined: 12 May 2017 19:53

Re: selecting audio device from command line

Postby mrblue1234 » 20 Jun 2017 20:08

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

mrblue1234
Blank Cone
Blank Cone
Posts: 21
Joined: 12 May 2017 19:53

Re: selecting audio device from command line

Postby mrblue1234 » 21 Jun 2017 18:06

Anyone? :)

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: selecting audio device from command line

Postby Rémi Denis-Courmont » 21 Jun 2017 18:18

You can use any valid ALSA PCM output device string there.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 22 guests