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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - THX-UltraII - 2012-04-21

(2012-04-16, 11:45)thica Wrote: I am not sure about DTS-MA/True-HD and HDMI...
no ideas anyone?




RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - terr1 - 2012-04-21

I need some help with this great patch.. using this patch on xbmc 10.1, now I want to update to xbmc 11.0 Eden.

I'm running Debian Squeeze.

So I downloaded the stable - xbmc-11.0.tar.gz source. Downloaded the xbmc-11.0-Eden-dualaudio-mod-source.zip.
Unpacked the xbmc-11.0.tar.gz in /usr/src/ and unpacked the mod-source.zip in /usr/src/xbmc-11.0/xbmc/ and overwrited the files.
Then made a new ./configure and make.

I'm getting the following errors:
LD xbmc.bin
xbmc/cores/AudioRenderers/audiorenderers.a(AudioRendererFactory.o): In function `CAudioRendererFactory::CreateFromUri(CStdStr<char> const&, CStdStr<char>&, bool)':
/usr/src/xbmc-11.0-mod/xbmc/cores/AudioRenderers/AudioRendererFactory.cpp:254: undefined reference to `CNullDirectSound::CNullDirectSound(bool)'
xbmc/cores/AudioRenderers/audiorenderers.a(AudioRendererFactory.o): In function `CAudioRendererFactory::Create(IAudioCallback*, int, PCMChannels*, unsigned int, unsigned int, bool, bool, IAudioRenderer::EEncoded, bool)':
/usr/src/xbmc-11.0-mod/xbmc/cores/AudioRenderers/AudioRendererFactory.cpp:172: undefined reference to `CNullDirectSound::CNullDirectSound(bool)'
/usr/src/xbmc-11.0-mod/xbmc/cores/AudioRenderers/AudioRendererFactory.cpp:200: undefined reference to `CNullDirectSound::CNullDirectSound(bool)'
xbmc/cores/paplayer/paplayer.a(PAPlayer.o): In function `PAPlayer::CreateStream(int, unsigned int, unsigned int, unsigned int, CStdStr<char>)':
/usr/src/xbmc-11.0/xbmc/cores/paplayer/PAPlayer.cpp:387: undefined reference to `CAudioRendererFactory::Create(IAudioCallback*, int, PCMChannels*, unsigned int, unsigned int, bool, bool, IAudioRenderer::EEncoded)'
xbmc/xbmc.a(SystemGlobals.o): In function `__static_initialization_and_destruction_0':
/usr/src/xbmc-11.0-mod/xbmc/SystemGlobals.cpp:51: undefined reference to `CAudioContext::CAudioContext(bool)'
collect2: ld returned 1 exit status
make: *** [xbmc.bin] Error 1

I can compile and use the unmodded version of xbmc 11.0 without any problems.

I also tried Paul's binary bin file (for ubuntu I guess) then I'm getting the following error:
/usr/local/lib/xbmc/xbmc.bin: error while loading shared libraries: libva.so.1: cannot open shared object file: No such file or directory

I have installed the libval package and the file does exists in /usr/lib.

How can I get past this? Really need this feature :/

EDITED:
Now it works no idea why.. played around with cpp and g++ version.. weird


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - ReMi - 2012-04-23

After compiling the modified source i end up with a very large binary (10x larger !!!)
... by the way.. The binary works great (only a bit lip-sync issues)

-rwxrwxrwx 1 root root 155921499 2012-04-22 20:47 xbmc.bin (Compiled with Dual Audio Patch)
-rwxrwxrwx 1 root root 14493876 2012-03-24 01:25 xbmc.org (orgiginal version from xbmcuntu install)

I compiled using settings below
./configure --disable-ipv6 --without-libidn --disable-ldap --prefix=/usr

Is there a way to get the binary to it's normal size ?

Update: saved 30Mb .. still 105Mb to go...
-rwxr-xr-x 1 root root 120161194 2012-04-23 10:00 xbmc.bin (built with --disable-debug option)
-rwxrwxrwx 1 root root 14493876 2012-03-24 01:25 xbmc.org (orgiginal version from xbmcuntu install)



RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - DeViLRuNNeR - 2012-04-23

Any change of releasing an Apple TV version/mod for XBMC PaulCarter ?


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - PaulCarter - 2012-04-23

ReMi - your binary is big because you've not disabled debug. re-running ./configure with the --disable-debug should have brought it down to the same size as the orginal. Did you also do "make clean" after the configure? I always do that to ensure that everything is rebuilt.
I'm pretty sure that will work because I had exactly the same issue last week when I forgot the debug flag and got a huge binary.

DeVilRuNNeR - I could try cross-compiling for Apple TV but I don't have one so it would be entirely untested!




RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - PaulCarter - 2012-04-23

I've just checked and unfortunately it's not possible to cross-(os-)compile from Linux to iOS. See this thread.
I'm afraid you'll need to find someone with a Mac to create this build.


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - ReMi - 2012-04-23

(2012-04-23, 11:53)PaulCarter Wrote: ReMi - your binary is big because you've not disabled debug. re-running ./configure with the --disable-debug should have brought it down to the same size as the orginal. Did you also do "make clean" after the configure? I always do that to ensure that everything is rebuilt.
I'm pretty sure that will work because I had exactly the same issue last week when I forgot the debug flag and got a huge binary.

It worked Rofl
"make clean" did the trick

Thanks !


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - armitatz - 2012-04-23

resampling issues...

I installed the xbmc.bin with the dual output but I have sync issues. Specifically
When I see a video in youtube with 44100hz audio it plays correctly in the first output (hdmi) but in the second output it plays faster. The speed difference is even worst in videos at 22000hz. They play coorectly in the hdmi output (first) but twice the speed in the digital output (second). Off course they can't play correctly at the second output so they play with clicks and stops. Reversing the outputs (making first the optical and second the hdmi in the xbmc settings did not correct the problem).
I also made the following change to the advancedsettings.xml file
<audio>
<resample>48000<resample>
</audio>

It seems that the patch does not apply the same resampling settings at both outputs. They are being applied to the first output thus playing the hdmi stream correctly but it does not apply them in the second output thus resulting in corrupted audio in the second output every time it needs resampling.

Can anybody confirm this by doing the following check...
1. play a video of 44100 or 22000hz audio
2. check if it plays correctly (resampled) from both outputs

EDIT:
Found a solution...
I created this file
~/.asoundrc
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:1,0"
period_time 0
period_size 1024
buffer_size 8192
#periods 128
#rate 44100
rate 48000
}
bindings {
0 0
1 1
}
}

and selected as audio device plug:dmixer instead of hw:1,0.( hw:1,0 was card1,subdevice 0 - my creative x-fi for digital). That made the digital output to resample everything to 48000.



RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - scottw - 2012-04-24

Hi there, I'm completely new to XMBC and this forum. I've downloaded Eden today and have it running on Mac OS X 10.6 on a Intel Core 2 Duo Mac Mini. I would really like to get the dual audio output working but have no idea how to compile the binary to work on my system. If anybody has an idiots guide to compiling for XMBC or can even post a link to a pre-compiled version I would be really grateful. I have checked as the thread but can't find this question posted anywhere-I apologise if this is a repeated request. Thanks very much, Scott


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - DeViLRuNNeR - 2012-04-26

(2012-04-23, 13:10)PaulCarter Wrote: I've just checked and unfortunately it's not possible to cross-(os-)compile from Linux to iOS. See this thread.
I'm afraid you'll need to find someone with a Mac to create this build.

Thx for looking into it PaulCarter



RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - sebion - 2012-04-26

(2012-04-23, 11:53)PaulCarter Wrote: ReMi - your binary is big because you've not disabled debug. re-running ./configure with the --disable-debug should have brought it down to the same size as the orginal. Did you also do "make clean" after the configure? I always do that to ensure that everything is rebuilt.
I'm pretty sure that will work because I had exactly the same issue last week when I forgot the debug flag and got a huge binary.

DeVilRuNNeR - I could try cross-compiling for Apple TV but I don't have one so it would be entirely untested!

Hi PaulCarter,

I am really interested in having a kind of How To compile XBMC with this patch.
I tried many things without success.

I don't know lot of things on LINUX and compiling a program is still for me a nightmare, but I wanna learn..

Thank you in advance for helping me.

Regards,

S.


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - PaulCarter - 2012-04-27

sebion,
Have you followed the wiki article on how to get the source code & compile it on a Linux system?
That's the first thing to do - but note that you now need to work on the Eden branch as the trunk (master) is now heading towards Frodo.
To do that run the following command before you build:
Code:
git checkout Eden
Once you've got Eden built test it to make sure the process has worked!

Now, to create the dual audio version, create a new branch for you to use and switch to it:
Code:
git branch dualaudio
git checkout dualaudio
Then apply the patch file for the changes - which can be found here:
Code:
git apply xbmc.eden.dualaudio.patch
then rebuild everything
Code:
make all

And hopefully you now have your own build of xbmc with dual audio support Smile

Paul



RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - schumi2004 - 2012-04-27

@paul

Were did you get that patch from, It's to big imo.
I posted a patch in the past but that 1 was faulty, you need to do dos2unix to change the file format of the modified files.
And then create patch file.

The patch i have now is only 97kb which can be found here http://dl.dropbox.com/u/6696611/OpenELEC/index.html



RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - PaulCarter - 2012-04-27

D'Oh, More haste, less speed!
thanks Smile
Sorry, I forgot the sanity check - will sort it out later




RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - sebion - 2012-04-27

Thanks you, so much.

I do know how to compile xbmc. I already did it several times, but I didn't know how to apply the patch.
I will try this very soon.

How do you build this patch ?

Thanks
Seb