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

mclingo
13th January 2018, 16:03
[QUOTE=Manni; ...... So I try to post less :)[/QUOTE]

by all means try to post even less.

mclingo
13th January 2018, 16:07
Thanks for the advice, but the only thing on your list that I haven't tried is the FSE part, but I am not sure that is the problem.
It goes fine into 3D mode. I have to use the glasses to see the stats, and they pop out at me.
The problem is that the decoder queue does not fill, and it is stuck on 1.

If it matters, the computer is connected to an Integral, which is connected to my Denon AVR, which is in turn connected to my Optoma 1080p projector.

yeah, there could be more than one issue here but AMD card must have FSE turned on in MADVR, this cant be disputed, although I bet someone will :)

fluffy01
13th January 2018, 16:38
I just tried activating FSE, but it didn't do any difference, so I deactivated it again.

My biggest problem with FSE is that it causes the system to renegotiate the HDMI-handshake every time it enters and leaves FSE, and my projector is VERY slow at reaquiring the HDMI signal (10+ secs). So since we got FS Windowed mode, I haven't used it.

fluffy01
13th January 2018, 16:40
If there is an easy way for me to test the 3D output directly from LAV, without using the player or madVR, then I can test if it is indeed a problem with LAV, or it lies somewhere else.

Does anybody know if this is possible?

mclingo
13th January 2018, 17:05
Hi, dont think its possible, its MADVR which triggers 3D mode in this setup, not LAV, Lav just does the decoding. why dont you plug you PC directly into your projector to rule out any issues with your chain.

The files you are playing have you encoded them youself, are you sure they are ok, try this, I always use this for testing.

Is 3D turned on in windows in display settings, are you definitely outputting 1080p?

https://drive.google.com/file/d/0BwxFVkl63-lETWMzM1dRZF9XMDA/view

fluffy01
13th January 2018, 17:37
The movie is a 3D Bluray played directly from the media (With AnyDVD HD). The 3D is definitely turned on. It is running in frame-stacked 3D 1080p23.
And like I said before, the entire system is definitely running in 3D mode. The only thing missing is the picture of the video.
And it is the same whether I am running in full screen windowed or in regular windowed. The system is running in 3D mode, video is just blank. Everything else works.

Hmm. Almost missed your link to the mkv clip. I downloaded it, at that one works flawlessly!!! So I guess that for some reason LAV just wont play my 3D Blurays?!? I tried 2 different Bluray 3D disks, and neither of them worked, but your clip did.

So at least now we know, that my 3D is working after all, and now we need to figure out why it will not play my 3D Bluray disks.

nevcairiel
13th January 2018, 17:37
If there is an easy way for me to test the 3D output directly from LAV, without using the player or madVR, then I can test if it is indeed a problem with LAV, or it lies somewhere else.

Does anybody know if this is possible?

You can temporarily use another renderer, and check that LAV is still using "msdk mvc" as a decoder. You'll only get a 2D image, but as long as "msdk mvc" is used in LAV, it does 3D decoding.

Note however that the MSDK decoder is quite a blackbox, and if it just doesn't work, there isn't that much anyone can really determine remotely.

fluffy01
13th January 2018, 17:48
Thank you nev. Just testet with default EVR-Custom presenter, and LAV is still using "msdk mvc" and the screen is still black, and after a while the entire player freezes and needs to be killed with the task manager.

But as you can see by the comment I posted a few seconds before yours, mclingo's clip works flawlessly here, so it apparently works if you remux the entire disk into mkv, but not when played directly from the 3D Bluray.

I haven't tried remuxing the disk here by myself, as I am not aware of a free tool that can do this. As far as I know, MakeMKV is not free, right?

nevcairiel
13th January 2018, 18:02
MakeMKV is free while in beta. How long that'll last is anyones guess, but so far its been quite a long while. For that matter if you use it regularly, its always nice to recognize the work of others and actually pay. :)

Actual 3D Blu-rays should also work though, I just tried one and it still seems fine here. Which version of LAV are you using? Latest release or a nightly?

SamuriHL
13th January 2018, 18:04
Not to turn this into a tool thread, but, CloneBD is also free for the use case you're looking to do. As long as you don't require compression, you can use CloneBD to repackage into an MKV.

fluffy01
13th January 2018, 18:11
Ok. I have no problems paying for software that I regularly use, but I was hoping that I didn't have to use it at all and just play the disks directly without having to mux them to my harddisk first.

I am using latest nightly (0.70.2-83).

nevcairiel
13th January 2018, 19:06
Do you have an active Intel GPU? Or, more helpful, does it work with build 0.70.2-70 or earlier?

fluffy01
13th January 2018, 19:20
I posted my specs in my first post about this problem. My CPU is a Intel 6700T Skylake CPU, and if I use FRIM through AviSynth to decode the bluray, then it works fine.

I will test older versions of LAVFilter later. I am currently watching a movie with my wife.

nevcairiel
13th January 2018, 21:10
The CPU alone doesn't necessarily indicate if the GPU is actually enabled and installed in Windows - it usually requires some additional steps to setup multi-gpu mode with the integrated GPU and a dedicated one. But lets see first if the old version works or not, that might rule out that particular topic anyway.

fluffy01
13th January 2018, 21:43
I just tested the official 0.70.2 build, and it works! :D

I will do some more testing and see if I can pinpoint the nightly build that makes it stop working.

I installed the Intel GPU drivers on the system, but I do not have any displays connected to it. But all versions after Windows 7 should allow the use of the GPU even if there is not display attached to it, right?

fluffy01
13th January 2018, 21:56
I just finished testing, and 0.70.2-71 is the last working version. 0.70.2-74 and forward all fails.

nevcairiel
13th January 2018, 22:07
Sounds about right. Those newer versions try to use GPU-accelerated decoding if available. Apparently something fails there. My main dev box doesn't have an Intel GPU, so i'll have to poke it on another box again.

fluffy01
13th January 2018, 22:49
Ok. If you want me to try out some test builds with some extended logging, so perhaps it can be easier to see what is going wrong, then I can do that for you.

On a related note: Have you considered using DXVA decoding of MVC content? Maybe that will solve the problem, and also remove the dependency on the Intel SDK, for those with a GPU capable of decoding MVC.

nevcairiel
13th January 2018, 23:30
DXVA decoding basically requires having a software decoder for MVC (because a lot of stuff still needs to be handled in software), so until such a time when FFmpeg adds MVC decoding, unfortunately using DXVA for that is not easily possible.

bisse
14th January 2018, 00:33
@nevcairiel: In case you missed my earlier post, could I get a yes or no on this feature request quoted below? Thanks.

Could this function quoted in these old messages below still be implemented?

I've just purchased a bunch of GKIDS BD's that uses the MPLS angle feature to differentiate between credit sequences. As of now I'm forced to watch them with English credits, but I'd strongly prefer the original Japanese credits. Very frustrating.

I've tried using the modded mpc-hc with dslibbluray (with madvr, navigating blindly through the BD menu), but the subtitles seems to have a life of their own. They don't follow the timecode. I've tried both XYsub and the built in subs renderer.
I've also tried using the seamless playback function in Potplayer by adding each corresponding m2ts file the playlist, but with this method there's loads of audio glitches/skippings and the audio always gets out of sync, regardless of which audio decoder/renderer I use.

Is there any other method I can use if madvr is mandatory? Ripping is not an option.

-----------------------------------------------------------------------------------

There are some new features of mpls playlists being used on some blurays. The german version of "Grand Budapest Hotel" uses multi-angle mpls files to select the different language versions (they differ by localized inserts and title cards). Unfortunately LAV only picks the first playlist-angle out of such a mpls playlist, without any option to choose the other (sub-playlist) versions. This is completely different from multi-angle video streams.

This purely a matter of an mpls feature. The playlist file contains all the "angles" - no bd-j logc necessary. At the moment LAV plays the first angle of such playlist files. It would be nice if it would expose a choice of which angle to play - just like LAV has chapter support. This is not hugely important and might not even be on the agenda of the LAV developers, but maybe its easy to implement. And even if not, then i hope its still interesting to see that such mpls files exist.

Even if it did allow switching of angles, there is no guarantee that there is any information which angle is which, so you would probably still have to guess which to play.

This would be no different from having to guess which subtitle track is for the hearing impaired, contains only forced subtitles or is the regular subtitle track. Also with audio tracks sometimes it's not obvious which track is which (due to wrong language flags, or multiple english tracks for SDH, commentary, music only etc.).

With "Grand Budapest Hotel" it would not involve much guessing as the first localized titlecard appears right after the credit sequence.

Anyhow - it's not a "crucial" feature or anything. But as LAV opens mpls files it would be nice if it also supported this feature. And as you are aware now (or have been all along) that these files exist my mission is complete - the rest it up to your judgement, mood and time.

nevcairiel
14th January 2018, 08:54
I don't have any plans to do that anytime soon. I don't believe I even have any disc which uses that. Most discs with localized video I have seen used different titles instead of Angles.

nevcairiel
14th January 2018, 11:09
Ok. If you want me to try out some test builds with some extended logging, so perhaps it can be easier to see what is going wrong, then I can do that for you.


I could reproduce the problem on a disc with an Intel GPU, unfortunately it appears to be a long-standing Intel issue that can result in the GPU reporting a "busy" state infinitely, causing decoding to just die. So for the time being, i've turned off hardware accelerated decoding again.

fluffy01
14th January 2018, 12:31
Ok thanks. I will test it as soon as the next nightly is up.

bisse
14th January 2018, 19:04
I don't have any plans to do that anytime soon. I don't believe I even have any disc which uses that. Most discs with localized video I have seen used different titles instead of Angles.

Yes I know. I have a large Bluray library and these from GKIDS are the first ones I've come across that uses this feature. Unfortunately I've already purchased 14 of them. I suppose the only solution right now is to rip all the corresponding mt2s into a single MKV. It just feels wrong seeing names like Gillian Anderson and the Fanning sisters in the credits of a Studio Ghibli film.

Does anyone know of any other solution? My only requirement is madvr.

fluffy01
15th January 2018, 14:35
Just tested the new nightly, and it works again :) Thank you.

runner
17th January 2018, 08:54
hi, I would like to know if lavsplitter supports parsing bduhd, thanks

sneaker_ger
17th January 2018, 09:31
Next version will have (limited) UltraHD Blu-ray support. You can already test it if you install the nightly build.

BDFan
17th January 2018, 15:41
Hi nevcairiel!

1. D3D11 doesn't work with the nVidia Optimus on Intel GPU if in the control panel nVidia selected GPU nVidia.
http://i99.fastpic.ru/big/2018/0117/f4/a1bdb331af6c6d7538b483fb41dc2bf4.jpg
DXVA Checker shows that d3d11 enable on Intel GPU if in the control panel nvidia selected GPU nVidia.
http://i99.fastpic.ru/big/2018/0117/1e/bf52f2ca8fc9e36416f5de8582c9261e.jpg

2. nVidia CUVID doesn't work with the nVidia Optimus if in the control panel nvidia selected any GPU.

3. After install LAV 0.70.2.88 mvc (software mode) doesn't work with the nVidia Optimus if in the control panel nvidia selected any GPU.

Windows 10 1709, Intel i5-4200M, Intel(R) HD Graphics 4600 (20.19.15.4835), NVIDIA GeForce 840M (23.21.13.9065)

madshi
17th January 2018, 15:54
I hate Optimus.

nevcairiel
17th January 2018, 16:32
Optimus is generally just not supported. Use it at your own discression, but don't expect anything to work. I do not provide support for such setups because they are impossible.

BDFan
17th January 2018, 22:26
I hate Optimus.
madVR works great with Optimus, but only in 2D ;)
On Intel GPU - 3D is slide show and later crush Intel driver.
On nVidia GPU - 3D doesn't work.
madVR or LAV Filters bugs?

P.J
17th January 2018, 22:27
Hi nevcairiel!

1. D3D11 doesn't work with the nVidia Optimus on Intel GPU if in the control panel nVidia selected GPU nVidia.
http://i99.fastpic.ru/big/2018/0117/f4/a1bdb331af6c6d7538b483fb41dc2bf4.jpg
DXVA Checker shows that d3d11 enable on Intel GPU if in the control panel nvidia selected GPU nVidia.
http://i99.fastpic.ru/big/2018/0117/1e/bf52f2ca8fc9e36416f5de8582c9261e.jpg

2. nVidia CUVID doesn't work with the nVidia Optimus if in the control panel nvidia selected any GPU.

3. After install LAV 0.70.2.88 mvc (software mode) doesn't work with the nVidia Optimus if in the control panel nvidia selected any GPU.

Windows 10 1709, Intel i5-4200M, Intel(R) HD Graphics 4600 (20.19.15.4835), NVIDIA GeForce 840M (23.21.13.9065)

Wish I could use Optimus too...

nevcairiel
17th January 2018, 22:35
LAV has no control over what hardware is available. It'll just try to use it. If its unavailable due to Optimus, there is nothing I can do about that.
Just leave DXVA2-CB or D3D11 in "auto" mode and let it pick the device, it'll try to find one that works, I hope.

SamuriHL
17th January 2018, 22:45
I have optimus, too, and I can get it to work well enough for 2D. It's not a well implemented technology so any issues you have with it are not going to be things LAV and madvr are going to solve. Bug MS, nVidia, and Intel. :)

BDFan
17th January 2018, 22:45
Wish I could use Optimus too...
Intel Quick Sync works...

BDFan
17th January 2018, 23:00
Just leave DXVA2-CB or D3D11 in "auto" mode and let it pick the device, it'll try to find one that works, I hope.
Only on Intel GPU works (if in the nVidia control panel selected Intel GPU).
But Intel GPU is slow for madVR :(

hubblec4
18th January 2018, 00:49
I suppose the only solution right now is to rip all the corresponding mt2s into a single MKV. It just feels wrong seeing names like Gillian Anderson and the Fanning sisters in the credits of a Studio Ghibli film.

Does anyone know of any other solution? My only requirement is madvr.

The first way is like you said, an mkv. With my chapterEditor is it an easy task and should be done in less then 15min(depend on your hardware).

The second way: You can manipulate the mpls with BDEdit. Make a copy before!

Multi-Angle mpls works similar to Multi-Edition BDs, different m2ts files are used for different Angles/Editions.
Find out which m2ts files belongs to the Angle you want.
I'm not an expert in BDEdit but it should be possible to change the "main" playlist of an Angle-mpls.

yukinok25
18th January 2018, 06:58
I hate Optimus.You have no idea how much I would like to scream this to Intel! [emoji23]

Sent from my HTC 10 using Tapatalk

el Filou
18th January 2018, 12:01
Only on Intel GPU works (if in the nVidia control panel selected Intel GPU).
But Intel GPU is slow for madVR :(If you select the NVIDIA GPU for MPC-HC and then choose DXVA2 Copy-Back or D3D11 and select the HD 4600 in LAV, what happens? madVR still uses the Intel for rendering?

BDFan
18th January 2018, 14:38
If you select the NVIDIA GPU for MPC-HC and then choose DXVA2 Copy-Back or D3D11 and select the HD 4600 in LAV, what happens?
Read my first post.
D3D11 should theoretically work (see image DXVA Checker).
madVR still uses the Intel for rendering?
No. NVIDIA GPU active.

chros
18th January 2018, 15:32
You have no idea how much I would like to scream this to Intel! [emoji23]
Btw, does any laptop exist nowdays with only nvidia card that doesn't have this sh*t? :)

Read my first post.
D3D11 should theoretically work (see image DXVA Checker).
No. NVIDIA GPU active.
It works for me (see my signature), but I switched back to dxva2-cb, because there's no black-bar-cropping implemented with it in madvr yet.

clsid
18th January 2018, 15:49
With Optimus only one GPU is active from the perspective of the application. So if you select the NVIDIA GPU, then you can't use any functionality from the Intel one and vice versa.

BDFan
18th January 2018, 16:24
With Optimus only one GPU is active from the perspective of the application. So if you select the NVIDIA GPU, then you can't use any functionality from the Intel one and vice versa.
No. Intel Quick Sync active.

el Filou
18th January 2018, 20:57
Read my first post.
D3D11 should theoretically work (see image DXVA Checker).OK, I didn't really get what you meant. My bet is that the system calls DXVA Checker use to get the device capabilities are independent of the Optimus setting in NVIDIA Control Panel.
D3D11 video decode probably doesn't respect that Optimus setting either, that's why I was suggesting to use copy-back if you want to use the Intel D3D11 decode. I understand if you'd prefer native mode, but does it work with copy-back?

Also, QuickSync decoding is a private Intel API and not a DirectX one so I guess it's not impacted by the Optimus setting in NVIDIA control panel either.

BDFan
18th January 2018, 21:47
OK, I didn't really get what you meant. My bet is that the system calls DXVA Checker use to get the device capabilities are independent of the Optimus setting in NVIDIA Control Panel.
Depends!
DXVA Checker image №2 (if in the nVidia control panel selected Intel GPU).
http://i102.fastpic.ru/big/2018/0118/58/0265e80e7be6790a8a53a63c53928658.jpg

D3D11 video decode probably doesn't respect that Optimus setting either, that's why I was suggesting to use copy-back if you want to use the Intel D3D11 decode. I understand if you'd prefer native mode, but does it work with copy-back?
DXVA CB image
http://i99.fastpic.ru/big/2018/0118/e1/ea6ffa6f8a0bbc780e15892929dfeee1.jpg

varekai
19th January 2018, 20:46
Using LAVFilters-0.70.2 and nightly build LAVFilters-0.70.2-88 with PotPlayer 1.7.7150.
When playing BD (mpls) or mkv's no subtitles show up.
Also using madVR v0.92.10
Perhaps this is a PotPlayer issue?
If not are there some settings in LAVFilters I'm missing?

With this setting I can view subtitles both embedded BD (PGS) and .srt, I can also load .sup and .srt.
https://s17.postimg.org/5eh5lihwv/LAV-_OK.png

With this setting there is no way to view any subtitles.
I can add them but they doesn't show up.
https://s17.postimg.org/n4iu6ldi7/LAV-_NO.png

Regards

el Filou
20th January 2018, 12:48
Isn't the source filter the one responsible for selecting and 'sending' subtitles to the renderer?
In both your screenshots you're using Potplayer's built-in source (BDMV) filter. Is there an option to use LAV source filter instead?
Edit: what I mean is, also use LAV's own source filter if you're using its video decoder. Maybe that's where the problem is coming from.

varekai
20th January 2018, 13:20
@el Filou
Do you mean the tick at "Use Built-in DXVA Video Decoder?
If I disable that there is no change, no subtitles.
I'm not shure what you mean "Potplayer's built-in source (BDMV) filter."
I can't find that inside PotPlayer.

el Filou
20th January 2018, 13:25
Sorry, I mean the 'Built-in HDMV playlist source'.
Maybe that filter and madVR can't agree on a way to exchange subtitle data?

varekai
20th January 2018, 13:39
@el Filou
I can't find "Built-in HDMV playlist source" inside PotPlayer.
Looked att all possible settings but can't see where to change that.