-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Both HDMI and Analog output on Raspberry Pi XBMC #172
Comments
I do, will try this tonight. |
Thank you guys for the great support! |
I couldn't get it working, I figured out that the build we use is compiled with "--disable-alsa", that may be that reason that it ain't working. I'm going to (try) recompile XBMC with --enable-alsa. Will report back then (probably tomorrow). |
Thanks so much for trying! Hope you can fix it. |
@CurlyMoo do you know if ALSA has any kernel related things? XBMC is not configuring with alsa enabled even with --enable-alsa. |
That's because XBMC is hard coded with alsa disabled when building for the RPi. That's why you need some extensive patching like the Raspbmc guys did. |
That's a pitty I guess |
Hi, Botez posted the following message on tehe XBMC Forum: (http://forum.xbmc.org/showthread.php?tid=86038&pid=1272487#pid1272487) I can verify that the solution to get dual audio mentioned in this thread (http://forum.xbmc.org/showthread.php?tid=145430&pid=127247)) worked for me using the latest release of Frodo on Openelec. So there is hope for Linux folks out there. Does this help? |
The problem is the AudioEngine is not enabled on the raspberry pi XBMC build. So it does not use those config files. |
I read somewhere OpenELEC 2.0 does support it. Have they implemented it themselves? |
RaspBMC supports it as well, but yes they implemented this themselves. |
Ok, but I would like to stick to Xbian :) |
Then help us implement it :) |
I would like too... if I only could :) |
From a very trustable source I heard that XBMC did not implemented ALSA for the Pi because it caused a lot of problems. Openelec on the Pi does not support this (from what I heard) because of this. Raspbmc does, but this causes a lot of sideffects. |
What sideffects do you mean? |
Read this topic: A nice discussion between the XBMC RPi developer (gimli) and the Raspbmc developer (s7mx1). And a pull request @Koenkk can look at: xbmc/xbmc#1868 |
Tester reports for duty |
@brantje I wonder if you're missing the point? Stereo via HDMI isn't a problem AFAIK, it's getting sound pumping out through both HDMI and the analog 3.5mm port on the Raspi. Apologies if I misread your comment and my response is wrong. |
@inspector71 I meant i can test new builds if Koenkk needs testers ;) |
@brantje: fair enough, sorry for the confusion. I'm also quite willing to test. |
This can be done in OMXAudio.cpp if "OMX.broadcom.audio_splitter" is put in OMX tunnel and 2 "OMX.broadcom.audio_mixer" are attached to its output ports. OMXPlayerAudio::OpenDecoder must be changed too as currently it makes decision where to output audio. Also, "passthrough" related stuffs in OMXPlayerAudio must be redesigned in such case. This approach is only for Raspberry Pi and doesn't deal with ALSA or PulseAudio, as all remaining RPI specific code. Edit: If RPI have enough power, splitter can be put after decoder, keeping current passthrough logic for HDMI and adding separate mixer/render for analog channel. |
@stupid-boy do you have a .patch? |
No, just idea. |
That would be awesome!:) |
Sounds awesome! |
current status: @Koenkk if you wish, i can commit my work in my fork? any help are welcome. it is crazy annoying to wait min 3 hours only for linker to finish, just for one added log. i am building in 256M RPI and don't have any debugger... |
@stupid-boy I'm fine with that :) |
Owk, last off topic message. If you are going to try XBian, wait for Alpha 5. That will be released anytime soon. |
The XBMC part is commited with 90d712f , firmware still needs to be commited. |
Firmware commited with 857d86e |
Dear all |
@kitefighter please take a look at this: http://forum.xbian.org/thread-496-post-6486.html#pid6486 |
fix published in pull request at main stream repo. |
That patch is already in our patch repo so xbmc-nightly frodo will contain it. |
really? |
Yes, I was talking about the seekbeforezero patch ;) Gonna merge the one you are talking about today. |
good |
Can you give me a link to the patch file? You can also do a pull request on our patches git repo :) |
stupid-boy/xbmc@85bb82a |
Not even as a user? |
no. i use different system. i never tried xbian. in fact, that image was my first touch with linux at all :) |
How can I play my audio in hdmi and analog on Raspbmc? |
Apply the patch to XBMC and then compile it... |
Where is it the patch? How compile? I'm new on this world of XBMCs :-P |
Or just install xbian ;). |
but yesterday installed xbian and had no option both |
That's because you need to update to XBMC Frodo 12.1, read http://xbian.org/2013/03/xbmc-frodo-12-1-more/ |
So I'm using a standard install of Raspbmc, can I use this feature? I switched to nightly builds but still don't have the 'all' option. Can I get it working without compiling software, I'm not too confident with doing that |
@imarkskinner this is XBian, not raspmbc ;p |
So this is Xbian specific, and can't be done on raspbmc, sorry |
If you want this feature on Raspbmc, you need to contact Sam, not us. Or switch to XBian. |
Yes, definitely you have to ask Sam if you want this in Raspbmc or switch to XBian. XBian team here can't help you in any way with Raspbmc. As i know, currently this feature is build only in XBian distribution and some private builds. |
Sorry, Okay I'll dig out a spare SD card and try Xbian, most online reviews say your's is better than Raspbmc anyways. Well done & keep up the good work |
@stupid-boy the OMXAudio.cpp have been upgraded and now conflicts with your patch. (xbmc/xbmc@802a856). Can you check if you can fix these problems? |
no, sorry. actually, if you take a look in OMXAudio.cpp, you will see it is NOT changed ( there is only one added line, which is commented out ), so this time merge must not cause any troubles. be prepared for more serious situations in future. |
@stupid-boy thanks anyway, will look into it |
Hello,
I have a hearing problem and listen to the movies on a device that is connected to the analog input of the Raspberry Pi. My wife would also like to hear sound and her sound is given by the TV via HDMI.
Now the problem is that the sound goes through HDMI or analog output.
It would be great if the audio through both HDMI and analog would be sent so we both can enjoy the movie. Is this possible?
On the internet I found the link below, only I have no linux experience. Is it someone managed to get this working?
Thank huge thanks for the help!
http://mce.commsbyte.com/index.php?option=com_content&view=article&id=114:enabel-hdmi-and-stereo-audio-at-same-tiem-ubuntu&catid=10:linux
The text was updated successfully, but these errors were encountered: