View Full Version : ffdshow tryout project : HD audio discussion
rica
4th January 2010, 00:26
samuri check with ffdshow 54, however dunno if it helps?
SamuriHL
4th January 2010, 00:27
That's what I was using when I first got the Pio. I upgraded thinking maybe something had changed when the merge was done, but, nope...exact same behavior.
SamuriHL
4th January 2010, 00:35
@albain: Same for a 5.1 DTS-HD MA track. The WAVEFORMATEX params are identical to the 7.1 track. I REALLY truly hope this helps. :)
rica
4th January 2010, 00:53
samuri maybe it's stupid but check your ffdshow config?
http://img145.imageshack.us/img145/6592/001ek.th.png (http://img145.imageshack.us/i/001ek.png/)
http://img145.imageshack.us/img145/3529/002h.th.png (http://img145.imageshack.us/i/002h.png/)
http://img145.imageshack.us/img145/4650/003ty.th.png (http://img145.imageshack.us/i/003ty.png/)
SamuriHL
4th January 2010, 01:03
Yea, trust me, that's what mine's set up as. I'm grabbing the latest source code and compiling it now. I have something I want to try although hopefully albain sees this tomorrow and has better ideas. I'm running out of time for tonight but I may give it a shot in the morning if albain hasn't responded yet.
Wireballz
4th January 2010, 01:10
Yea, trust me, that's what mine's set up as. I'm grabbing the latest source code and compiling it now. I have something I want to try although hopefully albain sees this tomorrow and has better ideas. I'm running out of time for tonight but I may give it a shot in the morning if albain hasn't responded yet.
If you get it to work with you idea post it please i will test :p
SamuriHL
4th January 2010, 01:12
If you get it to work with you idea post it please i will test :p
I doubt I'll get to it tonight. Having compiling issues, as well, which will take a bit to fix and I don't have time right now. Once I get my environment for building ffdshow fixed up again I'll be able to try out my idea.
Wireballz
4th January 2010, 01:14
I doubt I'll get to it tonight. Having compiling issues, as well, which will take a bit to fix and I don't have time right now. Once I get my environment for building ffdshow fixed up again I'll be able to try out my idea.
Could point me to the source code /webpage you are playing with i have vs express c++ installed :)
SamuriHL
4th January 2010, 01:50
http://ffdshow-tryout.svn.sourceforge.net/viewvc/ffdshow-tryout/branches/bitstreamHD/
Good luck. :)
Wireballz
4th January 2010, 01:58
http://ffdshow-tryout.svn.sourceforge.net/viewvc/ffdshow-tryout/branches/bitstreamHD/
Good luck. :)
Thank you Sir :)
SamuriHL
4th January 2010, 02:00
I wasn't in the mood to properly deal with my compile issues so I simply broke TrueHD support in my build for now just so I can test my idea. I'm building it now and will do a quick test to see if it works before I start watching my shows for the night. I'll report back soon.
Andy o
4th January 2010, 03:03
Hey Samuri I think you're onto something. My elaborate ploy to get you to buy a Pioneer so you'll look into our issue is working :D
rica
4th January 2010, 03:06
http://ffdshow-tryout.svn.sourceforge.net/viewvc/ffdshow-tryout/branches/bitstreamHD/
Good luck. :)
Sorry, but where is yours?
SamuriHL
4th January 2010, 03:20
Hey Samuri I think you're onto something. My elaborate ploy to get you to buy a Pioneer so you'll look into our issue is working :D
Yea, well, so far I've had ZERO success in getting this to work. I think it's most likely beyond my pathetic knowledge of this code, unfortunately. I'm hacking away at it like a surgeon with a chainsaw but we really need albain in there with a scalpel I'm afraid.
SamuriHL
4th January 2010, 03:21
Sorry, but where is yours?
Beats me. I seem to have NONE so far. sigh. :)
SamuriHL
4th January 2010, 03:51
I give up. Nothing I've tried makes it work and LOTS of things I tried break bitstreaming attempts entirely. Hopefully albain has an idea because I seriously don't.
albain
4th January 2010, 09:23
I give up. Nothing I've tried makes it work and LOTS of things I tried break bitstreaming attempts entirely. Hopefully albain has an idea because I seriously don't.
The media structure you pasted earlier looks weird : did you use your xonar or your ATI for DTS HD MA bitstream ?
For DTS HD MA you should get (similar to FFDShow) :
SubFormat = KSDATAFORMAT_SUBTYPE_IEC61937_DTS_HD (0000000b-0cea-0010-8000-00aa00389b71)
Sample rate = 192000
Channels (that may be the problem) = 8
Channels mask (that may be the problem too) = KSAUDIO_SPEAKER_7POINT1
@THX-UltraII : I don't know why you get this lip sync issue. Maybe as Madshi pointed out the clock of the renderer needs to be managed differently but I don't see how, this is beyond from my knowledge.
For MPC-HC renderer one should ask James @Slysoft how to deal with it, he will surely be able to address that kind of problem.
Sorry but I won't have time to work on this, I let it to MPC team
Andy o
4th January 2010, 09:59
Albain, Samuri is using the 5000 series, and not the Xonar. The structure he pasted earlier was from PowerDVD 9, which does work. He was speculating that if you could imitate that structure, perhaps DTS-HD MA would work with Pioneers.
albain
4th January 2010, 11:32
Albain, Samuri is using the 5000 series, and not the Xonar. The structure he pasted earlier was from PowerDVD 9, which does work. He was speculating that if you could imitate that structure, perhaps DTS-HD MA would work with Pioneers.
This structure won't work with the standard renderers : I guess that the PDVD renderer reformats them before passing them to the driver, so it won't help.
There is something I don't understand : I remembered that I've seen the official structures in some logs, but maybe I am wrong
Andy o
4th January 2010, 12:11
What can I do to get the structure WinDVD 2010 is sending? I seem to have missed that part of the early discussion.
albain
4th January 2010, 12:51
The dumper doesn't work with windvd (maybe directshow is not used).
The solution is blind testing.
I will make some test builds, I'll let you know
SamuriHL : as a new FFDShow builder, I saw that you already tried to play with some values.
Maybe you could try the following (in TsampleFormat.cpp) :
else //DTS HD
{
pWfe->nChannels=8;
if (pWfex!=NULL)
pWfex->SubFormat=KSDATAFORMAT_SUBTYPE_IEC61937_DTS_HD;
}
if (pWfex!=NULL && pWfex->dwChannelMask==0)
switch (nchannels)
{
case 8: pWfex->dwChannelMask=KSAUDIO_SPEAKER_7POINT1;break;
case 6: pWfex->dwChannelMask=KSAUDIO_SPEAKER_5POINT1;break;
}
//Test 1
//pWfex->dwChannelMask=0;
//Test 2
//pWfex->dwChannelMask=KSAUDIO_SPEAKER_7POINT1_SURROUND;
//Test 3
//pWfex->dwChannelMask=KSAUDIO_SPEAKER_7POINT1_WIDE;
SamuriHL
4th January 2010, 12:52
You know, it didn't even occur to me to attach to WinDVD. sigh. :) I'll go try it and attach what I find. Give me a few minutes...it's super early for me.
SamuriHL
4th January 2010, 12:54
Yea, I tried all of what you posted and WAY more. Nothing worked.
EDIT: Actually, I didn't try all of those. I'll work on that now that I'm up.
SamuriHL
4th January 2010, 13:00
P.S. You were right about WinDVD...can't attach to the graph. Awesome. :(
SamuriHL
4th January 2010, 13:06
Just tried all those. None of those values changed the situation. Still bouncing between PCM and DTS-HD MA with no audio.
SamuriHL
4th January 2010, 13:16
albain, how do I change the number of channels? Whenever I set this:
else //DTS HD
{
pWfe->nChannels=2;
if (pWfex!=NULL)
pWfex->SubFormat=KSDATAFORMAT_SUBTYPE_IEC61937_DTS_HD;
}
if (pWfex!=NULL && pWfex->dwChannelMask==0)
switch (nchannels)
{
case 8: pWfex->dwChannelMask=KSAUDIO_SPEAKER_7POINT1;break;
case 6: pWfex->dwChannelMask=KSAUDIO_SPEAKER_5POINT1;break;
}
it breaks bitstreaming completely and I get PCM decoding of the core DTS track. I have a feeling the problem is number of channels but I don't understand the code enough to make that change work.
albain
4th January 2010, 16:13
The black part I sent you is the original code (starting at line 348 of TsampleFormat.cpp)
The modifications have to be applied (the one I pointed out in red) after this block :
if (pWfex!=NULL && pWfex->dwChannelMask==0)
switch (nchannels)
{
case 8: pWfex->dwChannelMask=KSAUDIO_SPEAKER_7POINT1;break;
case 6: pWfex->dwChannelMask=KSAUDIO_SPEAKER_5POINT1;break;
}
You add this :
pWfex->dwChannelMask=<different values>;
This will be applied to all bitstream formats and will break TrueHD/EAC3 but this is for testing
Then, still after this block you can play with the number of channels :
pWfe->nChannels=<8 or 6 or 4 or 2>;
But I doubt this will change anything, I'd rather think this is due to the channel mask.
SamuriHL
4th January 2010, 16:33
Yea, I added the code correctly that you gave and tried each one out and none of them worked. When I tried changing the nChannels to 2 (see my post above) it broke bitstreaming completely and went to PCM decoding of DTS core.
(This is also what I did last night for my own testing. I tried messing with a LOT of different parameter combinations to see if I could get it to work....a lot of them broke bitstreaming and defaulted to PCM decoding, and others had no affect at all)
SamuriHL
4th January 2010, 16:35
albain, how do I change the number of channels? Whenever I set this:
else //DTS HD
{
pWfe->nChannels=2;
if (pWfex!=NULL)
pWfex->SubFormat=KSDATAFORMAT_SUBTYPE_IEC61937_DTS_HD;
}
if (pWfex!=NULL && pWfex->dwChannelMask==0)
switch (nchannels)
{
case 8: pWfex->dwChannelMask=KSAUDIO_SPEAKER_7POINT1;break;
case 6: pWfex->dwChannelMask=KSAUDIO_SPEAKER_5POINT1;break;
}
it breaks bitstreaming completely and I get PCM decoding of the core DTS track. I have a feeling the problem is number of channels but I don't understand the code enough to make that change work.
The bold I added to the above code block didn't show. That's why you missed what I was saying I changed. In that code block I set the nChannels to 2, but, that breaks bitstreaming.
albain
4th January 2010, 17:07
Well, this is getting harder, I am lacking of ideas.
Also I rechecked and PDVD sends encrypted streams wether it is an auzentech or an ATI card.
So the decryption occurs in the renderer I guess (at least for the ATI) but in all case these are internal media types that are sent from the PDVD decoder to the PDVD renderer.
From the dumper logs I hoped to see an IsFormatSupported trace with the DTS-HD subtype in it (0000000b-0cea-0010-8000-00aa00389b71) but I didn't.
SamuriHL
4th January 2010, 17:12
That's not good. I also really have no ideas left. I tried all the things I could think of last night and nothing worked. At this point I'm not sure what else we can do. This sucks.
albain
4th January 2010, 17:32
And DTS-HD HR is working ?
Can someone with a xonar + Pioneer receiver try to play totalMedia theatre with a DTS-HD MA track ?
As FFDShow is isoTMT, if TMT doesn't work then it means that the problem comes from the bitstream.
SamuriHL
4th January 2010, 17:33
I don't have a DTS-HD HR track to test with. And God help us all if I have to put my damn Xonar back in to test TMT3! :p I'll consider it.
Sebastiii
4th January 2010, 17:52
Hi,
I have DTS-HR sample and it didn't work with ATI and Xonar form my test that i made for a while.
I'll make test this evening with xonar and TMT and try PDVP with ATI and repost log to see what happen :)
@Albain, the log that i made with dumptool for LPCM before PDVD crash is it usefull ?
If yes i hope that it will be usefull for DTS-HD DTS-HR :)
But i didn't Pio AVR lol :)
Thx,
Seb.
SamuriHL
4th January 2010, 17:56
I just put my Xonar back in (damn you all! :D) and it bitstreams DTS-HD MA just fine through TMT3. I can't get ANY bitstreaming to work with it from the ffdshow that albain just posted in the development thread. Can someone with it working on a Xonar give me a quick refresher on how to set it up properly? ffdshow settings/renderer used, etc? I tried MPC Audio Renderer and ArcSoft renderer and neither work for TrueHD or DTS-HD MA for me. I have ffdshow set to try Xonar only.
SamuriHL
4th January 2010, 18:00
I just got a confirmed report on AVSForum that a non-Pio user is getting the exact same problem with DTS-HD MA on his D2v Anthem Statement receiver. DTS-HD MA flashes, but, no audio.
kkozma
4th January 2010, 18:08
Someone else mentioned it also happened with a 4000 series card. Is it only one person? Cause if somehow their problem is not the same, then we can isolate this better.
I can tell you I have 100% perfect DD and DTS playback streamed to my onkyo 605 from my 4550. No dropouts what so ever using 9.11 and 9.12 in XP. I also finally upgraded to win7 (32 bit if it matters) and I have the same flawless playback with 9.12 and Realtek 2.39. Doesn't matter if dxva is on or off.
I did switch back to internal decoding though because I can't normalize the DD when watching live tv... I got tired of getting blasted out of my recliner when a commercial came on! lol
Wireballz
4th January 2010, 18:13
I just got a confirmed report on AVSForum that a non-Pio user is getting the exact same problem with DTS-HD MA on his D2v Anthem Statement receiver. DTS-HD MA flashes, but, no audio.
I think it uses the same Processer/DSP as Pioneer's. So there is a problem some how. :( I will hook up to my onkyo and see what the receiver says as far as fs:.
SamuriHL
4th January 2010, 18:27
Someone just reported the same issue on a Yamaha 6190 = v1800, as well. Is that also using the same?? This seems a bit more wide spread than I originally believed.
SamuriHL
4th January 2010, 18:28
I think it uses the same Processer/DSP as Pioneer's. So there is a problem some how. :( I will hook up to my onkyo and see what the receiver says as far as fs:.
The Onkyo will work fine. Trust me. :)
albain
4th January 2010, 18:28
That's odd :
TMT3 + xonar + DTS-HDMA => sound
FFDShow in xonar mode + arcsoft renderer + DTS-HDMA => no sound
It shouldn't be as the bitstream are identical and so are the media types.
We are close to something.
SamuriHL, could you make dumper logs (not debugview logs) of those 2 configurations with the exact same audio sample ?
Maybe the timestamps are in cause
Wireballz
4th January 2010, 18:30
The Onkyo will work fine. Trust me. :)
Yeah i know but to see what is locking at :) I will report back soon.:p
SamuriHL
4th January 2010, 18:32
That's odd :
TMT3 + xonar + DTS-HDMA => sound
FFDShow in xonar mode + arcsoft renderer + DTS-HDMA => no sound
It shouldn't be as the bitstream are identical and so are the media types.
We are close to something.
SamuriHL, could you make dumper logs (not debugview logs) of those 2 configurations with the exact same audio sample ?
Maybe the timestamps are in cause
I can't. I'm on 64 bit so the dumper won't work for me. And I have way too much installed on that machine to switch it to 32 bit at this point. Is there any other way I can help on this?
SamuriHL
4th January 2010, 18:41
For the Xonar, do I need that Connect as PCM first thing checked? I tried both ways, same result. ffdshow claims it's bitstreaming, but, the receiver gets nothing. This happens on both TrueHD and DTS-HD MA.
SamuriHL
4th January 2010, 19:06
Xonar, W7 64, DTS-HD MA 7.1 track...
TMT3:
wFormatTag: 577
nChannels: 8
nSamplesPerSec: 192000
nAvgBytesPerSec: 3072000
nBlockAlign: 16
wBitsPerSample: 16
cbSize: 0
ffdshow:
wFormatTag: 65534
nChannels: 6
nSamplesPerSec: 48000
nAvgBytesPerSec: 576000
nBlockAlign: 12
wBitsPerSample: 16
cbSize: 22
wSamplesPerBlock: 16
dwChannelMask: 63
TMT3 works, ffdshow no audio and doesn't even show DTS-HD MA on the receiver. Does this help at all?
albain
4th January 2010, 19:10
Are you sure about ffdshow structure ? Because this is not this one that is supposed to be transmitted (actually this is the default one but it is changed later) but the same as TMT3 if you checked xonar mode.
SamuriHL
4th January 2010, 19:13
Are you sure about ffdshow structure ? Because this is not this one that is supposed to be transmitted (actually this is the default one but it is changed later) but the same as TMT3 if you checked xonar mode.
Beats me man. :) I only work here. LOL! Um, yea, that's what I get when I set ffdshow to "Only Xonar formats" with the "Connect as PCM first" checkbox checked. I have MPC-HC set to use the ArcSoft audio renderer. What am I missing?
albain
4th January 2010, 20:35
Beats me man. :) I only work here. LOL! Um, yea, that's what I get when I set ffdshow to "Only Xonar formats" with the "Connect as PCM first" checkbox checked. I have MPC-HC set to use the ArcSoft audio renderer. What am I missing?
Could you send me debugview logs then ? :thanks:
I'll take a look tomorrow
SamuriHL
4th January 2010, 20:35
Could you send me debugview logs then ? :thanks:
I'll take a look tomorrow
Yup. I'll post them up in a couple hours.
mikelebron
4th January 2010, 20:39
http://www.avsforum.com/avs-vb/showthread.php?p=17846687&posted=1#post17846687
Intel Clarksdale seems to bitstream DTS-MA (FFDSHOW)... maybe you guys can get traces from that implementation
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.