Log in

View Full Version : LAV Filters - DirectShow Media Splitter and Decoders


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 [45] 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508

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.

ney2x
1st May 2011, 11:24
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. :)

noee
1st May 2011, 18:09
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?

VipZ
1st May 2011, 18:12
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.

VipZ
1st May 2011, 18:16
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?

VipZ
1st May 2011, 18:36
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?

VipZ
1st May 2011, 18:46
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. :)

VipZ
1st May 2011, 19:04
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