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

max79
19th February 2021, 17:19
SUPPORT REQUEST - #34

@Nevcairiel
LAVSplitter ignore information written after "-" character in CUE-chapters. Example:
https://feeds.soundcloud.com/stream/339564921-yannickburky-electromix-120.m4a

Any feedback would be appreciated.

max79
19th February 2021, 17:20
SUPPORT REQUEST - #35

@Nevcairiel
Starting from LAV_v0.73.1-28(I have no such issue on v0.73.1-19 and older) i got live stream issues: playback stops right after approx 8-10minutes for two hundreds HLS-streams from yandex.ru site. Example(Geo block. Only for Russia):
https://strm.yandex.ru/kal/rt_hd/rt_hd0.m3u8

Any feedback would be appreciated.

UPDATE: Fixed in LAVFilters_v0.74.1-108!

max79
19th February 2021, 17:25
@Nevcairiel
LAVVideoDecoder[Native & Copy-back modes]_v0.74.1-32 in Win7(x64) on NVidia GeForce GTX1650 card with latest drivers gives artifacts issues. if this OS is still supported by you, I can describe the problem in details with a UHD HEVC-10 video short example.

UPDATE: Fixed in v0.74.1-87 and newer!

VictorLS
19th February 2021, 22:56
Can anyone confirm new H.265 4K SAT channel Mooz 4K (here's my record 20201031-170739_Mooz 4K.ts (56 MB) https://yadi.sk/d/NngfIFAIVyK-hQ ) with LAV Video Decoder 0.74.1-75 (I didn't test earlier versions) as minimum on nVIDIA's videocards GM206 and newer can't be accelerated with DXVA2 (native and copy-back) or gives artifacts in Win7x64? With CUVID hardware acceleration works well. MPC-BE, Cyberlink and MainConcept accelerates via DXVA2 well too.
Corrected in 0.74.1-87 - thanks.

max79
19th February 2021, 23:40
Corrected in 0.74.1-87 - thanks.

My message #24298 was about exactly the same issue!

max79
20th February 2021, 00:25
SUPPORT REQUEST - #36

@Nevcairiel
Starting from LAVSplitter_v0.74.1-34 i got issues after seeking to the beginning on HLS VideosOnDemand, now playback is starting but in fact, frames are output that do not correspond to the beginning position, but those that were at the time that was before the rewind to the beginning. On v0.74.1-32 and older LAV version I have differ behavior, it just didn't start to play media(i didn't hear sound and see only one frame that were at the time that was before the rewind to the beginning. And I liked this behavior better), example:
http://demo.unified-streaming.com/video/machete/machete.ism/machete.m3u8

Seems it looks like something similar with the problem here:
https://github.com/Nevcairiel/LAVFilters/issues/306

Any feedback would be appreciated.

UPDATE: Fixed in v0.74.1-98 and newer!

clsid
20th February 2021, 01:33
Reverting 9fbf56d (https://github.com/Nevcairiel/LAVFilters/commit/9fbf56df5b1c5cc3e9fb4ad46f5164148d9efd95) does fix that seek issue.

max79
20th February 2021, 11:25
Reverting 9fbf56d (https://github.com/Nevcairiel/LAVFilters/commit/9fbf56df5b1c5cc3e9fb4ad46f5164148d9efd95) does fix that seek issue.
@clsid
Awesome. Thank you!

nevcairiel
26th February 2021, 08:39
Reverting 9fbf56d (https://github.com/Nevcairiel/LAVFilters/commit/9fbf56df5b1c5cc3e9fb4ad46f5164148d9efd95) does fix that seek issue.

There is a reason for this check. Reverting it just breaks other cases to fix one thing, instead of investigating why it fails. Which case is more important, the one the complained the most recent? :)

gfxnow
27th February 2021, 06:52
Why no new release in 2 years despite so much activity here?

Klaus1189
27th February 2021, 08:31
Is there a new nightly available for the recent commits? I only know: https://files.1f0.de/lavf/nightly/

jkauff
27th February 2021, 11:36
The latest version of MPC-HC (1.9.10) includes a current build of LAV. Also, most of the codec packs (like K-Lite) do their own builds from the nightlies. Or you can build your own, of course.

mzso
27th February 2021, 15:24
d3d11-native is the fastest (https://forum.doom9.org/showthread.php?t=176642).

For heavens sake...
It seems to have a decent improvement in seeking performance, but there's no deinterlacing anymore. madVR wouldn't deinterlace with dxva11 it seems. Why?

And LAV is only ever willing to use HW deinterlacing with CUVID, and won't use software deinterlacing. Super annoying that deinterlacing is always a problem with LAV+madVR.

el Filou
27th February 2021, 17:13
madshi didn't implement it. Probably considered not high priority.
I would like D3D11 deinterlace with NVIDIA but then D3D11 decode causes many issues in MediaPortal so would mean even more debug. :(

huhn
27th February 2021, 17:22
mpcVR does this fine it just a problem with madVR.

Klaus1189
27th February 2021, 20:15
The latest version of MPC-HC (1.9.10) includes a current build of LAV. Also, most of the codec packs (like K-Lite) do their own builds from the nightlies. Or you can build your own, of course.

I am a MPC-BE user and do not want to install a codecpack on my system. Compiling myself is to high for me.
I am only a video guy, not a programming guy :(

@nevcairiel:
I beg on my knees for a nightly build ;) Please Nev :)

VBB
27th February 2021, 20:19
@jkauff - I'm sure Klaus meant the commits from yesterday. The last nightly is from 12/6/2020.

Commits on Feb 26, 2021

Update ffmpeg

Update ffmpeg for HLS seeking fix

Add Ampere to SM->Core mapping

Support ProRes4444XQ

Fix codec ID to check for ASS style changes

Change H.264 Level 6 check to check actual number of ref frames, instead of the level

max79
27th February 2021, 20:38
@nevcairiel:
I'm also like everyone else waiting for the nightly build ;) Please Nev :)

mzso
27th February 2021, 20:46
mpcVR does this fine it just a problem with madVR.

Which variant of MPC? Can it be installed system-wide? (provided any app can even use it.)

Edit:
Never mind. I found it on github as a separate filter. It doesn't work with the tuner app though, and only there I have interlaced video. Out of curiosity had a look at it in PotPlayer. The output became too dark with a lot of detail swallowed.

clsid
27th February 2021, 23:38
The latest release build of MPCVR is a bit buggy. Try with the nightly build:
https://yadi.sk/d/X0EVMKP4TcmnHQ

mzso
28th February 2021, 00:06
The latest release build of MPCVR is a bit buggy. Try with the nightly build:
https://yadi.sk/d/X0EVMKP4TcmnHQ

Works identically. With "Use Directx 11" it produces abnormally dark picture.

clsid
28th February 2021, 00:18
Press Ctrl+J to show the renderer debug/statistics overlay and make a screenshot. Post that in the MPC-BE topic so that the developers can have a look at it.

Shark007
28th February 2021, 00:20
To use MPCVR you need to uncheck the 3 boxes in its settings.
Use for [NV12] [P010/P016] [Other supported formats]

its a bit convoluted.

Klaus1189
28th February 2021, 11:43
@jkauff - I'm sure Klaus meant the commits from yesterday. The last nightly is from 12/6/2020.

Exactly :)

nevcairiel
28th February 2021, 12:36
I've fixed the issue that prevented nightlys from being uploaded and future changes should hopefully result in new nightlys once again

I'm also planning on a release version in March.

Klaus1189
28th February 2021, 12:50
Yay :)

VBB
28th February 2021, 20:29
Thanks Nev! Always appreciated :)

mzso
1st March 2021, 11:39
To use MPCVR you need to uncheck the 3 boxes in its settings.
Use for [NV12] [P010/P016] [Other supported formats]

its a bit convoluted.

That disabled deinterlacing. So, I'm back right where I started.

huhn
1st March 2021, 12:12
with an AMD card?

max79
1st March 2021, 12:54
I'm also planning on a release version in March.
LAVFilters_v0.74.1-98 fixing this nightmare "seeking" issue. Thank you Nev!:thanks:

mzso
1st March 2021, 14:54
with an AMD card?

Yes. RX580

I wish LAV had a way to provide different preset/settings for particular apps. That would allow to work around my issues. I don't need HW decoding for measly 1080i AVC DVB streams, but I definitely need deinterlacing.

LAVFilters_v0.74.1-98 fixing this nightmare "seeking" issue. Thank you Nev!:thanks:

What's that about?

max79
1st March 2021, 15:10
What's that about?
https://github.com/Nevcairiel/LAVFilters/issues/306

huhn
1st March 2021, 17:54
Yes. RX580

I wish LAV had a way to provide different preset/settings for particular apps. That would allow to work around my issues. I don't need HW decoding for measly 1080i AVC DVB streams, but I definitely need deinterlacing.



What's that about?

the problem is that pretty much everything related to hardware stuff is pretty much broken on AMD.
calling it with lavfilter instead of a video renderer doesn't change that.

mzso
1st March 2021, 18:04
the problem is that pretty much everything related to hardware stuff is pretty much broken on AMD.
calling it with lavfilter instead of a video renderer doesn't change that.
Not quite. LAV+madVR produces proper image at least, but deinterlacing support is lacking.

jkauff
1st March 2021, 18:34
Not quite. LAV+madVR produces proper image at least, but deinterlacing support is lacking.
Nvidia Control Panel provides the option to deinterlace using Inverse Telecine. Doesn't AMD offer something similar?

Klaus1189
1st March 2021, 19:24
My RX480 does proper HW deinterlacing and the RX580 should be also ok, isn't it ok?

Nvidia Control Panel provides the option to deinterlace using Inverse Telecine

If I disable Inverse Telecine in Nvidia Control Panel HW deinterlacing still works. It is another feature.

el Filou
1st March 2021, 19:24
mzso would like to use D3D11 native hardware decoding (I assume probably for performance reasons with UHD) but madVR doesn't (yet? or won't ever?) support deinterlacing with D3D11, and as it's a DXVA native decoder there is no way to deinterlace in LAV itself as it must be managed by the renderer.
Not really LAV's fault, though.

chros
1st March 2021, 20:21
I wish LAV had a way to provide different preset/settings for particular apps. That would allow to work around my issues. I don't need HW decoding for measly 1080i AVC DVB streams, but I definitely need deinterlacing.

It sort of works with 2 MPC-HC (because it has LAV as internal filter) using ini files, or 1 HC and 1 BE.

Also, since LAV store its setting in registry, you can back it up as a reg file, and run the one you want before playback starts (e.g. from a bat file).

I'm not affected by this, in 2021 I don't watch any (!) interlaced content, that's why I use d3d11-native in LAV video.

nevcairiel
1st March 2021, 20:51
You can turn off HW decoding simply for AVC, as indeed any mediocre CPU should be able to handle that.

I might work on deinterlacing d3d11 native streams in the future, but thats a project a bit further down the list, and I barely get time to work on these.
First I want to work on re-envigorating CUVID and soem Blu-ray demuxing improvements. But thats after the next release.

VBB
1st March 2021, 20:57
That's exactly what I do. HW decoding only for HEVC, VP9, AV1. My 1st gen Core i7-920 handles everything else.

huhn
1st March 2021, 21:13
Not quite. LAV+madVR produces proper image at least, but deinterlacing support is lacking.

depends on other settings your card should be fine when scaling is also done with the hardware scaler which is not the case as soon as you are disabling the native formats.
madVR get's the image scaled.

d3d11 processing level are know to be broken for 5000 series to bad you have this issue to.

clsid
1st March 2021, 23:30
@mzso
Make a screenshot after pressing Ctrl+J.
Use the new AMD bug reporting tool to submit a description of the problem. And everyone else that can reproduce it should do the same. AMD does seem to work hard on improving drivers lately. But the main reason why some bugs are not getting fixed is the lack of (enough) proper detailed reports.

huhn
2nd March 2021, 05:46
well i guess i just call them again and revive the over 1.5 year old ticket that got the answer "that doesn't seem important".
just hope other user here have more luck.

Sven75
2nd March 2021, 14:43
Does anybody have an idea what could be the reason for the "flickering" in videos exported from presentations in PowerPoint when played back in MPC-BE (1.5.6 and 1.5.7), MPC-HC (1.9.10) with DXVA cb or native, D3D11 selected in LAV while software decoding works as expected?

I uploaded a simple demo file as well as a screen capture of the problem showing on one of my computers here:
https://www.sendspace.com/filegroup/zkYZ%2BOhLOfJamwiq22IVnA

It also happens in VLC player, but it will run fine using e. g. ffplay.exe (current ffmpeg build - maybe not surprising if ffplay is using software decoding by default).

It happens on Intel UHD 620 and on nVidia RTX 2080 with up to date drivers, but not if QuickSync is selected on the UHD 620 and CUVID on the RTX 2080.

Any help would be greatly appreciated.

el Filou
2nd March 2021, 15:16
You can turn off HW decoding simply for AVC, as indeed any mediocre CPU should be able to handle that.There is a special use case where hardware decode of AVC can be useful even if the CPU can easily handle it and that is broadcast TV where the signal is sometimes wonky. The NVIDIA decoder especially is very good at gracefully handling errors in streams. I sometimes have very short dips of my TV signal, and when that happens HW decode is much better at not producing stutter, whereas software decode causes a big pause in the stream and it takes longer to get an image back. I don't know if mzso sometimes has issues with TV signal, but in my case it's useful and why I keep using hardware decode.

VictorLS
2nd March 2021, 15:58
@el Filou
What namely nVIDIA's HW acceleration the best in your case?

mzso
2nd March 2021, 16:24
Nvidia Control Panel provides the option to deinterlace using Inverse Telecine. Doesn't AMD offer something similar?

How does that even function across the various renderers, decoders?

@mzso
Make a screenshot after pressing Ctrl+J.
Use the new AMD bug reporting tool to submit a description of the problem. And everyone else that can reproduce it should do the same. AMD does seem to work hard on improving drivers lately. But the main reason why some bugs are not getting fixed is the lack of (enough) proper detailed reports.

But I don't know if it's an AMD bug. much less what exactly is happening.

My RX480 does proper HW deinterlacing and the RX580 should be also ok, isn't it ok?.

But with what renderer, or what circumstance? Obviously HW deinterlacing is done by the GPU. If it's initiated.

huhn
2nd March 2021, 16:42
you can read more about this here: https://forum.doom9.org/showthread.php?t=176013

mzso
2nd March 2021, 16:47
You can turn off HW decoding simply for AVC, as indeed any mediocre CPU should be able to handle that.

I might work on deinterlacing d3d11 native streams in the future, but thats a project a bit further down the list, and I barely get time to work on these.
First I want to work on re-envigorating CUVID and soem Blu-ray demuxing improvements. But thats after the next release.

I didn't think of that. Can't remember coming across UHD AVC streams, so it shouldn't be a problem.
So I guess SW deinterlacing would be used by LAV as normal. Though YADIF does have its limitations (https://streamable.com/d8xrrk ) I think I can live with it.
I might work on deinterlacing d3d11 native streams in the future, but thats a project a bit further down the list, and I barely get time to work on these.
First I want to work on re-envigorating CUVID and soem Blu-ray demuxing improvements. But thats after the next release.
Oh well, whenever deinterlacing support happens, happens.

el Filou
2nd March 2021, 16:58
@el Filou
What namely nVIDIA's HW acceleration the best in your case?I don't think there is one that is best for every case, as each have limitations.
I use DXVA2 native for TV (smoother handling or errors in streams, better deinterlacing with madVR), DXVA2 copyback for SD/HD movies (no chroma loss with NVIDIA, allows madVR black bar detection to remove TV logos on 2.39 movies), and D3D11 native when I watch UHD (best performance and quality) which is not often.
I manually change between them with shortcuts to .reg files.How does that even function across the various renderers, decoders?The graphics driver's IVTC functionality works when using hardware deinterlacing and is transparent (you won't know it is working or not without advancing frame by frame during playback). NVIDIA has a checkbox to enable/disable it but AMD has removed all video processing options in their control panel so I guess it's always on? One never knows with AMD these days without testing.So I guess SW deinterlacing would be used by LAV as normal. Though YADIF does have its limitations I think I can live with it.If you use madVR, you can use hardware deinterlacing with software decoding, madVR will upload the frames to the GPU and then use DXVA deinterlacing. Of course this supposes your GPU drivers don't have bugs with deinterlacing.