How to select sound device ?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Fleurette_51
Blank Cone
Blank Cone
Posts: 10
Joined: 04 Jun 2009 01:57

How to select sound device ?

Postby Fleurette_51 » 13 Oct 2009 01:54

Hi all !

I would like to know how to make vlc use my second sound device wich is not the default paramater on my computer (Window) when i start vlc from the command line. i didn t find any clue in the documentation ...

Thanks for ur help.

Fleurette_51
Blank Cone
Blank Cone
Posts: 10
Joined: 04 Jun 2009 01:57

Re: How to select sound device ?

Postby Fleurette_51 » 13 Oct 2009 18:32

hi,

Nobody have an idea !?

So i give more explanations. I tried to use my second audio device by using directx audio module :
Settings (advanced)--> audio --> output module : audio directx --> directx : output device 1 (the default device is 0)
That doen t work ... Why ?????

Then i go on and try to use the waveout win32 module :
Settings (advanced)-->audio-->output module : audio waveOut Win32--> waveout : i selected my second audio device
That's work !!!!

But know my probleme is to do the same thing from command line : so i tried --waveout-audio-device={the name of my audio device i see in windows or in VLC (i tried both...)} but that doesn t work ....
What is the exact command i have to use ? What name of audio Device i m supposed to use ?

thanks

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: How to select sound device ?

Postby VLC_help » 14 Oct 2009 17:33

With DirectX the default device is has two numbers, 0 and 1. Second device should be number two, so
--directx-audio-device=2
and for waveout it should be the driver name you can see in Tools -> Messages... (set Verbosity to 2) if you open if before opening the file.
e.g. waveout debug: Drivername: Realtek HD Audio output

Fleurette_51
Blank Cone
Blank Cone
Posts: 10
Joined: 04 Jun 2009 01:57

Re: How to select sound device ?

Postby Fleurette_51 » 15 Oct 2009 01:31

thx for your help !

For the directx module : you confirmed what i found on google.... but that doesn t work. I could use directx module with both sound cards by changing the default device in windows settings but i can t use another one by changing VLC settings either by the interface nor from command line ...

For the waveout module : i could use wich audio device i want from the interface but from command line i m just able to "come back to defaut device" :

Code: Select all

vlc -vvv --verbose="2" --aout="waveout" --waveout-audio-device="wavemapper"
"wavemapper" is the argument in the example in the vlc-help.txt. But i can t find the driver name in Tools-->Messsages even if verosity is 2 as u said ... so i tried with the driver's names i found in window's settings without any result.

Could u detail how did u find the driver's name ?
And for my directx issue, is there any other option which i have to select (or deselect)?

berlav
New Cone
New Cone
Posts: 1
Joined: 20 Oct 2009 17:34

Re: How to select sound device ?

Postby berlav » 21 Oct 2009 09:47

1st : set the second card as output in the options menu, then close.
2nd : Find the file vlcrc in "C:\Documents and Settings\[user]\Application Data\vlc".
Inside, there is all the settings you have done, and the field aout which interrest you.
then, you can call vlc -aout="[the string]"
Don't forget to put the string in quotes, ie aout="Sound Blaster or USB device {$ffff:$ffff}"
Good luck!
Last edited by berlav on 21 Oct 2009 11:34, edited 1 time in total.

narasimhandl
New Cone
New Cone
Posts: 1
Joined: 21 Oct 2009 09:38

Re: How to select sound device ?

Postby narasimhandl » 21 Oct 2009 09:51

Hi there,

I have a PC with two sound cards. I have two monitors attached as well. I would use this infrastructure to play 2 different movies on the same PC at the Same time. I am able to choose the audio device, from VLC-> preferences -> Audio-> Waveout->Output Device. This way I am able to configure and play two different movies on two different VGA & sound cards respectively.

Problem : I am unable to do the same using the command line, using the --waveout-audio-device= parameter. In this case the audio always goes to the default sound device, of windows.
I have tried the following commands as well, for two instances in each cases.

vlc --waveout-audio-device="Crystal SoundFusion(tm)" Movie_1.mpg
vlc --waveout-audio-device=1 Movie_1.mpg
vlc -vvv --verbose="2" --aout="waveout" --waveout-audio-device="Crystal SoundFusion(tm)" Movie_1.mpg
vlc -vvv --verbose="2" --aout="waveout" --waveout-audio-device="Creative SB AudioPCI" Movie_2.mpg

in all these cases, the audio always goes to the default sound device, making the two movies' audio overlapping.

Is there something I am missing ? Please help

titule
New Cone
New Cone
Posts: 3
Joined: 18 Oct 2009 11:39

Re: How to select sound device ?

Postby titule » 22 Feb 2010 00:12

The described ways do not work for me to set the audio device on commandline too.

I checked in the vlrc file for the name of the device and tried --aout="devicename" and --waveout-audio-device="devicename" and always ended up with the devicename that was saved in the vlrc. :(

My solution:
So I copied the vlrc and saved it again with the other device, leaving me with two different files: vlrc (with the setting for one device) and vlrc-device whish is set to the other sound device.

I can switch them with --config="full-path-name\vlrc-device"

I'd prefer a solution that would only switch the sound device and not the whole config file, because now I have to change my default settings in both files...

meameamea
New Cone
New Cone
Posts: 5
Joined: 06 Jan 2013 20:46

Re: How to select sound device ?

Postby meameamea » 06 Jan 2013 21:30

If one can change the Audio device in the Gui, this should work:

Find vlcrc as stated above (search for vlcrc in your user dir).

Change to Device1 in the Gui. Save Changes. Copy vlcrc somewhere.
Change to Device2 in the Gui. Save Changes. Finde the changes to the copy.

Every line that is different should go into the shortcut/bat with preceding -- and "" around the Devicename.

So for me this was

directx-audio-device=Device 1

pathtovlc\vlc.exe --directx-audio-device="Device 1"


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests