[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-XBMC 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,023
Joined: Sep 2011
Reputation: 252
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,023
Joined: Sep 2011
Reputation: 252
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-XBMC Developer
Posts: 7,674
Joined: Feb 2011
Reputation: 91
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,023
Joined: Sep 2011
Reputation: 252
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: 7,575
Joined: May 2011
Reputation: 139
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,138
Joined: Jan 2009
Reputation: 6
Location: West Lothian, Scotland
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
Fan
Posts: 655
Joined: Jun 2010
Reputation: 13
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
XBMC Brazilian Community Forum
find
meridius Offline
Fan
Posts: 709
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,023
Joined: Sep 2011
Reputation: 252
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
Thread Closed