[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: #971
From my opening post:
(2012-02-03 21:00)DanielaE Wrote:  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.
(2012-03-23 11:25)Darquebus Wrote:  
(2012-03-21 23:59)DDDamian Wrote:  @darquebus - I am able to play DTS wave files with this build without issue - they are decoded to PCM, and play fine even when I set that my reciever accepts DTS (although they end up decoded anyways).
As I already wrote if I set up the audio settings to "no DTS", the player decodes those files to Multichannel-PCM, and plays fine, however it is not a "passthrough" solution.

As I said in the opening post, bitstreaming is implemented for the video player only. To get away with this restriction, I've added the capability of playing wave encapsulated DTS (or AC3 for that matter) to the video player. Raw DTS/AC3/whatever streams are fine, too. The next HD-audio drop (derived from Eden) has a fix for the pitch distortion seen with 44.1kHz DTS. And exact audio frame duration calculation for all supported packed audio formats (DTS, DTS-HD, AC3, E-AC3, TrueHD, MLP), too.

ciao, Dani

AMD Fusion E-350/Win 8/custom XBMC, Yamaha RX-V1900, Pioneer DV-LX50, custom speakers
find
abudabi Offline
Member
Posts: 84
Joined: Aug 2011
Reputation: 1
Post: #972
(2012-03-23 11:50)abudabi Wrote:  
(1970-06-06 05:47)Martijn Wrote:  My crystall ball says *censored* Cool

Spoilsport Tongue

If I look at http://trac.xbmc.org/roadmap , then it looks to be 99% complete and due in 39 hours.... Does that mean the release is imminent ? Nod
find
bluray Offline
Posting Freak
Posts: 7,575
Joined: May 2011
Reputation: 139
Post: #973
(2012-03-23 09:07)gothamite302 Wrote:  i just did a clean install of this patch and i am still not getting any audio when i play an DTSMA file in MKV or M2TS, am i missing a setting? I get full audio playback with MPC-HC and PowerDVD on the same files. Also i am sorry if this question doesnt belong here, if i need to move it or ask somewhere please let me know.

LOG:
http://pastebin.com/NgJPHASg
Is your ATI GPU support DTS-MA? Can you get TrueHD? If you haven't update the latest AMD driver for your GPU, you can update it from here- AMD Catalystâ„¢ Display Driver. You can recheck XBMC audio output configuration, and should look very similar to the screen shot below:

[Image: w99vlg.jpg]
(2012-03-23 13:54)DanielaE Wrote:  As I said in the opening post, bitstreaming is implemented for the video player only. To get away with this restriction, I've added the capability of playing wave encapsulated DTS (or AC3 for that matter) to the video player. Raw DTS/AC3/whatever streams are fine, too. The next HD-audio drop (derived from Eden) has a fix for the pitch distortion seen with 44.1kHz DTS. And exact audio frame duration calculation for all supported packed audio formats (DTS, DTS-HD, AC3, E-AC3, TrueHD, MLP), too.
Good works, and it work fine on my system.....thanks!

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
(This post was last modified: 2012-03-23 16:40 by bluray.)
find
Aemstel Offline
Member
Posts: 66
Joined: Feb 2011
Reputation: 0
Post: #974
First of all, thank you DanielaE, DDDamian and all who helped make this HD Audio possible! For me, this has made XBMC the ultimate media center experience Smile

I have a small question. Sometime ago these settings in advancedsettings.xml were suggested to fix MKV DTS stutter and the 24p sync problems:

Code:
<audio>
    <enablealtsync>true</enablealtsync>
</audio>
<video>
    <globalavdelay>
      <delay>0</delay>
      <refresh>
        <min>23</min>
        <max>24</max>
        <delay>-125</delay>
      </refresh>
    </globalavdelay>
</video>

Does the build from the second post still need these settings, or has this already been fixed in the build itself?

edit:
Tested some more and the settings seem to be needed still. It all seems a bit out of sync. Hard to get the right setting. Hope this gets fixed sometime.
(This post was last modified: 2012-03-24 01:03 by Aemstel.)
find
DDDamian Offline
Team-XBMC Developer
Posts: 3,023
Joined: Sep 2011
Reputation: 252
Location: Canada
Post: #975
(2012-03-23 09:07)gothamite302 Wrote:  i just did a clean install of this patch and i am still not getting any audio when i play an DTSMA file in MKV or M2TS, am i missing a setting? I get full audio playback with MPC-HC and PowerDVD on the same files. Also i am sorry if this question doesnt belong here, if i need to move it or ask somewhere please let me know.

Your log doesn't show any real errors - what date is that RealTek driver? Is the volume at 100% in both XBMC and in the Windows audio panel? All enhancements off? XBMC thinks the sound is going through okay, so it's something between Windows, the driver and the receiver.

(2012-03-23 10:41)Martijn Wrote:  
(2012-03-23 10:18)abudabi Wrote:  
(2012-03-22 19:30)DDDamian Wrote:  Eden final is rolling out shortly.

Oooh.. you started something here.. What's shortly mean ? A week.. a month? Angel

My crystall ball says *censored* Cool

No dates folks! - spoils all the tremendous fun the devs get to have squashing bugs, seeing what to include, building for various platforms, pushing code, updating web pages and announcements, etc. Plus we just like to watch people squirm Wink

I'll stand by my earlier statement of "rolling out shortly" Smile

(2012-03-23 11:25)Darquebus Wrote:  
(2012-03-21 23:59)DDDamian Wrote:  @darquebus - I am able to play DTS wave files with this build without issue - they are decoded to PCM, and play fine even when I set that my reciever accepts DTS (although they end up decoded anyways).

Thank you Damian for feedback.
I tried with an Acer Revo70 PC ( AMD E-450 / 4GB RAM - freshest AMD drivers ) via HDMI to a Harman/Kardon AVR-460 receiver.
It is very interesting issue, because all audio formats from MKV/.M2TS/ISO go through via HDMI well to process in AVR,
except the DTS 5.1 audio files cause problem in .WAV or .DTS form.

As I already wrote if I set up the audio settings to "no DTS", the player decodes those files to Multichannel-PCM, and plays fine,
however it is not a "passthrough" solution.

I dont have any glue what is the problem with it. Do you? Or anyone?
Does anyone use similar AMD E-350/450 platform with the integrated HD6310/20 GPU?

Thank you for your help.

EDIT: Is that possbile to download the independent HD AUDIO extension/addon/pack for the base XBMC v11RC2? Smile TY!
And just for info... it is the best mp sw ever seen in PC! Smile I really love the skin, the design, handling! Amazing!

Most dts wav files lack the proper header for wave info. PAPlayer, the music player part of XBMC will decode DTS to PCM, and you're not losing anything, but it won't pass DTS through without all the proper header info, whereas DTS in video is fairly consistently conformant to standards. Don't forget, DTS-wav isn't really a standard, just a trick people found could be crammmed into the Redbook CD standard.

The second post of this thread has a link for Eden RC2 + this HDAudio 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!
find
Darquebus Offline
Junior Member
Posts: 6
Joined: Mar 2012
Reputation: 0
Post: #976
[quote=As I said in the opening post, bitstreaming is implemented for the video player only. To get away with this restriction, I've added the capability of playing wave encapsulated DTS (or AC3 for that matter) to the video player. Raw DTS/AC3/whatever streams are fine, too. The next HD-audio drop (derived from Eden) has a fix for the pitch distortion seen with 44.1kHz DTS. And exact audio frame duration calculation for all supported packed audio formats (DTS, DTS-HD, AC3, E-AC3, TrueHD, MLP), too.

[/quote]

Dear Damien!
Apologize for false alert Smile I just found the root of my issue, the files are maybe corrupted,
the XBMC played other DTS audio files without problem, except maybe that pitch issue.
Songs were faster and a little bit higher tone, this is the 44.1 vs 48 kHz issue, right?

I just start to build my own HTPC and spread the word about this amazing software. Smile
With respect,
Darq
find
DDDamian Offline
Team-XBMC Developer
Posts: 3,023
Joined: Sep 2011
Reputation: 252
Location: Canada
Post: #977
@Darq - yes, that would be the 44.1khz (Redbook CD) vs 48khz (DTS/AC3/SPDIF standard) timing issues. Try the build in post #2 of this thread per DanielaE's comments - they play back at the adjusted/correct frequency.

EDIT: sorry - to explain better - to playback at corrected frequency use DVDPlayer (the video part of XBMC), not PAPlayer, the music part. To do this right-click on the DTS/wav file and select "Play Using" > "DVDPlayer". This is what DanielaE refers to in her first post and as quoted in post 971. It is then bitstreamed or passed-through as DTS at the correct frequency.

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-23 20:25 by DDDamian.)
find
Darquebus Offline
Junior Member
Posts: 6
Joined: Mar 2012
Reputation: 0
Post: #978
(2012-03-23 20:16)DDDamian Wrote:  @Darq - yes, that would be the 44.1khz (Redbook CD) vs 48khz (DTS/AC3/SPDIF standard) timing issues. Try the build in post #2 of this thread per DanielaE's comments - they play back at the adjusted/correct frequency.

EDIT: sorry - to explain better - to playback at corrected frequency use DVDPlayer (the video part of XBMC), not PAPlayer, the music part. To do this right-click on the DTS/wav file and select "Play Using" > "DVDPlayer". This is what DanielaE refers to in her first post and as quoted in post 971. It is then bitstreamed or passed-through as DTS at the correct frequency.

I just installed that newest version and tried both way of playback,
DVDPlayer plays the music faster in DTS, the PAPlayer plays in correct speed in Multi-channel PCM.

Source is:
[Image: audioinfo_www.kepfeltoltes.hu_.png]
(This post was last modified: 2012-03-23 20:50 by Darquebus.)
find
DDDamian Offline
Team-XBMC Developer
Posts: 3,023
Joined: Sep 2011
Reputation: 252
Location: Canada
Post: #979
Yes, that should be a "normal" one. I've seen some that have been re-encoded to 48khz already, so you'd have the opposite issue playing it from a CD-player. With no real defined standard it's one reason DTS-wav never really took off. A lot were only ever up-mixes by guys on computers, and many of them were done at 48khz for computer playback.

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-23 21:58 by DDDamian.)
find
Darquebus Offline
Junior Member
Posts: 6
Joined: Mar 2012
Reputation: 0
Post: #980
Does it (XBMC) support the 24bit/352.8kHz DXD encoded .WAV files? Or will it?
However nowadays-general-DACs support only up-to-192kHz sampling, maybe the down-sampling is needed.
find
Thread Closed