Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th December 2009, 23:48   #1  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
ffdshow tryout project : HD audio discussion

LAST EDIT : 01/02/2010

Hi,

we now have on FFDShow Tryout a fully functional HD audio bitstream to the HDMI output of your sound/graphic adapter.

What is bitstream :
first there are compressed formats (MP3, MP2, AC3,DTS) and uncompressed formats (PCM, LPCM).

Among those compressed formats there are the new high definition audio formats : Dolby True HD, DTS-HD HR (High Res), DTS-HD MA (Master Audio, the best format)
There is also Dolby Digital Plus which is an improvement of Dolby Digital but less good than Dolby TrueHD
Lastly, Dolby TrueHD and DTS-HD MA are considered as lossless quality, which means that once uncompressed the quality is even as if they were not compressed at all

Compressed formats need to be decoded before sending them to your receiver or speakers.

However, it is possible to let the stream go compressed and send it to your receiver so that it takes in charge the decoding.
This was the case for AC3 and DTS : it is called SPDIF (going through a numeric opticial or coaxial output)

Now, new HD audio formats such as Dolby True HD, Dolby Digital Plus and DTS-HD (High Resolution or Master Audio) can also be sent compressed to the receiver.
This is called bitstream.
A HDMI output is required to do that (SPDIF has not a sufficient bandwidth).

This is interesting as receivers can be considered as better decoders than software decoders and furthermore there is no existing free DTS HD software decoder yet.

What has been done on FFDShow Tryout :
- bitstream support for TrueHD, DTS-HD (HR & MA) using the new radeon 5xxx series on Vista and Windows 7 (32 & 64 bits). Depending on the OS and the format, some audio renderers may not work. Try several : directsound, waveout and MPC renderer
- TrueHD, DTS HD and Dolby Digital Plus bistream are working on the xonar (Vista and Windows 7). waveout and Arcsoft renderer work well.

What needs to be fixed or improved :
- Dolby Digital Plus bitstream on ATI 5xxx : this is likely due to a driver issue (ATI drivers don't support DD+ yet)
- auzentech : no HD bitstream support because the streams are encrypted by the software (powerdvd) to the audio driver. Ask Auzentech to bring support for third party players
- LPCM support to be added (on 24 bits sampling at 48000/96000/192000 Hz, LPCM 16 bits is already supported)

The HD audio bitstream is now integrated to FFDShow Tryout daily builds and the bugs have been fixed since revision 3241

Supported (and tested) hardware This list may grow up in the future
- ATI Radeon 5xxx series
- Asus Xonar
- Intel clarksdale


Setup :
- Install FFDShow Tryout revision 3241 or greater, 32 or 64 bits
- On Vista : you will need the MPC audio renderer. It is very recent and in early stage but it is functional.
- On windows 7 : default directsound renderer should work on most bistream formats. Otherwise use the waveout renderer or MPC renderer
- If you have a xonar : won't work with directsound renderer, the best is to use the the arcsoft renderer (on a dos window in administrator mode : regsvr32 (total media path)\codecs\asrenderer.dll). Otherwise try the waveout or MPC renderer (don't know if they will work)
- Player software :
1/MPC-HC : you will have to grab a very recent version of MPC-HC (revision 1413 or greater). If you don't have the right version the MPC mpeg splitter will break the DTS HD streams and the MPC renderer won't work
2/Other directshow players (WMP,...) : you will need MPC-HC *recent* standalone filters (revision 1413 or greater). Just register MPC audio renderer and MPC mpeg splitter. For MKV Haali media splitter should work too


Status for ATI 5xxx series owners
There are 2 know issues with ATI 5xxx :
- Audio dropouts that occur every few seconds : this issue is not caused by FFDShow and it occur on any software player without hardware acceleration (no DXVA, or called software decoding). Please post a ticket to AMD support for this
- The receiver that aren't caught up by the radeon : also a driver bug, there is a workaround for this, called "tulli's override", the person who found this hack (see below)

(with-if needed- or without tulli's override monitor driver)

- Windows Seven:
Just with Ati 9.12 hotfix drivers:
DTSHD: no problem with PDVD9 and MPC-HC (ffdshow 54+ MPC Audio Renderer)
THD: No problem with PDVD9 and the best renderer is Ati HDMI Output for MPC-HC (with ffdshow 54)

Realtek 239 over 12 hotfix:
Both HD formats may use Default DirectSound Device.

- Windows Vista:
ffdshow HD bitstreaming only works with Ati 9.12 hotfix drivers by alone using MPC HC Audio renderer on Vista; Realtek 239 doesn't work.
While PDVD9 can work even Realtek 239 is loaded over 9.12 hotfix.

Last edited by albain; 1st February 2010 at 21:35. Reason: Results updated
albain is offline   Reply With Quote
Old 4th December 2009, 23:59   #2  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
Quote:
Originally Posted by albain View Post
Thanks SamuriHL for all your efforts

This is a big problem when you can't reproduce the crash in debug mode. Have you tried to run it without vs debugging into ?
I mean there are 2 ways to debug : either attach to the process and run it, or let the player run without visual studio and when it will crash it will ask you if you want to debug

Last resort is to add DPRINTF but this is very difficult to narrow the problem down. I will perform some deeper analysis of the code, but I need a max of info

Could you send me logs whith working and "crashing" samples in that case ?

Otherwise I have opened a new thread for HD audio bitstream.

We have taken this one into hostage enough

http://forum.doom9.org/showthread.ph...75#post1349575
Ok, let's just continue our discussion here.

Yea, I tried opening it up in debug after the fact, but, the processes have all terminated and I don't have a debug version of MPC-HC. (Nor do I really wanna go down that path.) Let me get back to a debug version, but, the timings on that version are all messed up. It runs in VERY slow motion. And in debug it didn't crash regardless of what I tried. Um, I can definitely provide you with logs but I don't think they're going to be useful.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 5th December 2009, 00:06   #3  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
You don't need a debug version of MPC actually.

You're saying that with debug build you never get crash whatever vs is attached or not ?

This is normal that it is running slow, with dropouts and so on

you can disable allowDPRINTF (to 0 in registry) to improve performances and maybe get closer to a crash situation

Last edited by albain; 5th December 2009 at 00:09.
albain is offline   Reply With Quote
Old 5th December 2009, 00:13   #4  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
I'm saying that when I allow MPC to crash and it gives me the option to debug, it brings me into studio and shows me that all processes are already terminated and never shows me where the crash happened. Is the thing multi-threaded? Maybe the threads are ending before we get the option to debug. I'm not sure. I've not had to deal with this kind of thing before. In any case, I'm off for the rest of the evening. I will DEFINITELY look into this more tomorrow. I will figure something out for us, don't worry.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 5th December 2009, 00:22   #5  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
No problem. Actually I am impressed that you set up ffdshow compilation so quickly, I spent much more time at first

Normally when a program crash this is a just in time debugging : you get exactly where it crashed in the callstack. There are several threads but vs will debug all of them (like in eclipse you can switch from one thread to another and get its call stack).
This issue you get is typical to Mpc : when you debug with it, MPC Will continue to play the video so you'd better have a long video

. Maybe it will be easier with graphstudio (if you get crashes with it too).

Edit: there is something you can get, which is the reason of the crash that is displayed in visual studio debug window even if you compiled in release mode

Thanks again. I will do a break too, it is 0:23 am in Paris ;-)

Last edited by albain; 5th December 2009 at 00:28.
albain is offline   Reply With Quote
Old 5th December 2009, 01:04   #6  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
The headline must have been "HD audio bitstreaming over ffdshow tryouts."
Headline "HD audio discussion" is unsuffucient to me.

Last edited by rica; 5th December 2009 at 02:15.
rica is offline   Reply With Quote
Old 5th December 2009, 02:59   #7  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
Quote:
Originally Posted by albain View Post
No problem. Actually I am impressed that you set up ffdshow compilation so quickly, I spent much more time at first
I thought it took longer than it should have, but, there were a bunch of unknowns involved. I didn't know I needed yasm, boost, and I had trouble finding where the damn library import stuff was in VS 2008. Then I had compile problems...I commented out the stuff that was breaking. LOL. In any case, now that I have it set up, I can probably work on building us a 64 bit version at some point.

Quote:
Normally when a program crash this is a just in time debugging : you get exactly where it crashed in the callstack. There are several threads but vs will debug all of them (like in eclipse you can switch from one thread to another and get its call stack).
This issue you get is typical to Mpc : when you debug with it, MPC Will continue to play the video so you'd better have a long video

. Maybe it will be easier with graphstudio (if you get crashes with it too).

Edit: there is something you can get, which is the reason of the crash that is displayed in visual studio debug window even if you compiled in release mode

Thanks again. I will do a break too, it is 0:23 am in Paris ;-)
Hmm, graphstudio is a thought. And yea, I always thought it should break into the stack trace even if the threads ended. It didn't which was annoying. I'll play with this more in the morning. We just got back from dinner and are going to watch some shows. Paris, eh? VERY nice. I've always wanted to go some day. Enjoy! I'll work on this tomorrow.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 5th December 2009, 00:15   #8  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
OH, right, I forgot. Debug version of ffdshow simply works. So I can't use the debug version to repro this problem. ARGH! This has GOT to be some weird timing bug. Almost guaranteed.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 5th December 2009, 01:17   #9  |  Link
rica
Registered User
 
Join Date: Mar 2008
Posts: 2,021
Quote:
Originally Posted by albain View Post
Hi,

This is interesting as receivers can be considered as better decoders than software decoders and furthermore there is no existing DTS HD software decoder yet
I think you meant there is no existing free DTS HD software decoder yet.

Last edited by rica; 5th December 2009 at 02:17.
rica is offline   Reply With Quote
Old 5th December 2009, 01:17   #10  |  Link
Skinleech
A.K.A Mangoat
 
Join Date: Nov 2002
Posts: 203
Oh, one thing I meant to add to my post regarding beta 46 was that I still cannot bitstream HD codecs if standard lossy formats are set to bitstream in the audio config. As soon as I uncheck Dolby Digital and DTS it's fine.

Will try my local files tomorrow and report back playabck issues, if any. Will take logs of the problematic files.
Skinleech is offline   Reply With Quote
Old 5th December 2009, 10:09   #11  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
Quote:
Originally Posted by Skinleech View Post
Oh, one thing I meant to add to my post regarding beta 46 was that I still cannot bitstream HD codecs if standard lossy formats are set to bitstream in the audio config. As soon as I uncheck Dolby Digital and DTS it's fine.

Will try my local files tomorrow and report back playabck issues, if any. Will take logs of the problematic files.
Could you post logs when AC3/DTS are checked ?

Thanks


Quote:
Originally Posted by SamuriHL View Post
@albain

When you get a chance, look at this log:

http://pastebin.com/pastebin.php?dl=d154c01eb

DTS-HD MA, 96000, 8 channel

It plays in ATI DS, but, regular default DS crashes instantly without even logging anything to debugview. And ONLY this one m2ts. It's about 30 seconds long. The others all appear to play fine on the disc.
The logs seem to be okay
albain is offline   Reply With Quote
Old 5th December 2009, 10:13   #12  |  Link
G_M_C
Registered User
 
Join Date: Feb 2006
Posts: 1,076
Hi,

Its a long time that i've had time to work and test new stuff (my gf moved in here).

Can you make short how-to, on what i need to update/setup and wht settings i have to make/change to get bitstreaming working with MPC-HT & my Xonar Slim ?
G_M_C is offline   Reply With Quote
Old 5th December 2009, 10:39   #13  |  Link
Skinleech
A.K.A Mangoat
 
Join Date: Nov 2002
Posts: 203
Quote:
Originally Posted by G_M_C View Post
Hi,

Its a long time that i've had time to work and test new stuff (my gf moved in here).

Can you make short how-to, on what i need to update/setup and wht settings i have to make/change to get bitstreaming working with MPC-HT & my Xonar Slim ?
http://forum.doom9.org/showpost.php?...postcount=9617

That is what most of us are using. You need to use the Arcsoft renderer if you have a Xonar. 2 further things to note is that Ffdshow is now onto beta 46, and that if you do check all passthrough options it may not work - if you have issues, uncheck AC3 and DTS and try again. I can't get it working if AC3 and DTS are checked, but it does work after that.
Skinleech is offline   Reply With Quote
Old 5th December 2009, 10:52   #14  |  Link
albain
Media Control author
 
Join Date: Dec 2006
Location: Paris
Posts: 1,014
Quote:
Originally Posted by Skinleech View Post
http://forum.doom9.org/showpost.php?...postcount=9617

That is what most of us are using. You need to use the Arcsoft renderer if you have a Xonar. 2 further things to note is that Ffdshow is now onto beta 46, and that if you do check all passthrough options it may not work - if you have issues, uncheck AC3 and DTS and try again. I can't get it working if AC3 and DTS are checked, but it does work after that.
I would like to fix that. Can you post me logs with AC3 checked ? Thanks

Also another question : the xonar won't work with anything else than the arcsoft renderer ?
Could you send me logs while trying to connect & play ffdshow to mpc audio renderer or directsound with a THD sample ?

I will be out for a couple of hours then I will work on ffdshow : EAC3 support, help to SamuriHL for debugging, DTSHD support for the xonar, and LPCM if I have time

Last edited by albain; 5th December 2009 at 10:54.
albain is offline   Reply With Quote
Old 5th December 2009, 15:47   #15  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
Quote:
Originally Posted by albain View Post

The logs seem to be okay
That's what I'm afraid of. I may have to go the old fashioned route, but, the fact that nothing shows up in the debug trace in dbgview indicates that it's not getting very far at all.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 26th December 2009, 17:48   #16  |  Link
GaBBa-Gandalf
Registered User
 
Join Date: Nov 2009
Posts: 23
Hi guys...

I just put an ATi 5850 card in my htpc....

Unfortunately bitstreaming doestn't work yet...

Installed:
ATI driver 9.12
MPC-HC 1.3.1448
ffdshow tryout 3164
PowerDVD 9 + last update
Windows Vista

=> BluRay @ PowerDVD 9 = no HD light at the avr
=> Testfile TrueHD @ MPC-HC = Multi In an no HD light

which settings i need in ffdshow audio?
GaBBa-Gandalf is offline   Reply With Quote
Old 23rd February 2011, 16:18   #17  |  Link
roeic
Registered User
 
Join Date: Dec 2009
Posts: 5
Help with setting up Vista Media Player/Media Center

Hi,

After much time I have finally managed to bitstream Dolby True HD and DTS MA HD via Xunar HDAV (Old Driver 6.12.8.1764 ) to my Onkyo TSRX606 reciever via MPC-HC (latest version avaivable) !!!.
I was so glad that I immediately tried to make it work with VMC/VMP (on Vista 32bit OS), however after many tries I have sadly failed.
What I did notice is that somehow MPC-HC force ffdshow-audio to "out" "Dolby AC3 SPDIF" where in regular rendering in graphstudio (or VMP) the "out" keep it as DVD LPCM. Attached pics of the graphs of both mpc-hc and rendering-graphstudio and the screenshots of ffdshow-audio "out" properites.

can anyone explain how MPC-HC force it like this ???

Any advice on how to make it work in VMC/VMP ???


Appriacte any help thx Roei.
Attached Images
     
roeic is offline   Reply With Quote
Old 6th March 2011, 23:12   #18  |  Link
tiben20
Registered User
 
Join Date: May 2009
Posts: 9
Quote:
Originally Posted by roeic View Post
Hi,

After much time I have finally managed to bitstream Dolby True HD and DTS MA HD via Xunar HDAV (Old Driver 6.12.8.1764 ) to my Onkyo TSRX606 reciever via MPC-HC (latest version avaivable) !!!.
I was so glad that I immediately tried to make it work with VMC/VMP (on Vista 32bit OS), however after many tries I have sadly failed.
What I did notice is that somehow MPC-HC force ffdshow-audio to "out" "Dolby AC3 SPDIF" where in regular rendering in graphstudio (or VMP) the "out" keep it as DVD LPCM. Attached pics of the graphs of both mpc-hc and rendering-graphstudio and the screenshots of ffdshow-audio "out" properites.

can anyone explain how MPC-HC force it like this ???

Any advice on how to make it work in VMC/VMP ???


Appriacte any help thx Roei.
you can do that by going in ffdshow config in the output section
in "Output format for uncompressed or decoded streams"
check only 16bit LPCM
I just tested and its connecting like what you wanted in your print screen
tiben20 is offline   Reply With Quote
Old 7th March 2011, 10:04   #19  |  Link
roeic
Registered User
 
Join Date: Dec 2009
Posts: 5
Hi,

Thanks for the advise.

I also manage to achieve it last night after removing all startup services from "msconfig". (The configuration you stated is the only one that works with MPC-HC and so I have been using only it ever since I started testing)
But the problem still exist in Windows Vista Media Player / Media Center (32bit), probably because these lousy apps uses "DirectSound Audio Renderer".

I have tried to replace the CLSID of:

Defualt DirectSound Device
Defualt MidiOut Device
Defualt WaveOut Device
Digital Output (ASUS Xonar HDAV 1.3
DirectSound: Digital Output (ASUS Xonar HDAV 1.3

to the CLSID of ASAudioRenderer.dll (Arcsoft Renderer) and succedd in the replacement ! (now Gspot shows ASAudioRenderer.dll instead of Quartz.dll in the proper devices)
BUT Vista Media Player/Media Center still not sending bitstream to the reciever but only PCM 5.1 with noieses (for Dolby TrueHD) or SPDIF with no sound (for DTS-MA HD).
These apps probably (I assume) load Quartz.dll directly instead of relying on the registry information.

Do you or anyone know on how to Bitstream in Vista MP/MC BUT on the XONAR card ???

Anyone have an idea on how to force Visat MP/MC to use Arcsoft Audio Renderer rather than default DirectSound Renderer (Assumable Quartz.dll) ????

I have no more ideas ?? any advise is appreciated

Thx
roeic is offline   Reply With Quote
Old 5th December 2009, 01:48   #20  |  Link
sub24ox7
Audiophile
 
sub24ox7's Avatar
 
Join Date: May 2009
Location: United States of America
Posts: 58
New results from my testing. Success with xonar, mpc-hc,ffdshow,arcsoft renderer through and through with dts-hd from a mkv container no problems and i can skip anywhere in the movie and the dts-hd picks right back up as it should. I remember someone else had success with a mkv container. I am going to try true-hd from a mkv container and see if it works and that the true-hd can not dropout completely after skipping ahead or behind as it does from a m2ts container. It is truly odd that the same movie with dts-hd in a m2ts container crashes mpc-hc and not in a mkv container. Is it possibly the splitter?

Also remember the app crash log from mpc-hc i sent you Samirhl, well vista thinks its ffdshow.ax that is crashing mpc-hc, well anyway that is probably what your debugging anyway and good luck with it.

Cheers,
Sub24ox7

Last edited by sub24ox7; 5th December 2009 at 01:56.
sub24ox7 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:21.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.