[WINDOWS][PATCH]Bitstream output of HD audio formats

  Thread Rating:
  • 17 Votes - 4.76 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
DanielaE Offline
Team-Kodi Member
Posts: 78
Joined: Dec 2011
Reputation: 30
Location: Germany
Post: #1
In case anybody is interested, I've created a small patch to the main development trunk to enable HD audio bitstreaming for my (still-in-the-works) HTPC project. This is not a competitor to the much more ambitious AE branch, but rather a stability and feature patch which affects the trunk code as little as possible.

Test system:
  • AMD Fusion E-350 running Windows 8 DP 32bit, Realtek HDMI audio
  • Yamaha RX-V1900
  • Pulse-Eight CEC-USB adapter
tests were also run with AMD Catalyst HDMI audio driver and on Windows 7 HP 64bit

Added features:
  • Bitstream output to HDMI for Dolby Digital Plus, Dolby TrueHD, DTS-HD HR & MA, Meridian Lossless Packing
  • DTS core bitstreaming of DTS-HD audio to non-DTS-HD-capable equipment
Caution: I've enhanced the Windows WASAPI and DirectSound renderers only. Audio renderers for other platforms need some loving by interested parties!

Stability Fixes:
  • Fix buffer overruns when muxing MAT frames (Dolby TrueHD, Meridian Lossless Packing)
  • Fix wrong frame length calculation in passthrough of 14-bit-encoded DTS streams
  • Work around seemingly broken Dolby Digital Plus output to Realtek HDMI audio driver
Tested audio formats:
  • Dolby Digital Plus up to 7.1 48kHz 16bit
  • Dolby TrueHD up to 7.1 48kHz 24bit, also with interleaved AC3
  • DTS-HD up to 7.1 96kHz 24bit, also with DTS-96/24 core up to 6.1
  • Meridian Lossless Packing up to 5.1 176.4kHz 24bit
Audio files were either raw files or muxed streams in MKV, M2TS, MKA, or WAV container.
Dolby audio test files come from well-renowned internet sources.
DTS audio test files come from well-renowned internet sources, or were encoded by myself.
MLP audio test files are from DVD-Audio disks.

Additional GUI settings:

When output to HDMI is selected, bitstream output of high-res audio formats becomes enabled:

[Image: screenshot000.jpg]

In case of DTS, the maximum supported DTS format of the connected DTS decoder may be selected. Unsupported DTS formats may be output as core bitstream then, or as LPCM decoded by XBMC:

[Image: screenshot001.jpg]

Bitstreaming is not enabled for the XBMC music player (yet), but for testing purposes all of the above audio formats may be played with XBMC's video player.

Links:
Source: on GitHub
Binaries (Windows installer):
(This post was last modified: 2012-04-27 19:15 by DanielaE.)
find
DDDamian Offline
Team-XBMC Developer
Posts: 3,030
Joined: Sep 2011
Reputation: 254
Location: Canada
Post: #2
Welcome to the forums. I think you've just made a lot of friends Laugh

Will test when I get a chance on: Win 7 x64, ATI 6450, AMD 7.12.0.7705 drivers dated 12/6/2011 (believed latest), HDMI to a Denon 3808CI receiver supporting all formats.

NOTE: Link to Eden RC2 + Daniela's excellent HD Audio patch

System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon AVR-3808CI - Denon DVD-5900 Universal Player - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray - X-Box 360 - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
(This post was last modified: 2012-03-07 23:21 by DDDamian.)
find
DDDamian Offline
Team-XBMC Developer
Posts: 3,030
Joined: Sep 2011
Reputation: 254
Location: Canada
Post: #3
Confirmed working on:
DTS-MA
Dolby TrueHD
DTS 1500kbps

haven't tested MLP yet (just have to re-rip a DVD-A, all mine are converted to mc FLAC)

In a word - brilliant!! Add in 24-bit audio via PAPlayer and you have advanced XBMC audio light-years!

System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon AVR-3808CI - Denon DVD-5900 Universal Player - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray - X-Box 360 - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
find
Memphiz Offline
Team-Kodi Developer
Posts: 11,219
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #4
We want it on iOS and OSX Big Grin

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find
DDDamian Offline
Team-XBMC Developer
Posts: 3,030
Joined: Sep 2011
Reputation: 254
Location: Canada
Post: #5
@Daniela - for a first post in the forums this is an amazing achievement! Wow- that was out of the blue. Great work - let's see how other's fare testing it, but my tests worked like a charm.

System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon AVR-3808CI - Denon DVD-5900 Universal Player - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray - X-Box 360 - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
find
bluray Offline
Posting Freak
Posts: 8,315
Joined: May 2011
Reputation: 145
Post: #6
Thanks for great work....welcome to the forum. If my kids and wife let me get on E350 tonight, I'll try it! Smile

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
find
steelman1991 Offline
Donor
Posts: 2,434
Joined: Jan 2009
Reputation: 10
Post: #7
Got to agree with DDDamien an outstanding first contrubution - where have you been hiding these past months.

At the risk of tempting fate - this works perfectly on my set-up

ATI 5670, Onkyo 805 receiver (5.1)

Your going to make lots of new friends very quickly

Great work
find
Wanilton Offline
Posting Freak
Posts: 1,271
Joined: Jun 2010
Reputation: 27
Location: Florianópolis - Brazil
Post: #8
Great work, this run fine here, using onkyo 705 (5.1), ATI 5450...

congratulations...well done.

Wanilton

http://www.xbmcbrasil.net - Youtube Channel
Admin
Windows 8.1 - XBMC Helix Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me
find
meridius Offline
Posting Freak
Posts: 877
Joined: Jul 2010
Reputation: 1
Post: #9
Was just wondering does this have any sync problems as xbmc 10 you have to delay my dts audio by 200ms when sync video to source is used.

Also can this be used in xbmc 10 or is this a complete new install of xbmc.

Cheers and fantastic work
find
DDDamian Offline
Team-XBMC Developer
Posts: 3,030
Joined: Sep 2011
Reputation: 254
Location: Canada
Post: #10
meridius Wrote:Was just wondering does this have any sync problems as xbmc 10 you have to delay my dts audio by 200ms when sync video to source is used.

Also can this be used in xbmc 10 or is this a complete new install of xbmc.

It's a new install. I saw a slight sync issue on a TrueHD sample, perfect on DTS-MA, but every setup is different and depends on video-processing in receiver and TV

System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon AVR-3808CI - Denon DVD-5900 Universal Player - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray - X-Box 360 - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
find
paavor Offline
Donor
Posts: 90
Joined: Mar 2011
Reputation: 4
Location: Tampere, Finland
Post: #11
Just a quick test with nVidia GTS 450 / HDMI / WASAPI / W2008R2 / Onkyo TX SR608 (using 5.1 speakers).

This seems to work fine with DTS-MA and other "regular" formats, but a small audio sync problem with TrueHD. Easy to fix though and I had only 2 TrueHD movies to test. Perfect with DTS-MA.

Note, that this upgrades database from ver 58 to 60, if you install this over Eden Beta 2.

Great work for the unpatient ones. Big Grin

Kodi @ Windows Server 2012 R2 | Pulse-Eight USB-CEC Adapter
(This post was last modified: 2012-02-03 22:52 by paavor.)
find
Slipx Offline
Member
Posts: 92
Joined: Jun 2008
Reputation: 0
Post: #12
Absolutely brilliant !!

Working fine on Intel Core i3 and Denon AVR-2310. I use sync to video and have a delay of 225ms as per the previous beta 2 I was running.
find
steelman1991 Offline
Donor
Posts: 2,434
Joined: Jan 2009
Reputation: 10
Post: #13
DDDamian Wrote:It's a new install. I saw a slight sync issue on a TrueHD sample, perfect on DTS-MA, but every setup is different and depends on video-processing in receiver and TV
Noticed a number of drop frames on Cars (TrueHD track), other TrueHD tracks work perfectly. Agreed about DTS-MA tracks.
find
DDDamian Offline
Team-XBMC Developer
Posts: 3,030
Joined: Sep 2011
Reputation: 254
Location: Canada
Post: #14
Ah yes - I see the database change. Good you pointed that out in case anyone tries it and needs to revert.

System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon AVR-3808CI - Denon DVD-5900 Universal Player - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray - X-Box 360 - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
find
discinabq Offline
Junior Member
Posts: 12
Joined: Jan 2012
Reputation: 0
Post: #15
Great Job - Will test with my win 7 x86 | GT430 | Integra DTR 5.9 when i get home
find
Thread Closed