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

  Thread Rating:
  • 17 Votes - 4.76 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
bugatti Offline
Junior Member
Posts: 1
Joined: Apr 2012
Reputation: 0
Post: #1201
He,

RC2 works fine!
But the Final is not really fine......
find
voip-ninja Offline
Donor
Posts: 929
Joined: Jan 2010
Reputation: 17
Post: #1202
(2012-04-09 22:50)bugatti Wrote:  He,

RC2 works fine!
But the Final is not really fine......

Well, you are new here so........

What you've posted is doing no one any good. You need to provide more information on specifically what is not working for you.

1. What kind of files
2. What kind of PC hardware and software configuration, drivers, etc.
3. What kind of AVR are you trying to bitstream.

As you will find out from perusing this thread and spending a few minutes looking ,there are some cases where users have had issues due to mis-configuration or unsupported hardware (my AVR or video card does not do HD bitstreaming? Whoops!) and there are other cases where some specific files appear to have actual issues.

What you have posted is doing no one any good though and is a bit of a dis-credit to the people who have worked hard to bring us this release... you know, because it's FREE.
find
hakuya Offline
Junior Member
Posts: 10
Joined: Mar 2012
Reputation: 0
Post: #1203
Nice work DanielaE! Overall your patch is working really well for all but one of my movies. The movie in question is a straight M2TS dump of my Blu-ray disc of "Ghost in the Shell 2: Innocence" (the Japanese release). If I select either the True-HD stream or the DTS-HD MA stream (amusingly this disc has both) it seems no audio is passed and the video freezes after a few seconds. The audio bitrate reported for TrueHD is 0kbps and ~213kbps for DTS-HD. If I select the AC3 stream, playback continues normally.

In the logs I see,
Code:
19:06:44 T:1492  NOTICE: DVDPlayer: finished waiting
19:07:44 T:3704  NOTICE: ES: Client  from 192.168.1.14 timed out
19:08:28 T:1492  NOTICE: DVDPlayer: Opening: smb://192.168.1.12/array/video/film/Anime/Innocence (2004)/innocence.bluray.sample.m2ts
19:08:28 T:1492 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:08:28 T:6392  NOTICE: Creating InputStream
19:08:28 T:6392  NOTICE: Creating Demuxer
19:08:28 T:6392  NOTICE: Opening video stream: 0 source: 256
19:08:28 T:6392  NOTICE: Creating video codec with codec id: 28
19:08:28 T:6392  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
19:08:28 T:6392  NOTICE: Creating video thread
19:08:28 T:6392  NOTICE: Opening audio stream: 3 source: 256
19:08:28 T:6392  NOTICE: Finding audio codec for: 86020/60
19:08:28 T:2176  NOTICE: running thread: video_thread
19:08:28 T:6392  NOTICE: Creating audio thread
19:08:28 T:6392  NOTICE: Opening Subtitle stream: 6 source: 256
19:08:28 T:5400  NOTICE: running thread: CDVDPlayerAudio::Process()
19:08:28 T:5400  NOTICE: Creating audio device with codec id: 86020, channels: 7, sample rate: 48000, pass-through
19:08:28 T:2176  NOTICE:  fps: 23.976024, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
19:08:28 T:2176  NOTICE: Display resolution USER : 1920x1080 @ 60.00 - Full Screen #2 (13)
19:08:28 T:2176  NOTICE: D3D: rendering method forced to DXVA2 processor
19:08:29 T:5400   ERROR: CThread::staticThread : Access violation at 0x01795337: Reading location 0x14d56000
19:08:29 T:5400  NOTICE: thread end: CDVDPlayerAudio::OnExit()
19:08:37 T:2176 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available

It looks to me like the audio thread is crashing (though I know very little about the inner workings of XBMC). If I tell XBMC that TrueHD and DTS-HD are not supported, I get garbage from my system. Audio is being passed through my NVIDIA Geforce 560ti to an Onkyo HT-R990. I also tested on Eden stock RC2 on another machine, and MPC-HC and VLC on this machine and all streams played no problem.

I've uploaded a clip with the first 50MB of the file: http://avalon.yi.org/~hakuya/innocence.b...ample.m2ts
find
gregnukem Offline
Junior Member
Posts: 26
Joined: Apr 2012
Reputation: 0
Post: #1204
I've also had problems with HD codecs bit streaming (both TrueHD and DTS-HD MA). My problem was that any time I switched the audio track (e.g., to another language, stereo etc.) and then back to an HD track, I would get no sound output. What helped in that case, was if I pressed play/pause multiple times very quickly, which apparently was not the most elegant solution by any means.

So I've read this whole thread and others as well and couldn't find a fix. Finally, my solution was to set the refresh rate to 50Hz. I am not sure how this is related, but now everything works flawlessly in the HD audio domain (apart from the 24-bit audio which is a different story).

My config is as follows: i3-2105, W7 Ultimate x64, Denon 2312, Panny plasma, latest drivers for everything, WASAPI. Should somebody want a log of the bug I can switch back to 60Hz, replicate the issue and post it.

Hope that helps.
(This post was last modified: 2012-04-10 10:13 by gregnukem.)
find
Ghostdivision Offline
Posting Freak
Posts: 751
Joined: Jan 2012
Reputation: 0
Post: #1205
Out of curiosity is this going to be included in official xbmc builds anytime soon?
find
gregnukem Offline
Junior Member
Posts: 26
Joined: Apr 2012
Reputation: 0
Post: #1206
(2012-04-10 13:42)Ghostdivision Wrote:  Out of curiosity is this going to be included in official xbmc builds anytime soon?

Being currently available only for Windows, AFAIK, it is unlikely. For now...
find
disco277 Offline
Junior Member
Posts: 9
Joined: Mar 2010
Reputation: 0
Post: #1207
Just to chime in... I'm also having problems with final, but works great with RC2.

TrueHD seems to work actually, but DTS-MA (Lord of the Rings, Avatar) both cut out and video is very sluggish.

Onkyo TX-NR609, AMD 5450, Realtek HDMI driver. Not sure of ATI driver version (probably latest as I just rebuilt).


Onkyo TX-NR609, AMD Phenom II X6 1055t, Sapphire HD 5450, XBMC 11 RC2 with HD patch
find
bluray Offline
Posting Freak
Posts: 8,283
Joined: May 2011
Reputation: 144
Post: #1208
(2012-04-10 10:12)gregnukem Wrote:  My config is as follows: i3-2105, W7 Ultimate x64, Denon 2312, Panny plasma, latest drivers for everything, WASAPI. Should somebody want a log of the bug I can switch back to 60Hz, replicate the issue and post it.

Hope that helps.
Try these to see if it work with 60Hz.....

1. Set Denon to pass-thru video
2. Disable everything in XBMC settings/videos/playback as shown below-

[Image: sv2nhj.jpg]

>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-04-10 16:47 by bluray.)
find
serieofilo Offline
Member
Posts: 65
Joined: Sep 2011
Reputation: 0
Location: Barcelona, Spain
Post: #1209
(2012-04-09 06:48)uncola Wrote:  Hey loekf, I have the exact same receiver as you! Can you try playing my 30 second star wars clip? it's dts es and won't play for me.. I thought it was daniela's build but I'm not sure now.. my htpc is a mac mini with intel hd 3000 graphics running windows

star wars dts es http://tinyurl.com/6nxe348

Here's a dts hd master audio clip that bitstreams great for me with daniela's build

http://tinyurl.com/bmxhmqo

Hi,

Tested both in my setup (right now Eden 11 RTM + HD Patch in portable mode + Win7 x64 + ATI Catalyst 12.3). Sound send through HDMI from a Sapphire Radeon HD 6450 to the receiver Yamaha SR-301 (is the unit that comes with YST-S401 soundbar) and the two files play well. First one, showing DTS in the receiver. Second one showing DTS HD MASTR in the receiver.

I've not tuned yet my receiver nor my video/sound settings in XBMC so I don't have any experience with files longer that these ones.

I hope this helps.

Desktop & HTPC System:
Intel Core 2 Quad Q9450 @ 2.66GHz || 4 x 2GB DDR2-1066 Kingston @ 1066MHz
Sapphire HD 6450 1GB || Dell UltraSharp 2009W @ 1680x1050 (using DVI) || Philips LCD 42PFL8404H @ 1920x1080 (using HDMI through Yamaha SR-301)
Yamaha YHT-S401 (SR-301 Receiver + NS-BR301 Speaker)
Hauppauge WinTV-HVR-4000
find
Ghostdivision Offline
Posting Freak
Posts: 751
Joined: Jan 2012
Reputation: 0
Post: #1210
(2012-04-10 13:58)gregnukem Wrote:  
(2012-04-10 13:42)Ghostdivision Wrote:  Out of curiosity is this going to be included in official xbmc builds anytime soon?

Being currently available only for Windows, AFAIK, it is unlikely. For now...

Couldn't it just be included in windows builds?

When i download xbmc i have to select from linux, mac, windows ect..
find
Ghostdivision Offline
Posting Freak
Posts: 751
Joined: Jan 2012
Reputation: 0
Post: #1211
Im also getting garbled audio with the latest version of the patch if i try using analog audio? Not present when using the official build. Is this patched version just meant for bitstreamed digital audio? I do not notice it when viewing movies in my library, but only when viewing streamed content in xbmc and analog audio with this patched version. HDMI bitstreamed works fine, analog audio works fine for streaming in the official xbmc build. Very confusing.

It also only seems to occur with a mono track...

So if i switch to analog audio with this patched version, try to view streamed content, and it has a mono track, its nothing but distortion.
(This post was last modified: 2012-04-11 12:26 by Ghostdivision.)
find
abudabi Offline
Senior Member
Posts: 107
Joined: Aug 2011
Reputation: 1
Post: #1212
(2012-04-11 11:28)Ghostdivision Wrote:  Out of curiosity is this going to be included in official xbmc builds anytime soon?


Nope... this is a patch... a band aid if you want. The proper solution is AE which will be merged with master sometime soon apparently.
(This post was last modified: 2012-04-11 12:40 by abudabi.)
find
gregnukem Offline
Junior Member
Posts: 26
Joined: Apr 2012
Reputation: 0
Post: #1213
bluray,

Thanks for the recommendations. I have just tried those settings, but whenever I switch from a lossless audio track in a movie (TrueHD or DTS-HD MA) to any other sound track and then back to a lossless track, there is no sound output. If I then switch again to a lossy track the sound output resumes. Video part works flawlessly under all conditions.

Again - as soon as I switch to 50 Hz in the Intel graphics utility, everything works fine.

What I also want to know is whether there are any downsides of using 50 Hz instead of 60 Hz (aside from the "23.976 Hz issue")? I have tested 24, 23.976 and 25 Hz material and everything seems pretty smooth to me. I have not tried to catch repeated frames or be too picky, but at least I can say the playback isn't stuttered, slow/fast.
find
liquidskin76 Offline
Skilled Skinner
Posts: 1,348
Joined: Aug 2009
Reputation: 17
Location: Arkham, Gotham City
Post: #1214
(2012-04-11 14:49)gregnukem Wrote:  What I also want to know is whether there are any downsides of using 50 Hz instead of 60 Hz (aside from the "23.976 Hz issue")? I have tested 24, 23.976 and 25 Hz material and everything seems pretty smooth to me. I have not tried to catch repeated frames or be too picky, but at least I can say the playback isn't stuttered, slow/fast.

Hey gregnukem,

If you're running 50hz, you may see noticeable judder when panning on 24p (23.976) material.

Cheers

HTPC: Streacom F1C | Asus H87I-Plus ITX | Intel Core i5-4670T | Kingston HyperX SSD | Kingston DDR3 RAM
Home AV: Sony KDL-40HX723 | Sky+HD | Sony BDP-S480 BD Player | Sony STR-DH820 AV Receiver | Sony 5.1 Speaker System | Sony PS3 Slim | Logitech Harmony Touch
find
bluray Offline
Posting Freak
Posts: 8,283
Joined: May 2011
Reputation: 144
Post: #1215
(2012-04-11 14:49)gregnukem Wrote:  bluray,

I have just tried those settings, but whenever I switch from a lossless audio track in a movie (TrueHD or DTS-HD MA) to any other sound track and then back to a lossless track, there is no sound output. If I then switch again to a lossy track the sound output resumes. Video part works flawlessly under all conditions.
I'm wondering if it happen the same way with other media players (PDVD, TMT, MPC-HC, etc......

(2012-04-11 14:49)gregnukem Wrote:  Again - as soon as I switch to 50 Hz in the Intel graphics utility, everything works fine.
Have you try the latest Intel driver from here- Download Center?

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
find
Thread Closed