Routing audio to a specific soundcard jack?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
CraziestOzzy
New Cone
New Cone
Posts: 3
Joined: 22 Aug 2012 02:13

Routing audio to a specific soundcard jack?

Postby CraziestOzzy » 22 Aug 2012 03:11

A big g'day from Down Under....
I have been using VLC for years and like its lossless DVD playing ability.
My question is related to controlling the audio output to a chosen device such as your typical PC sound card.
Is it possible to tell VLC to output audio to a specific hardware device, while playing video?
I basically am wanting to know if it is possible while playing video with VLC, to direct sound to a chosen hardware device (such as a sound card or specific channel on a sound card) so a VST plugin can use the audio output from VLC
I guess there may be other options, such as directing audio to output to one channel on a sound card output jack and the VST plugin will use this as an audio feed. Or another option is to tell VLC to output audio to one sound card only in a computer that has two sound cards?
The story behind this idea is for use in quality (audiophile) driver (speaker) arrangements where VLC would play video and output audio by using the sound card hardware option.
VLC will take care of the video and the VST plugin will be taking care of the audio that will be using filters such as crossovers (first/second/third etc), delays, frequency shifts etc.
I realise that there may be potential issue with syncing audio with video, but believe that with a typical processing speed for video being around 24 frames a second, audio delay due to processing by another app will be absent from the human eye.
If the hardware option is not possible, could a virtual cable be setup by VLC to route audio?
...I hope that was clear as mud and I will reply to any further discussion if needed.
Thanks :D

CraziestOzzy
New Cone
New Cone
Posts: 3
Joined: 22 Aug 2012 02:13

Re: Routing audio to a specific soundcard jack?

Postby CraziestOzzy » 22 Aug 2012 07:15

...thinking this may help in getting some input...
Has anyone have any experience with using/configuring the Porting PortAudio to ASIO options inside VLC?
Thanks...

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

Re: Routing audio to a specific soundcard jack?

Postby Rémi Denis-Courmont » 22 Aug 2012 09:37

Depending on the audio output, you can either force the output device in the preferences or in the audio menu. VLC never outputs to more than one device.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

CraziestOzzy
New Cone
New Cone
Posts: 3
Joined: 22 Aug 2012 02:13

Re: Routing audio to a specific soundcard jack?

Postby CraziestOzzy » 23 Aug 2012 01:22

Thanks for that. I am looking into forcing the audio output to one virtual device and if that cannot be done, use the simpler hardware option using a sound card. The virtual option will allow me to use VLC as a dvd player while I have the audio content routed to a chosen "device" and using the ASIO driver to redirect audio to a chosen application.
That chosen "application" that will filter the audio is not yet decided upon. It is envisioned to direct audio to six channel outputs on a sound card. Each channel will output audio at a selected frequency determined by the yet-to-be-chosen "application".
J R I V E R (remove the spaces) has implemented something similar (just using J R as a random example) to what I aim to achieve in their Parametric Equalizer DSP that is used for bass routing, channel mixing, and parametric EQ...allowing the all-important software implemented crossover. It is this ability to use a crossover in a virtual environment (as opposed to using the typical hardware of inductor, resistor, capacitor) while using VLC to watch a movie, is what I hope to achieve.
Perhaps one day you may wish to experiment with this idea of mine by adding a few extras into your currently standard EQ.

If modern Code was not beyond me I would create an add-on myself...I am a DOS/BASIC man, old school and showing my age :lol:
There is a a huge gathering of people (we call them audiophiles) busting at the bit to use such an app as VLC if it had the audio options J R I V E R currently uses. Incidentally, J R's movie player is light years behind VLC.
Anyway, I will let you know how I go in my venture, regardless if I fail or not.

Keep up the good fight and continue sticking it up the big companies who would love to see VLC relegated to history.

steph_tsf
New Cone
New Cone
Posts: 3
Joined: 22 Nov 2013 18:44

Re: Routing audio to a specific soundcard jack?

Postby steph_tsf » 24 Nov 2013 15:11

I've just opened a discussion about that here = https://forum.videolan.org/viewtopic.php?f=7&t=115414

Currently JRiver Media Center allows crossovers.
Actually there are two different implementations.
1. rely on the internal JRiver crossover features (they are quite limited)
2. ask JRiver to duplicate the audio into 2 x 2 channels, then routing each channel to a particular external convolver (long FIR filters)
A few diyAudio members like Pano are using the external convolver method, and seem happy with that.
I have the impression that JRiver can deliver the stereo audio to JACK.
The stereo audio appears thus as ASIO stream, to be processed by any VST!
Thus, any VST dealing with crossover, speaker management, convolver, etc ... would be applicable!
Using Flowstone, I can design any kind of audio crossover in a matter of minutes. Flowstone can generate a VST, or an .EXE
I feel that an .EXE compiled by Flowstone, could handle the ASIO stream coming from JRiver + JACK, without needing a VST host. Is this true?
Now come difficulties associated to the VST format.
- Can a VST output audio through HDMI?
- Can a VST run on ARM Android?
Any info welcome.

Currently XBMC has a new AudioEngine under the hood (ActiveAE), with XBMC developers FernetMenta and Fritsch very busy, debugging it.
There is a youTube presentation about ActiveAE here : http://www.youtube.com/watch?v=_78YxAXQyBg
XBMC relies on ffmpeg for decoding the audio/video stream.
That's the main, crucial point. XBMC only configures ffmpeg, and as return XBMC grabs audio (and video), like any ffmpeg Sink needs to.
On XBMC forum, on 2013-11-22, Fritsch had the idea of enabling the use of a different Sink, a custom Sink.
Looks seductive, but it gets complicated knowing that such custom Sink needs to output the stream, physically on HDMI, motherboard, USB audio attachment.
On XBMC forum, on 2013-11-23, Fritsch (possibly alarmed by JRiver Media Player advanced DSP features) had the generous idea of allowing an "in between stage", acting as Sink for the ffmpeg stream, altering the audio, then reinjecting the altered audio into the standard XBMC Sink. This way XBMC gets in charge of routing the altered audio, physically on HDMI, motherboard, USB audio attachment.
On XBMC forum, on 2013-11-23, FernetMenta announced that "Audio engine has an architecture as well with a processing stage. Moving audio processing into a sink violates the rules of this architecture." FernetMenta adds "What we currently have is flexible enough to do this. No need for any quick hacks." IMO, such assertion from FernetMenta clashes against Fritsch generous idea. And, take notice that FernetMenta never substantiates the claim that "What we currently have is flexible enough to do this".
On XBMC forum, on 2013-11-23, jjd-uk realized that XBMC Audio Configuration Panel would require a supplementary field for choosing between "no in between stage" and "select in between stage". He went against adding such selector : "If a DSP interface is introduced then in my view we shouldn't be polluting the standard audio settings GUI with what is a specialised function that will likely have a limited userbase".
I'm not optimistic about XBMC.
1) I fear that all XBMC divas/gurus will keep refusing one more selector in XBMC Audio Configuration Panel for naming the optional "in between stage". Which means they will not fill the gap separating them from JRiver Media Player. Actually, the idea of an "in between stage" is not trivial. There are N audio channels in, and M audio channels out. A possibility is to let XBMC scan each "in between stage" file header for knowing how to connect the ins and the outs.
2) I still don't know how to render that "in between stage" both Windows and Android compatible, like generating one source code, then compiling it for Windows, then compiling it for Android. One need to provide the same multiPlatform/multiOS deployment scheme as XBMC.
The XBMC case illustrates that a cluster of divas en gurus, systematically using less than 5 lines of text for exposing, submitting or replying, has a close to zero productivity, whatever they may appear sympathetic and enthusiasts. Could be they suffer from the NIH syndrome (Not Invented Here). Anyway, like most Media Player, they rely on ffmpeg as blackbox (invented where, haha ??!!), and surely they got many issues with audio, as ActiveAE is now the second (or third) audio architecture they tried (invented where, haha ??!!). On one hand, thus, they deliver the ugly impression that they don't care about audio, that they don't care about supporting diyAudio extensions, but on the other hand, they are currently extremely busy with audio, intensively debugging ActiveAE. Any analyst would say that it is the right moment for XBMC developers to grab knowledge from the external world, like from diyAudio, and to listen to future-proof requirements.

To date, VLC has provided the most encouraging answers.
On VLC forum, on 2013-11-24, Jean-Baptiste Kempf replied :
- Yes, you can do an audio filter in VLC, including resampling, upmixing, downmixing and everything.
- An open-source filter in C or C++ will work on ALL versions of VLC.
I have thus asked :
- if he could recommend working examples of VLC plugins acting as audio filter
- if there is an API, documentation, tutorial about creating an open-source filter in VLC
As I wrote above, I encourage you to follow the discussion taking place here : https://forum.videolan.org/viewtopic.php?f=7&t=115414

Sorry for the long post, but IMO one need to expose things, one for all, for knowing about what it goes.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 183 guests