Page 1 of 1

[SOLVED] Send audio to different output device via command line

Posted: 23 Aug 2015 16:57
by momo2000
I’m trying to use VLC to play a wav file via the command line. The problem I’m having is that I want to direct the audio to another output device (not the default device). I have been using this command:

Code: Select all

D:\Data\VideoLAN\VLC\vlc.exe horn.wav -Incurse --aout=waveout --waveout-audio-device="Speakerphone (Polycom CX100)" --play-and-exit
(I also have included the commands so there is no GUI and it quits after playing.)

But I don’t think I have the “device name” correct. How can I determine the correct name for the output device? Also is this the correct method for sending the output to another device? I have searched the net and this forum, and know this must be simple, but a pointer would be appreciated.

Re: Send audio to different output device via command line

Posted: 23 Aug 2015 22:28
by kodela
Try it: ... --aout=aout_directx --directx-audio-device="Speakerphone (Polycom CX100)" ...

Re: Send audio to different output device via command line

Posted: 23 Aug 2015 23:24
by momo2000
thanks for the reply. I tried that but it still played out the "default" audio device. Now that I have the syntax correct (thanks to you) how do I get the proper NAME of the audio device?????? "Speakerphone (Polycom CX100)" is just what it says when I look under Playback Devices. See image below:

Image

Re: Send audio to different output device via command line

Posted: 23 Aug 2015 23:49
by kodela
Klick:

Menu Audio - Audio Device

or better:

Menu - Tools - Preferences - Audio - Output module - DirectX audio output or WaveOut audio output - Device - Default

Here you can see all the available devices.

Speakerphone is disabled on your system!

Re: Send audio to different output device via command line

Posted: 24 Aug 2015 00:04
by momo2000
OK, freaking awesome!!!! YES, now that I have the correct name of the devices it works. I had to add the extensions ($ffff,$ffff) that show in the Audio Menu that you pointed out, above. So my ending command line that worked it:

Code: Select all

D:\Data\VideoLAN\VLC\vlc.exe horn.wav -Incurse --aout=waveout --waveout-audio-device="Speakerphone (Polycom CX100) ($ffff,$ffff)" --play-and-exit
Thanks so much, I've probably put in 4 hours trying to figure this out on my own, so I really appreciate is!!!!!