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)



- EMK0 - 2011-04-25

dado483 Wrote: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

can your hardware even bitstream hd audio?


- SpectreX - 2011-04-25

gnif said that on linux only the GT210 and above are capable of bitstreaming HD audio, and even on the GT210 there are some issues since it isn`t officialy supported for this task by Nvidia.


- Calvados - 2011-04-26

@dado483: before you play with AE, I'd suggest you read http://www.nvnews.net/vbulletin/showthread.php?t=157347, and see if that test works for you. This is what I did back then to assert if my GT240 would work in HBR mode because it doesn't work on every 210/240. I am lucky, it actually works fine for me. You will have to make sure ALSA is setup properly to have the HDMI device sets.

My audio is set to HDMI in 7.1 with HDMI for both passthrough and normal audio device, no boot volume on downmixing, with receiver capable of AC3, DTs, LPCM, TRUEHD. That being said, I've been running AE for a while now, and I noticed the following:

1) When you start a video with multiple audio tracks (typically a blu-ray in my case), if xbmc choose a track different from the TRUEHD one, switching to TrueHD makes the track being sent to the receiver with a wrong channel config. To fix that, I basically stop and restart the replay (XBMC defaults now to the previously selected audio track) and it works from there. Alternatively, I have selected during playback the audio properties, set to output to stereo only, and unset that and then it works fine as well. As soon as it has correctly started to decode TRUEHD, you can skip ahead and what not, it works fine. Personally, I can live with that... I am more puzzled as why XBMC would not select the 1st audio stream by default.

2) With my config set to 7.1, my receiver initially receive a 7.1 PCM in 48Khz... now, it happens that after a few things I played, for an inexplicable reason, the PCM sent is a 2.0 PCM (44.1Khz or something else... basically whatever the track I am playing is supposed to be), pass-through is never a problem though as expected. If I restart XBMC, we are all back to normal.

3) In the same vein, playing for example a mono FLV 22Khz makes XBMC crash point blank. The Git master would actually play it correctly for audio device set to HDMI, or wrong (expected) if the device is set to defaults.

All in all, this is to be expected for an experimental branch, those things will eventually be fixed I am sure Smile. The current state is rather excellent for that kind of things.

@gnif: I wonder something though: I have some Blu-ray which are LPCM in 5.1 or 7.1, shouldn't you send those with the same channel config (like in pass-through)? It just seems strange Smile, but may be this is on your roadmap, I dunno, after all you added recently an option for LPCM receiver.


- Calvados - 2011-04-26

@gnif:

Actually in regards to 2) issue... I found the exact circumstances. So initially, AE is initialized with 8 channels on my system, then If I play a pass-through video, AE sets the number of channels to 2 for ALSA, and after it is done, it doesn't reset the channels back to 8 (7.1). In fact, If I were to play a 5.1 FLAC after that (or a 7.1 LPCM), it will only output a PCM 2.0 (hence I loose some resolution)...

Rather amusing in a way Smile.


- joethefox - 2011-04-26

Thank you for your effort!
Tested this weekend and my audio 2.1 environment say thank you too! Finally a bit exact playback and feel the big difference with the old engine!
Funny thing: first times all tracks were played at about double/triple speed, like if my collection was a collection of covers by Alvin and the Chipmunks!
More funny thing: I attended the first event of self-debug and self-repair software: after listened to an entire Alvin cover song, from that moment all songs have been properly played... :O


- gnif - 2011-04-27

@Calvados: I will look into that, I don't have any 5.1 FLAC files so I will have to obtain one for testing.


- alanwww1 - 2011-04-27

gnif Wrote:@Calvados: I will look into that, I don't have any 5.1 FLAC files so I will have to obtain one for testing.

Here are some channel identification test files i created:

Audio:
http://jkft.info/xbmc/testfiles/channelid/Audio/

Video:
http://jkft.info/xbmc/testfiles/channelid/Video/

Not sure if they are all good, but when i tested with windows they were ok.


- Calvados - 2011-04-27

@gnif: http://rapidshare.com/files/300916755/testeflac8824.flac 40MB (5.1), this is the test I use for checking if Multi Ch PCM works.


- TugboatBill - 2011-04-27

I can send you a 96Khz 24bit 6 channel flac if needed. Just PM me.


- lloydsmart - 2011-04-27

Tested latest git today. Crashes don't occur any more but the speedup/no-audio issue still exists. That is to say, no audio at all and sped-up video on everything, including TrueHD tracks and "normal" audio tracks.

Do you need another log?


- gnif - 2011-04-28

@lloydsmart - This is because the sound device failed to open, please check your log for the reason why.

Everybody - If your video plays too fast, with no sound, check your log to see if it failed to open the audio device, if so, this is your problem, not AE. Check your settings, make sure speaker-test works, and if your using HDMI ensure that speaker-test with 6 or 8 channel output works. Any more reports of this issue will be deleted as it is not related at all to AE, and feedback will be added back to the GUI soon as to the failure to open the audio device.


- lloydsmart - 2011-04-29

Hello. I'm still working on finding out why the sound device failed to open, as it worked ok in Dharma, but I'll solve that problem seperately to this.

I'm posting now to report another crash. Happens with ae anytime I try to play any movie. Here's the crashlog:

http://pastebin.com/Z0qzhaGG


Build failure - Cranial - 2011-04-29

gnif,

Had a couple of goes at building from your source for the ATV2, getting a build failure. Now, I premise this by stating I really have no idea what I'm doing, but this is the failure I get:

Quote:** BUILD FAILED **


The following build commands failed:
CompileC build/XBMC-ATV2.build/Release-iphoneos/XBMC.build/Objects-normal/armv7/DVDAudioCodecPassthroughFFmpeg.o xbmc/cores/dvdplayer/DVDCodecs/Audio/DVDAudioCodecPassthroughFFmpeg.cpp normal armv7 c++ com.apple.compilers.gcc.4_2
(1 failure)

Any more info I can give you? Or just wait until it's further along?


- davilla - 2011-04-30

Cranial Wrote:gnif,

Had a couple of goes at building from your source for the ATV2, getting a build failure. Now, I premise this by stating I really have no idea what I'm doing, but this is the failure I get:



Any more info I can give you? Or just wait until it's further along?

you should be building from gimli's branch, that's where AE work on ios is being done.


- Cranial - 2011-04-30

davilla Wrote:you should be building from gimli's branch, that's where AE work on ios is being done.

Thanks Davilla, I'll give it a go.