Discussion Forums > Technology
Dual-Audio playback through speakers and a different audio device.
(1/1)
whitecom:
Hey guys,
I'm wondering if anyone has heard of a software project that would, for instance, stream a Japanese audio track from a anime episode to a remote speaker device (kinda like airtunes from apple, or airfoil) while simultaneously playing another audio track (english i guess) through a local set of speakers from the source?
The goal is to allow my roommate and I watch a dual-audio series of anime in peace w/o bringing up the Sub v Dub war. I prefer it one way, he prefers it the other. He won't budge, at all. Lately, i've given in and watch his type (sub v dub doesn't matter here people) for a few weeks now, and figure there's got to be something under development that will allow me to wear a set of headphones in peace while he listens to the speakers on the TV, without the video being totally out of sync.
When compared to a simple video conference, the ideas premise seems possible.
Any ideas, bakabt followers?
~A
billlanam:
None of the video players are designed for that.
The only way that I can think of that can work right now is to extract an audio track and play it at the same time as the video thru a different sound device, even better make a program that starts playing the video program and audio track at the same time so you don't have to worry about starting it at the same time.
That would also slow the computer down so that it might not be able to play some videos that it used to be able to play (probably only a few cases).
x5ga:
If you have a sound card which can make the front and rear output devices play back 2 different streams at once (ex: onboard Realtek HD Audio), it is possible although it's... nasty. Using GraphStudio you can try and create a sequence of filters so that the output from the first audio track is played on the speakers connected to the back panel, and the output from the second audio track is played back on the speakers/headphones connected to the front panel.
You'd get a fugly sequence of filters chained together something like this:
--- Code: ---
VideoFileSource -----video track-----> video decoder (ex: ffdshow video) -------> video renderer (ex: EVR/haali renderer)
| | \--------subtitles track ------------^
| \------audio track 1-----> audio decoder (ex: ffdshow audio) ------> Audio renderer 1 (ex: Realtek High Definition Audio / Speakers)
\-----------audio track 2-----> audio decoder (ex: ffdshow audio) ------> Audio renderer 2 (ex: Realtek High Definition Audio 2nd Output)
--- End code ---
It will probably require a bit more processing power than playing the file with only one audio track.
It may be possible to do this even if your sound card does not support 2 separate outputs, if the audio tracks are stereo only (not surround), declaring for example your speakers/headphones as 'front' and your friend's speakers as 'rear'. You'd be using the same filter chain as above, except the audio renderers will be the same (2 different instances of the same one). Using ffdshow-audio's mixer matrix, redirect the output from the first track to 'front', and from the second track to 'rear'. I do not know if this will work in practice, but theoretically it should. The whole thing may crash due to it being unable to load 2 instances of the same audio renderer or some other kind of problems may appear.
raylu:
PulseAudio should be able to do this.
bloody000:
I agree with billlanam. every video player I know can only play one video track and one audio track simultaneously.
Navigation
[0] Message Index
Go to full version