Kodi Community Forum
AudioEngine branch - DO NOT REQUEST BINARY BUILDS - 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: AudioEngine branch - DO NOT REQUEST BINARY BUILDS (/showthread.php?tid=78289)



- gnif - 2011-04-21

@lloydsmart ,@nicob - I bet you have an ATI HDMI card... the problem is that TrueHD requires 8 channel output to get the required bandwidth, most ATI cards can not yet do > 2.0 channel output via HDMI. Your log shows that it failed to open the audio output with the required number of channels.

As for the crash, it might be related to the change I made to open the extra channels, I will investigate this, but I really need a crash log as it has a back trace attached to it.


- nicob - 2011-04-21

gnif Wrote:@lloydsmart ,@nicob - I bet you have an ATI HDMI card... the problem is that TrueHD requires 8 channel output to get the required bandwidth, most ATI cards can not yet do > 2.0 channel output via HDMI. Your log shows that it failed to open the audio output with the required number of channels.

As for the crash, it might be related to the change I made to open the extra channels, I will investigate this, but I really need a crash log as it has a back trace attached to it.
You will lose that bet.... (VAAPI is not always ATI) I have an Intel Sandy Bridge (H67)... Smile

I will send you the crash log... in about 9 hours (when I am done working) and I have to recompile, as I normally compile with --disable-debug...

Calvados Wrote:Have you checked if ALSA HBR passthrough is supported on it? IIRC Anssi mentioned it wouldn't work on some ATI models (yet?).
You mean http://forum.xbmc.org/showpost.php?p=665017&postcount=125 ?
I have an H67 express = CougarPoint so it should be supported... But I will check the EDID when I am home....


- gnif - 2011-04-21

@nicob, well your playback issues are because your HDMI output does not support > 2.0 output as your log clearly shows, but I am indeed interested in the crash, it should not have happened even so.


- lloydsmart - 2011-04-21

gnif Wrote:@lloydsmart I bet you have an ATI HDMI card

I have an Nvidia GT430, connected to an Onkyo 705 via HDMI.


- nicob - 2011-04-21

@lloydsmart: Good to know I am not the only one! (I probably would have given up) BTW I also have an Onkyo (NR-3007)

gnif Wrote:@nicob, well your playback issues are because your HDMI output does not support > 2.0 output as your log clearly shows, but I am indeed interested in the crash, it should not have happened even so.
I pulled the last commits and recompiled ...
Here is the gdb backtrace: http://paste.kde.org/17227/

And I am sorry but I do have 5.1 HDMI output when playing a movie with DTS or AC3 with your AE branch.... (my onkyo says it gets 5.1 from the HDMI input)
also, I have the HBR:
cat /proc/asound/card0/codec#3: http://paste.kde.org/17317/


EDIT:
Found the possible problem, the edid information is incorrect on CougarPoint
http://forum.xbmc.org/showthread.php?tid=96669 Wrote:Multichannel lpcm does not work at the moment. It is some kind of EDID parsing problem with alsa. Maybe with your setup it can work. At my setup it detects my TV's available sound modes which are limited to 2 channel 88200hz although my AV receiver supports 8 channels up to 192khz. Strange is that sometimes EDID detection completely fails and that way i have all the modes supported. :-) I already contacted the developer at project Alsa.

Man that sucks!


- gnif - 2011-04-22

@nicob - The issue is certianly with your sound card or ALSA, not XBMC. 5.1 AC3 and DTS only require 2 channel out as they are encoded pass through formats.

@lloydsmart - Try the latest alsa snapshot from here, I had issues as well until I upgraded the drivers.

@liquidskin76 - Sorry but nobody has updated the Windows build with the XBMC files, and I do not have the ability or the environment to do this, CrystalP could possibly assist you with this.


- MutatedHero - 2011-04-22

gnif Wrote:@nicob - The issue is certianly with your sound card or ALSA, not XBMC. 5.1 AC3 and DTS only require 2 channel out as they are encoded pass through formats.

@lloydsmart - Try the latest alsa snapshot from here, I had issues as well until I upgraded the drivers.

@liquidskin76 - Sorry but nobody has updated the Windows build with the XBMC files, and I do not have the ability or the environment to do this, CrystalP could possibly assist you with this.

Ah, so that's why I have not been able to build it when trying a few times. Smile Was so exited about getting to try TrueHD.
By the way, I'm using a ATI HD5570 and it does say that it is compatible with TrueHD and DTS-HD in the audio device so it should be fine to bitstream through HDMI once there is a Windows build, right?
Keep up the good work, Gnif! It is very much appreciated.


- lloydsmart - 2011-04-22

Hi again. I upgraded to the latest alsa as you recommended, and recompiled xbmc/audioengine from the latest git. Now I can't even launch xbmc, it just segfaults and gives this output:

Code:
lloydsmart@lloyds-htpc:~$ xbmc
params.c:OpenConfFile() - Unable to open configuration file "/home/lloydsmart/.smb/smb.conf":
    No such file or directory
params.c:OpenConfFile() - Unable to open configuration file "/home/lloydsmart/.smb/smb.conf.append":
    No such file or directory
Running DIL (3.6.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed
ALSA lib pcm.c:2208:(snd_pcm_open_noupdate) Unknown PCM 1,9
Segmentation fault (core dumped)
Crash report available at /home/lloydsmart/xbmc_crashlog-20110422_212359.log

Here is that log file: http://pastebin.com/QKjZSCLS

My normal Dharma build still runs without issue. Wierd right?


- hochopeper - 2011-04-23

lloydsmart Wrote:Here is that log file: http://pastebin.com/QKjZSCLS

My normal Dharma build still runs without issue. Wierd right?

I've got the latest alsa as on Fedora 14 repos, tried building from audioengine git yesterday with similar results. My crashlog included below looks pretty similar to yours.

pastebin.com


- gnif - 2011-04-25

@lloydsmart, @hochopeper - I found the cause of the crash and have resolved it..

As for the inability to open the sound device, check that you can first obtain output via "speaker-test -c6" first, of-course specifying the correct HDMI device with the "-D" flag. Note that X must be running for this to succeed otherwise you wont get HDMI output at all.

If you cant get HDMI output with speaker-test, you need to fix that first, you also need to be sure you can get > 2.0 output with the "-c" flag before multichannel will work, and before TrueHD will work.


- Calvados - 2011-04-25

@gnif: your last commit is wrong I believe:

newFormat.m_channelCount = CAEUtil::GetChLayoutCount(m_stdChLayout);


won't compile. I believe you meant:

newFormat.m_channelCount = CAEUtil::GetChLayoutCount(newFormat.m_channelLayout);




- gnif - 2011-04-25

@Calvados - You are correct, I did not have time to do a compile test, I have pushed this in.


- Calvados - 2011-04-25

gnif Wrote:@Calvados - You are correct, I did not have time to do a compile test, I have pushed this in.

Been there, done that - happens to the best Smile.


- Montellese - 2011-04-25

Hey gnif

I finished cleaning up the VS2010 project and made the needed changes to get AE to compile on Win32. I only tested DD5.1 and DTS passthrough but my goal was only to update the win32 build anyway. You can download the patch here: http://dl.dropbox.com/u/4929486/XBMC/AE-update-VS2010-project-and-fix-Win32-build.patch

I did not remove the unneeded files from the git repo, I only removed them from the VS project so there is still some cleanup necessary but I didn't know if some of the files were needed in other places.


- dado483 - 2011-04-25

Hi gnif,

i'm trying you GIT AE branch on my HTPC system.
I've an Onkyo TX-SR308 directly connected to my HTPC (mother board ASUS P5Q and NVidia 9400GT video card using HDMI audio output).
My video card doesn't create an HDMI device on the ubuntu system (i'm using ubuntu 10.10), but uses the iec958 connector of the audio card integrated in the motherboard for enable the HDMI audio output (in only an electrical connection Smile ).

I'm using the Alsa snapshot drivers you write above and i'm testing Dolby TrueHD passthrough with "The Dark Knight" Blu-Ray (blu-ray is played under XBMC using MakeMKV and the related plugin).

When i select the Dolby TrueHD audio track, the system correctly recognize it (i can verify it pressing the "i" button on the keyboard), but i can't hear any audio on my speakers (also the Onkyo cannot detect the track). Also the video have problem, film is playing faster with no audio.
If i try to change audio track to a simple DD 5.1, film continue playing faster with no audio, i've to restart it for a correct play.
Only sporadically, when changing the audio track, i've seen my Onkyo display the led "TrueHD" (it identify a MONO TrueHD track), but however no audio on the speakers.

I think there are problems when changing the audio track on any video, sometimes work and sometimes not (when don't work video goes faster with no audio). Can you confirm this?

I've also created a fork of your repo on my GitHub.
If someone would try it, i've integrated my PVR branch with your AE branch.
Address is https://github.com/dado483/xbmc/tree/AE

Hope this help, if you need some tests i'm available.

Davide