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

  Thread Rating:
  • 17 Votes - 4.76 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
bluray Offline
Posting Freak
Posts: 7,575
Joined: May 2011
Reputation: 139
Post: #1451
(2012-06-08 19:48)shanndogg Wrote:  
(2012-06-08 18:16)bluray Wrote:  Who said that? If your receiver display DTS-HD MSTR, it is the real deal. If everything work fine with "Sync playback to display" enabled and "Video Clock(resample audio)" selected, congratulation.......it's time to enjoy the movie......Nod

It's posted in the XBMC Wiki found here. This is the exact sentence: "The disadvantage of resampling is that it doesn't work with passthrough, and there is a slight loss of audio quality."
I read it and I saw it a long time ago.....well, you said it work fine with it in your HTPC and your receiver display DTS-HD......and you had problem without it..........

Maybe, there is some other un-known settings that we don't know about. It work fine with it on your HTPC, and I don't see a problem.......

>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-06-08 22:10 by bluray.)
find
shanndogg Offline
Junior Member
Posts: 41
Joined: May 2012
Reputation: 0
Post: #1452
Yeah, this is very interesting since by the definition in the wiki, it would seem it wouldn't do what it appears to be doing for me (eliminating dropped frames while bitstreaming).

I just set everything up so I have hardly watched anything yet. All I have been able to do is watch a TV show ripped from DVD to mkv and it played fine with "regular" settings (Adjust display refresh rate to match video on, no sync to display).

I then watched a bluray ripped to mkv in 24p and it was dropping frames every 4 minutes or so. Also, the audio was off by about .125 so I adjusted the delay in the options. About halfway through the movie I set Sync playback to display to "on" with the resample audio option (since it was the default when turning on the sync). For the last half of the movie it seemed fine- no drops and still saw DTS-MA on the receiver. Haven't had a chance to watch something from beginning to end yet like this so hopefully the audio doesn't drift over time.
find
DDDamian Offline
Team-XBMC Developer
Posts: 3,023
Joined: Sep 2011
Reputation: 252
Location: Canada
Post: #1453
From DVDPlayerAudio.cpp ln780:

Code:
else if (m_synctype == SYNC_RESAMPLE)
    {
      //reset the integral on big errors, failsafe
      if (fabs(m_error) > DVD_TIME_BASE)
        m_integral = 0;
      else if (fabs(m_error) > DVD_MSEC_TO_TIME(5))
        m_integral += m_error / DVD_TIME_BASE / INTEGRAL;

Basically every time the error exceeds the threshold (and it would normally resample or skip or duplicate the audio packet here depending on the setting) if on videoclock or drop the frame if on the default audioclock, it instead just resets the accumulated error to zero. It all depends on the file a/v interleave what happens thereafter, i.e. if error continues to accumulate or a syncframe corrects it.

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
Dj Freddy D Offline
Junior Member
Posts: 23
Joined: Jun 2011
Reputation: 0
Post: #1454
(2012-03-10 22:50)DDDamian Wrote:  
Jaypeg Wrote:Anyone having any trouble playing mp3 audio on avi-files using this patch, the error seems to be consistent throughout my avi files with mp3 audio?

Furthermore, I don't get any audio on avi-files with ogg audio, but that is a general issue for Eden? I've seen some posts on the forum regarding this, but you guys might know something I guessed Wink

Update: It seems I have the same problem on normal RC2 client. The problem disappears when I set audio output to analog

It looks like it's trying to open the mp3 as passthrough, which most receivers will not accept. Not sure why it would do that (mine doesn't) unless you have the tag enabled in guisettings.xml

Code:
<audiooutput>
        <ac3passthrough>true</ac3passthrough>
        <audiodevice>wasapi:AMD HDMI Output (AMD High Definition Audio Device)</audiodevice>
        <channellayout>9</channellayout>
        <dontnormalizelevels>false</dontnormalizelevels>
        <dtspassthrough>true</dtspassthrough>
        <mode>2</mode>
        <passthroughaac>true</passthroughaac>
        <passthroughmp1>false</passthroughmp1>
        <passthroughmp2>false</passthroughmp2>
        [b]<passthroughmp3>false</passthroughmp3>[/b]
    </audiooutput>

Have a look and make sure it's false.

For OGG I can't say - don't have any to test with.


I too am having this issue, I searched this thread for a solution but did not find any.
find
gregnukem Offline
Junior Member
Posts: 17
Joined: Apr 2012
Reputation: 0
Post: #1455
Where did everybody go? Huh
find
voip-ninja Offline
Donor
Posts: 770
Joined: Jan 2010
Reputation: 14
Post: #1456
Probably to the HD Audio for Windows testing thread since that appears to have superseded this work.
Guys,

I have been reluctant to move from this patch build for Eden final to a nightly, hoping that we would eventually see an 11.1 that had "official" support for HD Audio.

Anyways, I'm seeing something odd and wanted to see if anyone had any ideas or comments.

I have an HTPC with an ATI Radeon 6450 which I use to bitstream HD Audio to my AVR. I had been using a Yamaha RX-V1800 and just recently purchased and installed a brand new Onkyo 818. This new Onkyo supports HDMI 1.4, etc.

What I have observed is that, similar to the Yamaha, if I simply set the XBMC output to "match frame-rate to source" and choose the HD audio options I get correct HD bit-streaming with no dropped frames (as reported by the debug overlay in XBMC). However, what I observe with the Onkyo that I did not see with the Yamaha is that periodically I see what appears to be a "jump" or "double frame" during playback in which it seems as though the playback jerks for a fraction of a second. I don't see any frame drops so I am suspicious that this is some kind of re-sync happening with the Onkyo which I did not have with the Yamaha.

Any thoughts? Would switching to the HD Audio branch matter at all for something like this?

Thanks.
(This post was last modified: 2012-06-26 17:42 by voip-ninja.)
find
PatrickBateman Offline
Posting Freak
Posts: 1,643
Joined: Mar 2011
Reputation: 15
Location: Another Earth
Post: #1457
Hey,

It could have something to do with the video convert (scaler) of the Onk.

Personally I don't like my video molested and therefore disable all video convert from my AVR.
Try disabling your video convert (scaler) on your Onk in the settings menu, it will probably disable you OSD but I use my AVR display for information purposes anyway, and therefore don't miss my AVRs OSD on my TV.

Untouched audio and video are more important for me than my OSD
Give that a shot and see hoe it goes Smile
Pat~
find
voip-ninja Offline
Donor
Posts: 770
Joined: Jan 2010
Reputation: 14
Post: #1458
Thanks, I probably should have mentioned that I have the Onkyo set to "pass-thru" for the HDMI connection from the XBMC, so no processing shenanigans should be happening.
find
Raytestrak Offline
Donor
Posts: 227
Joined: Sep 2011
Reputation: 1
Post: #1459
(2012-06-27 01:31)voip-ninja Wrote:  Thanks, I probably should have mentioned that I have the Onkyo set to "pass-thru" for the HDMI connection from the XBMC, so no processing shenanigans should be happening.

Do you get the jerky playback on all files? How have you setup your TV? I've recently bought a new TV and now that windows is set to 1080p24, I get judder in some files and audio sync issues on all files. Before I had my htpc set up as 1080p60 and had my Onkyo do all the 3:2 conversion. Everything looked fluent then.

XBMC for Windows on an Intel NUC (DC3217IYE). Onkyo SR-706. Canton Movie CD-1000. LG 42LM760S

If it ain't broke: break it, fix it, repeat
find
voip-ninja Offline
Donor
Posts: 770
Joined: Jan 2010
Reputation: 14
Post: #1460
(2012-06-27 13:04)Raytestrak Wrote:  
(2012-06-27 01:31)voip-ninja Wrote:  Thanks, I probably should have mentioned that I have the Onkyo set to "pass-thru" for the HDMI connection from the XBMC, so no processing shenanigans should be happening.

Do you get the jerky playback on all files? How have you setup your TV? I've recently bought a new TV and now that windows is set to 1080p24, I get judder in some files and audio sync issues on all files. Before I had my htpc set up as 1080p60 and had my Onkyo do all the 3:2 conversion. Everything looked fluent then.

It's hard to say as I've only had the AVR for about 1 week and have not had time to watch a lot of content. I am definitely though noticing more lip sync issues and the previously mentioned judder problem has been occurring periodically. I will say however that the audio upgrade with Audyssey XT32 is impressive.

I just updated to last night's build with the new audio engine so will have to do some more testing and see if the problem persists.

Does anyone know if the global lip sync settings still work in the latest builds? I might have to go in and put a ~150ms delay in for my 24P content. The Onkyo has an audio video sync adjustment but if I am looking at it correctly it can only add audio delay, not reduce it (which is what I need).
(This post was last modified: 2012-06-27 16:08 by voip-ninja.)
find
Thread Closed