INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Playing DTS Files with AC3Filter  (Read 2020 times)

boliver

  • Regular Member
  • World Citizen
  • ***
  • Posts: 107
  • nothing more to say...
Playing DTS Files with AC3Filter
« on: August 19, 2007, 05:54:04 pm »

I read the DirectShow Guide but still don't understand how to access any of this "graph" stuff.  I downloaded AC3Filter and installed it on my XP pc using the installer for the download.  Now there is a AC3Filter directory under Program Files.  But there is no DirectShow directory under program files on my computer.  I'm sure I have latest DirectX installed.

But DTS files in MC 12 still sound like pink noise.  Where do I access this DirectShow "graph"?  I don't see anything under DSP Studio even though I do have DirectX Host installed (is that even related?)

I am confused...  Can someone please help me get DTS playback working on my system (I only have Stereo Speakers so I just want to be able to play DTS wav files without having them sound like pink noise)

Thank you in advance.

Bill
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Playing DTS Files with AC3Filter
« Reply #1 on: August 20, 2007, 04:59:29 am »

Wave files are not played through the DirectShow filter chain. They are decoded to PCM and send directly to the audio driver.

If the sound card can send unaltered PCM signal to the SPDIF output it is possible to decode the included DTS code with an external decoder. You need to have a sound card that supports ASIO and does not resample. In MC you need to use the ASIO output mode and disable all volume and other DSP adjustments. Some professional sound cards may have drivers that support bit perfect playback with other output modes too.

It may be possible to use a DirectShow filter instead of an external decoder. To make this work you need to follow the instructions on this Wiki page: http://wiki.jrmediacenter.com/index.php/DTS_WAV
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

tlum

  • Recent member
  • *
  • Posts: 8
Re: Playing DTS Files with AC3Filter
« Reply #2 on: November 18, 2007, 04:07:05 pm »

With DTS there are a few ways to go. S/PDIF pass-through, which sends the stream, untouched, out to an external decoder. Or, decode. Typically this means using a DTS codec to decode the DTS stream into PCM and send it to a multi-channel sound card.

If using S/PDIF then many of the MC features can not work! DTS (and AC3) is an encoded digital stream, and can't be mixed, without first being decoded, which MC can’t and shouldn’t do. This is not a fault of MC, it's the nature of encoded digital streams. If any of the DSP features are enabled, however, then MC does a very bad thing, it treats the encoded digital stream as if it were PCM and sends it to the output... duh! To make S/PDIF pass-through work you MUST disable DSP features and realize that visualizations will not work either. Also, you must disable things like cross-fades between songs... MC cannot mix DTS or AC3 streams, but it will try and bad things WILL happen. Unfortunately, you need to KNOW WHAT YOU ARE DOING. MC will do totally invalid things, completely without warning, if you tell it to!

Even if you get all of this right there is still another problem. It is quite possible, and useful, to have multiple codecs (of a given type) on your system. If you’re like me, you do, and you have built graphs that you pass to your other applications so that each one uses the correct graph. However, I have yet to find a way to pass MC a graph, so it simply relies on the OS and uses whatever default graph it gets based on codec merit.

I am here today because of this very fact. While I had AC3 and DTS working fine for a few months, it is now completely broken and MC does nothing but throw exceptions. I am certain this is because additional codecs have been added to the system to deal with additional media types, which has changed the order of precedence. Beware of this when accepting advice from others. Because of the variations in codecs on each system, and possible tweaks to their merits, what works for one person could not work for someone else, and you can waste A LOT of time following advise on SEEMINGLY identical systems. Its not a matter of just having the right codec, its also a matter of not having incorrect ones that have higher merit and that get picked first.

I was hoping to see that MC now had the ability to correctly handle DTS and AC3 but it looks like its still an afterthought that can only work if you can afford to dedicate hardware to it and install only the codecs needed to make it work. This is completely impractical! This is disappointing and actually very surprising that such a sophisticated application is so unsophisticated when it comes to something so germane to proper operation of audio streams. You can’t just close your eyes and pray the OS will give you something useful… and do so consistently!
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Playing DTS Files with AC3Filter
« Reply #3 on: November 18, 2007, 04:39:51 pm »

As said, pass-through of DTS wave files needs a bit-perfect audio setup. No DSP can be used. In my experience, also a "better" non-resampling sound card with an ASIO driver is needed to make this work.

For any AC3 and DTS files a usable workaround is to use Matroska containers in video mode.

I have explained that in this post (and thread):

As I said before, the wave file does not go through the DirectShow filter chain because MC has its own wave decoder. MC is capable of bit perfect PCM playback so it is up to the OS level drivers and the sound card to provide unaltered SPDIF output.

Alternatively, the DTS wave files can be wrapped in Matroska containers for forcing them go through the DS filter chain.

As a test, I wrapped your sample files in Matroska containers with mkvmerge GUI. The files work work fine on XP. Would you mind trying them on Vista? I uploaded the files here: http://rapidshare.com/files/63354983/mkv.zip

The file extensions were first .mka, but because I wanted to access the DS filter list I changed the extensions to .mkv so that MC handles the files as video.
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755
Pages: [1]   Go Up