View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
madshi
1st May 2011, 09:21
Don't remember any playback probs here at all, of course after an eac3to -> MKV remux.
Kaotech
1st May 2011, 09:24
Andy o
Sample file : MA audio 7.1 @ 24/96Khz and core audio @ 24/48Khz http://www.avsforum.com/avs-vb/showthread.php?t=1330124
Try this : http://www.avsforum.com/avs-vb/showthread.php?p=19370583#post19370583
Andy o
1st May 2011, 09:35
Thanks, I got a demo DTS blu-ray though, but I'm having the trouble with a DTS-HD MA 2.0 disc. If I remux to mkv then I get different results. If the DTS-HD MA 2.0 is the only track, the Arcsoft decoder loads and everything is seemingly fine, though I'm muxing another one with several tracks to check again.
nevcairiel
1st May 2011, 09:42
btw, if there are multiple tracks, LAV Splitter will always try to pre-select the one with the most channels, as i consider more channels = more better.
Andy o
1st May 2011, 09:43
OK, so with mkv it's apparently working fine. If I open the m2ts then I get the PDVD8 decoder in addition to the Arcsoft one, and silence. I tried the dll from TMT5 too.
Nev, which bugs did the TMT5 decoder addressed compared to the one in TMT3? So far I can't tell a difference.
nevcairiel
1st May 2011, 09:45
Can you post the output media types of LAV Splitter Audio Pin for both MKV and m2ts for comparison?
Andy o
1st May 2011, 09:45
btw, if there are multiple tracks, LAV Splitter will always try to pre-select the one with the most channels, as i consider more channels = more better.
With the mkv, it does select the 2.0 MA track as default, where there is a 5.1 DD track (last one).
nevcairiel
1st May 2011, 09:46
With the mkv, it does select the 2.0 MA track as default, where there is a 5.1 DD track (last one).
well it would do that if its constrained by your preferred languages, or the MKV has a default flag on the 2.0 track.
Andy o
1st May 2011, 09:54
Holy crap must be the coffee. My mistake, it wasn't using LAVF for the m2ts. With the m2ts, it does select the 5.1 DD track first, as you say, but not with the mkv. Maybe makeMKV sets the first track as default.
So I'm back at square one. My receiver probably doesn't decode DTS-HD MA 2.0.
nevcairiel
1st May 2011, 09:59
Maybe makeMKV sets the first track as default.
There would be a "[default]" after the stream name/codec info in the stream selector if it does.
Kaotech
1st May 2011, 10:37
http://www7.pic-upload.de/thumb/01.05.11/qipj2t7pi8n.png (http://www.pic-upload.de/view-9796545/Audio.png.html)
Nev
It's possible to class all audio 5.1 in first and the stereo in last ?
nevcairiel
1st May 2011, 10:38
Reordering them is more complicated then one might think - now they directly correspond to the stream index that ffmpeg assigns them. So, not really planned to change the order.
Please ask clsid to add support for LAV CUVID and LAV Splitter/Audio in his Win7DSFilterTweaker. Many thanks!
nevcairiel
1st May 2011, 16:51
Status on Bitstreaming:
AC3 works, E-AC3 works, TrueHD works, DTS works (even core DTS out of DTS-HD) -- just DTS-HD missing, i need to invent some smart way to detect DTS-HD, so i can switch the mode.
FWIW, E-AC3 never worked for me with ffdshow, so i guess this is good.
PS:
Everything only tested with LAV Splitter as source, and on my NVIDIA GTS 450.
SamuriHL
1st May 2011, 16:58
Oh damn, seriously?! :D SWEET! Cause I'm having *MASSIVE* problems right now. :( I ripped my Fast and Furious HD DVD to MKV this morning and am watching it now. ArcSoft Audio Decoder didn't bother decoding it (um, what?) so I added LAV Audio. Audio is going out of sync badly. Also something broke madVR exclusive mode while playing this one. Not having the best of days apparently. However, I definitely wanna try this out. Is this implemented in LAV Audio as you said it would be?
EDIT: I take it the code isn't checked in yet. ;)
Sebastiii
1st May 2011, 17:00
Trop cool :)
Sorry :) very awesome :)
nevcairiel
1st May 2011, 17:28
http://files.1f0.de/lavf/LAVFilters-0.24-34-g0702642.zip
DTS-HD should work now too.
I guarantee for nothing, however. :p
Its all been checked in the repository as well, be sure to rebuild ffmpeg with my scripts, so it gets the spdif muxer which was disabled before.
If DTS-HD muxing fails, it'll fallback to DTS, this can happen on *very* high bitrate DTS-HD MA streams, although i'm not sure those appear on Blu-rays.
And yes, its in LAV Audio.
Like i said before, only tested against ReClock, my NVIDIA GTS 450, my Onkyo receiver, and of course with LAV Splitter. It'll quite possibly fail with other source filters because of wrong frame packing.
SamuriHL
1st May 2011, 17:36
Thanks, Nev. Gonna test your build now while I build my own. I'll get back to you shortly. :D
nevcairiel
1st May 2011, 17:38
I should cook dinner and then watch some movie while testing the bitstreaming... mm.. sounds like a plan.
SamuriHL
1st May 2011, 17:39
HOLY *********************. Andy! He bitstreams DDP on AMD!!! Nev, this is AMAZING! You have NO IDEA how kuel this is for us! Thank you SO MUCH FOR DOING THIS!!!
SamuriHL
1st May 2011, 17:41
DTS-HD MA not working. Flashing between DTS-HD MA and PCM on the receiver. No audio.
nevcairiel
1st May 2011, 17:41
DD+ is just broken in ffdshow, there is no hardware limitation.
DTS-HD MA not working. Flashing between DTS-HD MA and PCM on the receiver. No audio.
Does DTS itself work, from the same stream?
SamuriHL
1st May 2011, 17:43
DD+ is just broken in ffdshow, there is no hardware limitation.
Someone told us that on the ffdshow hd audio thread, but, we were skeptical. However, this proves it. VERY VERY kuel!
Does DTS itself work, from the same stream?
Will check in a minute. I went to play a TrueHD file after that and it crashed my machine. Rebooting now. Retesting momentarily.
SamuriHL
1st May 2011, 17:46
TrueHD works fine. DTS core works, as well from the same file that wasn't working with DTS-HD MA. So it's just DTS-HD MA that has the problem.
SamuriHL
1st May 2011, 18:04
Nice to see the forum back. sigh. :) Anything I can do to help with the DTS-HD MA bitstreaming issue?
nevcairiel
1st May 2011, 18:05
DTS-HD MA works fine for me. Does it no work on any disc?
I tried, for example, on the m2ts version of this:
http://www.avsforum.com/avs-vb/showthread.php?t=1330124
nevcairiel
1st May 2011, 18:07
Also, as before, attach debugger on a debug build. :)
This is cool. Very cool. But, for bitstreaming these compressed formats, don't you have to run your monitor at the exact (or exact multiple) of the movie fps?
Awesome Nev :)
Here are my findings, with Direct Sound renderer
MKV, DTS/DTSHD: Only work with AVI<->AC3/DTS between LAV Splitter and Audio
MKV, DTS-ES Matrix: 1st time I see this on AVR :)
Bluray (Eagle Eye), TrueHD,: Cant connect to audio renderer
M2TS (Sample posted earlier), TrueHD: Works fine
MKV,DD: Working fine.
MPEG-TS,DD: Most crash on start when bitstreaming, normal decoding ok.
If you need me to test anything let me know
nevcairiel
1st May 2011, 18:12
This is cool. Very cool. But, for bitstreaming these compressed formats, don't you have to run your monitor at the exact (or exact multiple) of the movie fps?
Thats not important. The only thing you CANNOT do when bitstreaming is let ReClock adjust the video speed to match refres rate, because then it goes out of sync. So with perfect bitstreaming, you'll end up with not 100% perfect video, because it could drop or repeat frames to match the refresh rate.
So, i guess, yes. For 100% perfect audio and video, with bitstreaming, it needs to be a exact multiple of the fps.
MKV, DTS/DTSHD: Only work with AVI<->AC3/DTS between LAV Splitter and Audio
That doesn't make any sense, the connection between LAV Splitter and LAV Audio should always work - unless you turned one of the formats off in the config.
SamuriHL
1st May 2011, 18:13
Gonna build it now. It works for nVidia, not AMD. :( Need to try something first to see if makes any difference. Nope...I took ReClock out of the mix. Same deal. Ok, building a debug version.
That doesn't make any sense, the connection between LAV Splitter and LAV Audio should always work - unless you turned one of the formats off in the config.
If I bitstream, that filter gets put in the chain automatically, if I decode, it doesn't.
XForm In
Filter : AVI<->AC3/DTS - CLSID : {93230DD0-7B3C-4EFB-AFBB-DC380FEC9E6B}
- Connected to:
CLSID: {171252A0-8820-4AFE-9DF8-5C92B2D66B04}
Filter: LAV Splitter
Pin: Audio
- Connection media type:
Audio: DTS 48000Hz 6ch 1536kbps
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: 256000
cbFormat: 18
WAVEFORMATEX:
wFormatTag: 0x0008
nChannels: 6
nSamplesPerSec: 48000
nAvgBytesPerSec: 192000
nBlockAlign: 12
wBitsPerSample: 16
cbSize: 0 (extra bytes)
pbFormat:
0000: 08 00 06 00 80 bb 00 00 00 ee 02 00 0c 00 10 00 ....€»...î......
0010: 00 00 ..
XForm Out
Filter : AVI<->AC3/DTS - CLSID : {93230DD0-7B3C-4EFB-AFBB-DC380FEC9E6B}
- Connected to:
CLSID: {E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
Filter: LAV Audio Decoder
Pin: XForm In
- Connection media type:
Audio: DTS 48000Hz stereo 1536kbps
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {00002001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 18
WAVEFORMATEX:
wFormatTag: 0x2001
nChannels: 2
nSamplesPerSec: 48000
nAvgBytesPerSec: 192000
nBlockAlign: 1
wBitsPerSample: 16
cbSize: 18 (extra bytes)
pbFormat:
0000: 01 20 02 00 80 bb 00 00 00 ee 02 00 01 00 10 00 . ..€»...î......
0010: 12 00 ..
- Enumerated media type 0:
Set as the current media type
hoborg
1st May 2011, 18:21
@nevcairiel:
Any chance to add support in LAVF audio decoder to be able to connect with MS DVD navigator ?
SamuriHL
1st May 2011, 18:22
@nevcairiel:
Any chance to add support in LAVF audio decoder to be able to connect with MS DVD navigator ?
Is that why I can't select it for DVD's in MC16?
nevcairiel
1st May 2011, 18:27
If I bitstream, that filter gets put in the chain automatically, if I decode, it doesn't.
That media type looks just perfect, i wouldn't know why it adds that weird filter there. o.O
The only thing that would make it break would be a sample rate of 0 in the media type.
Especially the only when bitstreaming .. that doesn't make any sense. I also cannot reproduce it here.
SamuriHL
1st May 2011, 18:31
Uhhhhh, Nev? This seems bad man. So, I fully removed ReClock from the chain this time (forgot I had it set to always load...sigh). On my AMD equipment, LAV Audio is no longer used for DTS at ALL unless I uncheck the DTS-HD MA bitstreaming checkbox. Then it'll do DTS bitstreaming. If I leave DTS-HD MA checked, it falls back to other decoders. Hell, I uninstalled ffdshow completely, unregistered the ArcSoft audio decoder, and it fell back to the microsoft decoder for DTS! So, something's wrong.
nevcairiel
1st May 2011, 18:32
It doesn't even work anymore if you disable bitstreaming at all?
Also, please post the output media type of ffdshow while bitstreaming DTS-HD MA.
SamuriHL
1st May 2011, 18:35
Oh sure now that I uninstalled ffdshow. :D Give me a few minutes as I just got the debug version built and installed. I'm saying that if I uncheck the DTS-HD MA bitstream option, then LAV Audio accepts the connection, however. Even if I leave the core DTS bitstream option checked. I'm saying that if I have the DTS-HD MA bitstream option checked, LAV Audio refuses the connection and it goes to another decoder instead. How whacked is that?
On my AMD equipment, LAV Audio is no longer used for DTS at ALL unless I uncheck the DTS-HD MA bitstreaming checkbox.
This is exactly my issue, the AVI<->AC3/DTS filter doesn't appear if I deselect DTS-HD decoding. So I assume yours isn't working because AVI<->AC3/DTS isn't getting loaded.
hoborg
1st May 2011, 18:37
May be stupid, but can be this caused by registry prefered decoder selection under Win7?
SamuriHL
1st May 2011, 18:38
http://pastebin.com/download.php?i=BNcdzP9K
Please take a look at that. Especially line 7 [dca @ blah blah blah] Stream with high frequency...
Could that be why it's not accepting it?
SamuriHL
1st May 2011, 18:39
May be stupid, but can be this caused by registry prefered decoder selection under Win7?
No because ffdshow audio works just fine. Well, did until I uninstalled it. :D
nevcairiel
1st May 2011, 18:42
Do you have in ffdshow the "Connect as PCM first" checked? If so, what happens if you uncheck it?
It simply looks like the renderer doesnt want to accept a connection for 192000Hz at 8 channels and 16bit. (Basically how DTS-HD looks)
The AVI->AC3/DTS filter there changes the media type to actually be 2 channels, for some reason, that would potentially make it work then.
Thunderbolt8
1st May 2011, 18:44
I have difficulties with my inbuilt .ass subtitles again after reinstalling windows. it seems like that the inbuilt subtitle renderer of mpc-hc is always used and not directvobsub, even though the symbol loads up properly, because the subs looks a bit smeared and not really in focus (also am using madvr). I have the directvobsub and also the directvobsub (auto-loading version) directshow filter both set to prefer under external filters. but it seems like thats not enough.
so what am I missing?
Do you have in ffdshow the "Connect as PCM first" checked? If so, what happens if you uncheck it?
It simply looks like the renderer doesnt want to accept a connection for 192000Hz at 8 channels and 16bit.
I always disabled this option, had AC3 bitstream issues with it enabled.
With PCM connection off,
Filter : ffdshow Audio Decoder - CLSID : {0F40E1E5-4F79-4988-B1A9-CC98794E6B55}
- Connected to:
CLSID: {18C16B08-6497-420E-AD14-22D21C2CEAB7}
Filter: Audio Switcher
Pin: Audio
- Connection media type:
Audio: WAVE_FORMAT_EXTENSIBLE 192000Hz 8ch 24576kbps
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 40
WAVEFORMATEX:
wFormatTag: 0xfffe
nChannels: 8
nSamplesPerSec: 192000
nAvgBytesPerSec: 3072000
nBlockAlign: 16
wBitsPerSample: 16
cbSize: 22 (extra bytes)
WAVEFORMATEXTENSIBLE:
wValidBitsPerSample: 16
dwChannelMask: 0x000000ff
SubFormat: {0000000B-0CEA-0010-8000-00AA00389B71}
pbFormat:
0000: fe ff 08 00 00 ee 02 00 00 e0 2e 00 10 00 10 00 þÿ...î...à......
0010: 16 00 10 00 ff 00 00 00 0b 00 00 00 ea 0c 10 00 ....ÿ.......ê...
0020: 80 00 00 aa 00 38 9b 71 €..ª.8›q
- Enumerated media type 0:
Set as the current media type
- Enumerated media type 1:
Unknown
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: MEDIASUBTYPE_None {E436EB8E-524F-11CE-9F53-0020AF0BA770}
formattype: FORMAT_None {0F6417D6-C318-11D0-A43F-00A0C9223196}
bFixedSizeSamples: 0
bTemporalCompression: 0
lSampleSize: 307200
cbFormat: 0
SamuriHL
1st May 2011, 18:47
Do you have in ffdshow the "Connect as PCM first" checked? If so, what happens if you uncheck it?
It simply looks like the renderer doesnt want to accept a connection for 192000Hz at 8 channels and 16bit. (Basically how DTS-HD looks)
The AVI->AC3/DTS filter there changes the media type to actually be 2 channels, for some reason, that would potentially make it work then.
That setting makes no difference at all in ffdshow for me. Works fine either way. I don't have a debug version of ffdshow built right now and they made some change to the repository that's causing me checkout issues at the moment. I don't remember the media types that ffdshow uses for bitstreaming DTS-HD MA off the top of my head.
EDIT: AH, there you go, the info you're looking for from ffdshow is above my post.
nevcairiel
1st May 2011, 19:00
I found the issue with the DSound renderer, fixing after dinner. :)
I found the issue with the DSound renderer, fixing after dinner. :)
Thanks :)
SamuriHL
1st May 2011, 19:05
Sweet! Thanks, Nev!
nevcairiel
1st May 2011, 19:23
Stupid forum today.
anyhow, try this one
http://files.1f0.de/lavf/LAVFilters-0.24-35-gf628eb9.zip
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.