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

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
momo2000
New Cone
New Cone
Posts: 3
Joined: 23 Aug 2015 16:48

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

Postby momo2000 » 23 Aug 2015 16:57

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.
Last edited by momo2000 on 24 Aug 2015 00:05, edited 1 time in total.

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: Send audio to different output device via command line

Postby kodela » 23 Aug 2015 22:28

Try it: ... --aout=aout_directx --directx-audio-device="Speakerphone (Polycom CX100)" ...

momo2000
New Cone
New Cone
Posts: 3
Joined: 23 Aug 2015 16:48

Re: Send audio to different output device via command line

Postby momo2000 » 23 Aug 2015 23:24

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

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: Send audio to different output device via command line

Postby kodela » 23 Aug 2015 23:49

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!

momo2000
New Cone
New Cone
Posts: 3
Joined: 23 Aug 2015 16:48

Re: Send audio to different output device via command line

Postby momo2000 » 24 Aug 2015 00:04

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!!!!!


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests