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)



- paolov74 - 2012-03-06 11:16

@DDDamian,

HI, sorry to go back to my previous post, but what I don't understand is why DanielaE's build and your very first build has no TrueHD dropouts with sync to playback on (23.976-> 24.000, tested on several movies and for hours of continuous play).

You adjusted the sync issues (more than 0.5 seconds on some movies) but something else went in the wrong direction...


- maxtrix - 2012-03-06 13:08

DDDamian Wrote:SACD is not supported in any way - it won't even recognize the filetype. SACD/DSD uses a totally different format, and atm only Foobar has code for playing it.

For DTS do you mean as part of a movie soundtrack or DTS-encoded wav files?

Good to know about SACD... I am using DTS encoded wav files...


- bluray - 2012-03-06 16:17

paolov74 Wrote:@DDDamian,

HI, sorry to go back to my previous post, but what I don't understand is why DanielaE's build and your very first build has no TrueHD dropouts with sync to playback on (23.976-> 24.000, tested on several movies and for hours of continuous play).

You adjusted the sync issues (more than 0.5 seconds on some movies) but something else went in the wrong direction...
I think that DDD might be correct on this. If it is not bitstreaming properly, it should have show up in every system.

Just slightly maybe--is there any firmware update for your AVR? I had problem with HD audio dropout with Pre-Eden last July. After I updated firmware on my Onkyo AVR, it seems to bitstream fine afterward. It's important to make sure that your GPU driver is up to date too...and one of my older HTPC bitstreaming better with Realtek HD audio codecs "High Definition Audio Codecs". Just a thought....


- paolov74 - 2012-03-06 17:02

@bluray

thanks for the advice about realtek drivers. I'm using latest AMD drivers (12.1). My AVR (Onkyo 608) doesn't support firmware upgrades.

Tonight I'll try with realtek ones and I'll let you know.

thanks!


- voip-ninja - 2012-03-06 17:21

paolov74 Wrote:@DDDamian,

HI, sorry to go back to my previous post, but what I don't understand is why DanielaE's build and your very first build has no TrueHD dropouts with sync to playback on (23.976-> 24.000, tested on several movies and for hours of continuous play).

You adjusted the sync issues (more than 0.5 seconds on some movies) but something else went in the wrong direction...

What do you mean by sync to playback 23.976-> 24.000?

Your display is 24 instead of 23.976? What exact sync options are set for you? I would investigate this a bit further before you do things like install codec packs.

The very first build that Daniela provided did have an issue for the overwhelming majority of users in which True-HD was not synced properly. This was due to variability in the frame size of True-HD and how it was being calculated for bitstream output.

If this was working for you, then something is wrong with your setup, the newer patches fixed this issue, the newer patches did not break this.

There is still a problem in some configurations if you turn on both the sync to display and sync to source options, in which True-HD might have dropouts every 45 seconds.

Can you describe exactly what it is that is happening?


- paolov74 - 2012-03-06 17:47

@voip-ninja

I'll try to be very clear about my setup...

All of my movies are in 23,976 format (mkv and bluray folder rips): I tried to play them with Ati 23hz (23.977, more or less) setting and bitstreaming, both with mpc-hc+reclock and xbmc sync to playback...failing to achieve 0 frame drops (but I got no audio drops at all). Maybe my rig is not stable enough, anyway...

So I tried with a more stable refresh: 24hz (24.000 fps): this way I can bitstream dts-hd, dts, ac3 and truehd (at least with DanielaE's build and first DDDamian one) with sync playback to video, drop/dupe audio, without a single audio or video drop.
Right, no audio glitches or dropouts. In the advancedsettings.xml I forced the refresh rate for 23,976 movies to switch to exactly 24hz.

I already excluded AVR from the chain (htpc---> TV directly) with same results. My tv is able to do 24p (I alredy tried with a blu-ray player with 24p output).

With reclock and lavfilters I have exactly the same results as for latest DDDamian builds: DTS-HD, AC3 and DTS are perfectly bitstreamed (@24hz) with no video frame drops (0 in an entire movie) and no audio glitches; TrueHD drops every 40 second (exactly during resyncing audio to video).

So I'm using the first eden beta3 DDDamian build cause, for my rig, is perfect also for TrueHD, except for sync issue easily corrected by adjusting audio offset at movie start.

Maybe is a weird setup, but I got the clue to set refresh to 24hz from other forums. Early on I had a totally different system with a geforce 430...I got exactly same results described before. The magic option was to set the refresh to exactly 24hz (24.000) and bitstreaming dropping/duping audio.

Sorry for the long post, but my trials went on for two months before finding the right settings!


- voip-ninja - 2012-03-06 17:54

Okay, from your description I suspect that your problem is a configuration issue. What you are doing is not "typical" and the problem with any kind of re-clocking and re-sampling of the audio/video (which you must do in order to speed up a 23.976 source to 24.00 fps) is that you are going to either drop audio or drop video frames when bitstreaming audio.

Just for reference, I experienced many of the same issues that you are describing, when I was trying to get "proper" clocking with a GT430 and the Intel on-board graphics. I wanted perfect 1080P playback with no frame drops. However, the clocks in the video cards are not accurate enough for this to happen. You have to choose if you want a dropped video frame or dropped audio frame (audio dropout). I was able to get away with it with the low def formats (I could clock both playback and source to 1080p/23.976 and get error free playback) but it is not possible with HD audio, probably due to some of the differences like frame size variation in True-HD bitstream output.

However, with the Radeon 6000 series, the clock appears close enough that re-sync frames are able to keep it in sync properly to my Yamaha RXV-1800 and then on to my Panasonic 1080P Plasma TV, with no frame drops and no audio dropouts.

I am simply using the "sync to source" option in XBMC. Monitoring diagnostics during playback show that even during a 2+ hour long movie there is not a single dropped frame unless I pause/resume or ff/rew the movie.

I think that you are reporting breakage that isn't really there. You should find out if anyone using re-clock or similarly speeding up the playback clock speed to 24FPS as you are doing is able to use these builds without audio dropout taking place.


- paolov74 - 2012-03-06 17:58

update...

I already tried sync to playback with 23hz settings (23.976)...but maybe my two cards hasn't a very stable clock: both xbmc and mpc-hc+reclock always failed to achieve a 0 frame drop play.


- voip-ninja - 2012-03-06 18:06

Do you have problems with both True-HD and DTS-MA if you choose both the options "sync to display" and "sync to source" and use the audio resample options and do 1080p/23.976 and not speeding it up to 1080p/24?

I only had problems with True-HD when doing this. There's an easy workaround, just send THD to the AVR as PCM (which XBMC supports). There is no audio difference in doing this you just won't get a light on your AVR that indicates it is receiving THD.


- paolov74 - 2012-03-06 18:10

@voip-ninja

My experience, with both rig /(gt430 and HD6330) is that latest DDDamian build DTS-HD can be resynced, dropped or duped without audible glitches (23.976 sped up to 24.000): trueHD don't.

DanielaE and first DDDamian builds are able to resync with dropping or duping without audible drops also for TrueHD.

I don't want to bother this thread with my setup...I still have to try rc2 build and Audioengine build extensively...I'll let you know.