XBMC Community Forum
[WINDOWS][PATCH]Bitstream output of HD audio formats - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: [WINDOWS][PATCH]Bitstream output of HD audio formats (/showthread.php?tid=121877)



- voip-ninja - 2012-02-06 22:53

Alz2605 Wrote:Hmmm... I'm getting micro stutters on some of my bluray rips and others play fine. The audio is perfect though and sounds amazing and I don't see any lip sync issues on either sound formats on the rips that play correctly.

But I can't understand what is causing the micro stutters on the rips that previously played perfectly. They're a mix of mkv and m2ts files with either Dolby true hd or dts hd and all have been ripped in the same way. I've tried a combination of different settings and I've updated to catalyst 12.1 and Realteks latest ati hdmi audio driver for windows 7.

Any suggestions? I don't like the idea on missing out on this great feature.

Can you provide some example titles with the problem? I would like to test them on my rig if I have them... I've only tested a handful of titles but so far they all appear to be working with no frame drops.


- fezster - 2012-02-06 23:05

voip-ninja Wrote:Do you have your audio driver set for 5 channels?

Do you mean in the Windows Sound control panel ? I'm pretty certain I should be able to leave that as stereo, as WASAPI should bypass it.


- voip-ninja - 2012-02-06 23:07

fezster Wrote:Do you mean in the Windows Sound control panel ? I'm pretty certain I should be able to leave that as stereo, as WASAPI should bypass it.

Actually I don't believe that will work. Before I went in and explicitly configured my audio for 5.1, I was only getting stereo output from multi-channel tracks on my i3 setup even though I had chosen the WASAPI source in XBMC for audio playback.

As soon as I went in and told the WASAPI driver in the control panel that I had 5.1 speakers, everything just worked.


- DDDamian - 2012-02-06 23:20

Alz2605 Wrote:Any suggestions? I don't like the idea on missing out on this great feature.

Got enough horsepower? Try syncing to the video clock under video settings.

fezster Wrote:Do you mean in the Windows Sound control panel ? I'm pretty certain I should be able to leave that as stereo, as WASAPI should bypass it.

voip-ninja Wrote:Actually I don't believe that will work. Before I went in and explicitly configured my audio for 5.1, I was only getting stereo output from multi-channel tracks on my i3 setup even though I had chosen the WASAPI source in XBMC for audio playback.

As soon as I went in and told the WASAPI driver in the control panel that I had 5.1 speakers, everything just worked.

WASAPI exlusive mode *should* be independent of the Windows channel setup. What is important is to check "Allow applications to take exclusive control of this device" and "Give exclusive mode applications priority" in the Windows sound settings under "Advanced". This is likely the cause of the error in the log posted above (against forum etiquette! pls use pastebin & post link - sry had to mention).

On my rig multichannel plays fine on all channels regardless of the channel layout in Windows, which is correct.

@Daniela - agreed - it's a shame the FLAC decoder is currently 16bit - needs rewriting as part of AE as well. I have not confirmed if this is dithered down correctly from 24-16 either. I know in AE the dithering code has just been implemented.


- fezster - 2012-02-06 23:27

It turns out setting System -> Audio Output to 5.1 solves it. I now get my FLAC files playing correctly at multichannel, and any bitstreamed audio still plays correctly at up to 7.1.

I dont have any FLAC files > 6 channels, so not sure if they'd play correctly or not.

I'm guessing this is a bug that WASAPI exclusive does not work when 7.1 is selected ?


- Alz2605 - 2012-02-06 23:33

voip-ninja Wrote:Can you provide some example titles with the problem? I would like to test them on my rig if I have them... I've only tested a handful of titles but so far they all appear to be working with no frame drops.

Avatar mkv and Back to the Future m2ts I remember giving me stuttering. Can't remember what else I tested. The Dark Knight, Drive and Tinker Tailor Soldier Spy ripped in m2ts played fine for me.


- greysquirrel - 2012-02-06 23:35

You are amazing!
I have spent so much time with the old hd hack and then all of last week trying to configure dsplayer. Aside from truehd files (created with makemkv and run slowly) it works perfectly, I only wish I had this 6 months ago!


- DDDamian - 2012-02-06 23:41

fezster Wrote:It turns out setting System -> Audio Output to 5.1 solves it. I now get my FLAC files playing correctly at multichannel, and any bitstreamed audio still plays correctly at up to 7.1.

I dont have any FLAC files > 6 channels, so not sure if they'd play correctly or not.

I'm guessing this is a bug that WASAPI exclusive does not work when 7.1 is selected ?

I'm guessing a driver bug - it works for me regardless of the Windows channel layout. That said, all my FLACs are 5.1 or less. Gonna try a quick test extracting DTS-MA 7.1 to FLAC and I'll let you know how that goes Cool


- Alz2605 - 2012-02-06 23:46

@ DDDamian,

Main specs of my pc are

Processor: AMD Athlon II X4 processor 620NVIDIA GeForce 9100 chipset
Memory: 8 GB DDR3-SDRAM
Graphics: ATI Radeon HD 5570 with 1 GB

I've tried video clock settings


- voip-ninja - 2012-02-06 23:59

DDDamian Wrote:WASAPI exlusive mode *should* be independent of the Windows channel setup. What is important is to check "Allow applications to take exclusive control of this device" and "Give exclusive mode applications priority" in the Windows sound settings under "Advanced". This is likely the cause of the error in the log posted above (against forum etiquette!).

On my rig, even with those options selected I only ever got stereo until I went in and configured the WASAPI driver for 5.1.

Probably a driver bug, but from what I see reported, others have to do the same to get 5.1 working properly.