Kodi Community Forum
[PATCH] Dual Audio Output support for XBMC (Eden Updated) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: [PATCH] Dual Audio Output support for XBMC (Eden Updated) (/showthread.php?tid=86038)



- nicx76 - 2011-02-04

I am waiting for an OSX port too, this is a killer feature for me! Smile

nicx...


- Noper - 2011-02-11

Great work, but would it be possible to get VDPAU working on the Linux version?? Dual output is working great on XBMC-Live.
I haven't tried the Windows version, but looking at the screenshots it looks like it's HW acceleration enabled on that one.

VDPAU Info http://en.wikipedia.org/wiki/VDPAU

Thanx for the great work.. Smile


- digzz - 2011-02-11

Noper Wrote:Great work, but would it be possible to get VDPAU working on the Linux version?? Dual output is working great on XBMC-Live.
I haven't tried the Windows version, but looking at the screenshots it looks like it's HW acceleration enabled on that one.

VDPAU Info http://en.wikipedia.org/wiki/VDPAU

Thanx for the great work.. Smile

How did u get it to work on XBMC-Live ?


- ichAlex - 2011-02-12

Thrasher666 Wrote:Hi,

if i use 2 outputs for the same Source

The TV (HDMi) Speaker as Front and the Receiver Speaker for Sides

There is a Sync-Problem. One of the signal is to fast or too slow for about a sec. Is there a way to fix that or is that impossible because of the different interfaces? It sounds like an echo.

same here

using HDMI and Analog Output, where as the analog output seems to be the one causing the echoing, because when i watch a movie the lip syncing is pretty off.

using Zotac ION Board


- Noper - 2011-02-12

digzz Wrote:How did u get it to work on XBMC-Live ?

I logged on with putty, shut down XBMC and renamed the running XBMC.bin. Then i used winscp to transfer the modified xbmc.bin and tried to start XBMX again. I got an error about missing lib. Installed the missing lib with sudo apt-get install. Started XBMC again. That's about it.. Dual audio output working, but sorry to say no HW acceleration.


- imaxst - 2011-02-12

Thanks. Installed on Revo 3610 and now have audio to TV2 via HDMI and optical to AV amp. Worked first time.


- nessus - 2011-02-12

After some more testing with more different files i've change the settings from this post to the following :


FIRST AUDIO OUTPUT
Audio Output : Analog
Speakers Configuration : 2.0 Channels
Audio Output Device : Direct Sound Speakers

SECOND AUDIO OUTPUT
Audio Output : Optical/Coax
Speakers Configuration : 7.1 Channels
Audio Output Device : Direct Sound Digital


The system setup is :

SYSTEM SETUP
XBMC Dharma 10.0 Final (r35647)
Windows 7 Ultimate 32bit
Realtek High Definition Audio (integrated)
Nvidia 8600GT

Two things you must have in mind (at least for my kind of setup). First, always set the FIRST AUDIO OUTPUT as Analog and the SECOND AUDIO OUTPUT as digital. And second, always set Optical/Coax for Digital Audio Output even if you use HDMI connection (is working fine). If you use HDMI for some reason some files like mkv + AAC 5.1, they are not working or the sound is dual stereo.

So.... with these setting all the files with different audio codec's (MP3, AC3 2.0 & 5.1, AAC 2.0 & 5.1, DTS 5.1 & 7.1) are working fine. Finally, keep in mind that all of my tests are done with maximum 720p (avi & mkv in high or low bit rates) content (i don't have any 1080p material) and the DVXA2 was working fine. No stuttering at all.

Hope this helps

Cheers
Nessus


- Eisi2005 - 2011-02-16

Hi,

what a great Fix. It work very nice for me. One only little little bug. When i enable the second audio output and then skip a chapter in the movie it take a few seconds ( 1-2) to hear audio again and the picture is shuttering. When i disable the second audio output all works very nice when i skip a chapter the movie and audio is immediately there.

Normal or could you fix that ?

Greets

Eisi

O/S Win7 32Bit


- tudstudent - 2011-02-20

Is there an idea when this feature can be found in the first SVN?
And later of course in the package


- darkscout - 2011-02-20

It never will be.

This is the perfect example of:
Users: "We want this feature"
Devs: "Give a patch"
Users: "Ok, here's a patch"
Devs: "Um, nevermind, fuck off"


- tudstudent - 2011-02-20

Why not?
May be it is already answered, but did I mis the post!


- darkscout - 2011-02-20

Quote:Changed 3 months ago by gnif

While I appreciate the effort you have gone to, this patch will not make it into trunk simply because the audio layer is going to be ripped out and replaced with the system that is under development in the AudioEngine branch.

If you would like this feature please develop against AE, but be aware that AE is a moving target at the moment.

http://forum.xbmc.org/showpost.php?p=716662&postcount=187


- jbernardo - 2011-02-20

Doh... How can I explain to this guy that I want to be able to output to my TV and my sound system simultaneously?
BTW, your first description is very appropriate, darkscout. It is indeed a perfect example.


- User 42580 - 2011-02-21

Thanks for this PATCH.
It's a huge life saver for me.


- darkscout - 2011-02-21

jbernardo Wrote:Doh... How can I explain to this guy that I want to be able to output to my TV and my sound system simultaneously?
BTW, your first description is very appropriate, darkscout. It is indeed a perfect example.

I understand how hard it is to 'sync'. But within a certain amount of time, my brain can't tell the difference. Heck, THIS proves it can be done. There are numerous times I've done both my TV and stereo and you can't tell there is an echo. That's SPDIF passthrough and AC-3 decoding to analog for HDMI and it's still not noticeable.

xhbl, have you looked at the AudioEngine branch and see if you can work your magic on it?