[1421] Seeking broken in .wav files with AC-3 or DTS [#8279]

Beta Testing for Windows Products and plugins

Moderator: Gurus

sialivi
Posts: 26
Joined: Tue Aug 09, 2011 3:18 pm

[1421] Seeking broken in .wav files with AC-3 or DTS [#8279]

Post by sialivi »

.wav files containing Dolby Digital or DTS audio plays fine, but if you try to seek the audio turns into stuttering white noise.

Test files:
Dolby Digital
DTS

I'm using wasapi, Win7 x64 SP1
MiPi
Posts: 923
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: [1421] Seeking broken in .wav files with AC-3 or DTS

Post by MiPi »

sialivi
Posts: 26
Joined: Tue Aug 09, 2011 3:18 pm

Re: [1421] Seeking broken in .wav files with AC-3 or DTS [#8

Post by sialivi »

I'm a bit confused by that ticket. It doesn't mention that the files play perfectly fine as long as you don't seek. Is this not relevant?
MiPi
Posts: 923
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: [1421] Seeking broken in .wav files with AC-3 or DTS [#8

Post by MiPi »

sialivi wrote:
I'm a bit confused by that ticket. It doesn't mention that the files play perfectly fine as long as you don't seek. Is this not relevant?
I was not able to reproduce exactly this - I can play and seek all DTSWAV files with the correct header, and cannot play any file, that has PCM flag in the header. Can you reproduce it with the linked test files? Do you have HW DTS/AC3 decoder?
sialivi
Posts: 26
Joined: Tue Aug 09, 2011 3:18 pm

Re: [1421] Seeking broken in .wav files with AC-3 or DTS [#8

Post by sialivi »

MiPi wrote: I was not able to reproduce exactly this - I can play and seek all DTSWAV files with the correct header, and cannot play any file, that has PCM flag in the header. Can you reproduce it with the linked test files? Do you have HW DTS/AC3 decoder?
I can reproduce it with the linked files.

Yes, my PC is hooked up to a DTS/AC3 capable amplifier via TOSLINK and I'm using the wasapi output plugin (exclusive mode).

When I play the linked AC3 file the Dolby Digital indicator on the receiver light up and the audio plays fine. When I seek the audio turns into white noise and the Dolby Digital indicator shuts off.

When I play the linked DTS sample file the DTS indicator on the receiver lights up and the audio plays fine. When I seek the audio disappears (or possibly extremely low volume white noise, it's hard to tell) and the DTS indicator starts turning on and off, over and over.
MiPi
Posts: 923
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: [1421] Seeking broken in .wav files with AC-3 or DTS [#8

Post by MiPi »

OK. I cannot try this (have no hw decoder), but MM plays these files as raw PCM. Amplifier probably recognizes DTS and decodes and plays it (DTS has specific start-up sequence), but it loses synchronization and plays it as PCM after seek. I think, it will be hw decoder dependent :-/
MiPi
Posts: 923
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: [1421] Seeking broken in .wav files with AC-3 or DTS [#8

Post by MiPi »

Please try to replace in_wav.dll (MM4 Plugins folder) with this experimental version, if something will change. Thanks.
sialivi
Posts: 26
Joined: Tue Aug 09, 2011 3:18 pm

Re: [1421] Seeking broken in .wav files with AC-3 or DTS [#8

Post by sialivi »

MiPi wrote:Please try to replace in_wav.dll (MM4 Plugins folder) with this experimental version, if something will change. Thanks.
Unfortunatly it made no difference.
MiPi
Posts: 923
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: [1421] Seeking broken in .wav files with AC-3 or DTS [#8

Post by MiPi »

sialivi wrote:
MiPi wrote:Please try to replace in_wav.dll (MM4 Plugins folder) with this experimental version, if something will change. Thanks.
Unfortunatly it made no difference.
I thought so. It seems, the hw decoder does not fully support AC3/DTS stored in WAV this way. There are some differences in comparsion with "normal" AC3/DTS files. They could be decoded by software decoder, but there is problem with "PCM" indicator in the header.. I think, I cannot do much with it now. :-/
sialivi
Posts: 26
Joined: Tue Aug 09, 2011 3:18 pm

Re: [1421] Seeking broken in .wav files with AC-3 or DTS [#8

Post by sialivi »

MiPi wrote:I thought so. It seems, the hw decoder does not fully support AC3/DTS stored in WAV this way. There are some differences in comparsion with "normal" AC3/DTS files. They could be decoded by software decoder, but there is problem with "PCM" indicator in the header.. I think, I cannot do much with it now. :-/
Not sure it's a hw limitation since the DTS wav files work perfectly with "Media Player Classic - HomeCinema".
MiPi
Posts: 923
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: [1421] Seeking broken in .wav files with AC-3 or DTS [#8

Post by MiPi »

sialivi wrote:Not sure it's a hw limitation since the DTS wav files work perfectly with "Media Player Classic - HomeCinema".
When playing by MPC-HC, look in menu Play - Filters. Is there AC3Filter or ffdshow audio? It should be just above Wave Parser. It is "the thing", that reads DTS/AC3 from WAV and sends correct DTS/AC3 stream from it or decoded PCM stream to output (so your decoder will handle it correctly). As I wrote in the issue, I would like to use the same method, but it won't be before MM4.1.
Last edited by MiPi on Thu Aug 25, 2011 4:06 am, edited 1 time in total.
sialivi
Posts: 26
Joined: Tue Aug 09, 2011 3:18 pm

Re: [1421] Seeking broken in .wav files with AC-3 or DTS [#8

Post by sialivi »

MiPi wrote:When playing by MPC-HC, look in menu Play - Filters. Is there AC3Filter or ffdshow audio? It should be just above Wave Parser.
I don't have AC3Filter or ffdshow installed and Wave Parser isn't listed. The only entries under Play-Filters are:
  • DirectSound:Digital Output
  • DTS Decoder
  • J:\dts_the_other_side_44khz.wav
DTS Decoder is MPC-HCs internal filter (Note: DTS .wav files are only supported since build 1.5.3.3686 and AC-3 .wav is not currently supported), and if I enter its settings both AC3 and DTS are set to SPDIF. Under Pin Info it shows the following info:
Filter : DTS Decoder - CLSID : {3D446B6F-71DE-4437-BE15-8CE47174340F}

- Connected to:

CLSID: {B4A7BE85-551D-4594-BDC7-832B09185041}
Filter: J:\dts_the_other_side_44khz.wav
Pin: Output

- Connection media type:

Audio: PCM (DTS) 44100Hz 6ch 1411kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_DTS {E06D8033-DB46-11CF-B4D1-00805F6CBBEA}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 6
nSamplesPerSec: 44100
nAvgBytesPerSec: 176400
nBlockAlign: 0
wBitsPerSample: 0
cbSize: 18 (extra bytes)

pbFormat:
0000: 01 00 06 00 44 ac 00 00 10 b1 02 00 00 00 00 00 ....D¬...±......
0010: 12 00 ..
Last edited by sialivi on Thu Aug 25, 2011 4:11 am, edited 3 times in total.
MiPi
Posts: 923
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: [1421] Seeking broken in .wav files with AC-3 or DTS [#8

Post by MiPi »

OK, this is the same with this internal filter as with Wave Parser+AC3Filter (see edited post above). Hope it will be working in MM4.1.
Post Reply