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

nevcairiel
26th November 2012, 19:10
Great, thanks for confirming.

chros
26th November 2012, 21:24
A quick question regarding video decoding on nvidia GPU and dxva2n with madvr: is there any advantage using dxva2n over cuvid ? (performance, quality, etc.)

Thanks for your hard work!

DragonQ
26th November 2012, 21:49
A quick question regarding video decoding on nvidia GPU and dxva2n with madvr: is there any advantage using dxva2n over cuvid ? (performance, quality, etc.)

Thanks for your hard work!
DXVA2 Native uses less power.

dansrfe
26th November 2012, 23:57
Feature request:

Keyboard shortcut to increase/decrease audio delay by specified amount on-the-fly for the current file.

huhn
27th November 2012, 07:56
plus minus at mpc hc

owlsroost
27th November 2012, 10:10
I think i actually finally figured it out, and fixed the problem.

Try with this version:
http://files.1f0.de/lavf/LAVFilters-0.54-4-gc509fe2.zip

I would also appreciate if anyone could test this version with DXVA2 Native or CB on older Intel GPUs, if anyone has one? Like the 4500MHD? or Atoms?

Here is a sample which broke before this version, but works on SNB/IVB now:
http://files.1f0.de/samples/Madoka-002.mkv

Any feedback would be great, please confirm if its using DXVA2 on this sample, it will fallback to software if your Hardware and/or Driver doesn't support the proper H.264 spec (only on this sample, others with fewer reference frames will still use DXVA2 on those systems).

If you still have issues, a DXVA Checker report might be useful.

Tried the sample on Intel HD graphics (i5-460M 'Arrandale') - always falls back to software (which I suspect is the correct thing to do) and plays OK.

Tony

nevcairiel
27th November 2012, 10:11
Ok thanks, looks like the old Intel GPUs do not offer the same functionality as the SNB/IVB GPUs then (which was mistakenly simply ignored before :p)

wanezhiling
27th November 2012, 11:17
http://pan.baidu.com/share/link?shareid=138396&uk=3558042035

VP62, lav cant work.

owlsroost
27th November 2012, 11:24
Ok thanks, looks like the old Intel GPUs do not offer the same functionality as the SNB/IVB GPUs then (which was mistakenly simply ignored before :p)

Here's the info from DXVA Checker.

Tony

nevcairiel
27th November 2012, 18:04
Here's the info from DXVA Checker.


I figured it would only have the Intel-specific ClearVideo H.264 variants, and not the generic ones, thanks.

filler56789
27th November 2012, 18:23
According to GSpot, LAV Video doesn't have "MEDIATYPE_DVD_ENCRYPTED_PACK", which apparently is required by MPC-HC for connecting an MPEG-2 decoder to Windows XP's DVD Navigator. Is that intentional? :)

nevcairiel
27th November 2012, 18:54
According to GSpot, LAV Video doesn't have "MEDIATYPE_DVD_ENCRYPTED_PACK", which apparently is required by MPC-HC for connecting an MPEG-2 decoder to Windows XP's DVD Navigator. Is that intentional? :)

But it does have it. If it seems missing, then re-register a recent version, in case you just overwrote it without registering. :p

filler56789
27th November 2012, 19:09
:stupid:

Thanks :thanks: for the clarification.

nevcairiel
27th November 2012, 19:10
http://pan.baidu.com/share/link?shareid=138396&uk=3558042035

VP62, lav cant work.

Looks like this file is interlaced VP6, ffmpeg doesn't implement this.

nevcairiel
27th November 2012, 19:43
LAV Filters 0.54.1

LAV Splitter
- Improved seeking in MP4 files created by Windows Live Movie Maker

LAV Video
- Improved H.264 DXVA on recent Intel GPUs (Sandy/Ivy Bridge and newer Atoms)
- Fixed corruption with high number of reference frames ( > 11 )
- Fixed corruption in MBAFF interlaced content
- Fixed an issue that caused DVD menus/subtitles to stop working in DXVA2 Native mode in some situations


Download: Installer (both x86/x64) (http://files.1f0.de/lavf/LAVFilters-0.54.1.exe) -- Zips: 32-bit (http://files.1f0.de/lavf/LAVFilters-0.54.1.zip) & 64-bit (http://files.1f0.de/lavf/LAVFilters-0.54.1-x64.zip)

So, it appears Intel does actually support full spec compliant H.264 DXVA on Sandy Bridge/Ivy Bridge and newer Atoms (just a slightly different part of the spec which is not used by NVIDIA/AMD), my implementation just wasn't 100% spec compliant, but now it is, and decoding on those CPUs/GPUs is now much better.
This change should not affect older Intel GPUs, except that i also added some checks to properly fallback to software decoding if you try to play a file with more than 11 reference frames on an old Intel GPU (which doesn't support this properly).

Anyway, as always please report any issues, especially regressions.

- nev

06_taro
27th November 2012, 20:00
nev, lavr has fixed the 8->2 channel mixing crash on x86_32 ( commit (http://git.libav.org/?p=libav.git;a=commit;h=7a9e65aceee678ee2677480579cb3b2208474140) ), and I've confirmed that reverting "avr: disable 8 -> 2 optimized mixing on 32-bit because of a crash" and compiling lavf with latest FFmpeg (merged with your branch) won't result in crash any more, so it should be safe to re-enable those asms.

nevcairiel
27th November 2012, 20:02
I know, i was the one that reported the crash to them in the first place. ;)
Will be changed when i next update, probably for the next release, unless i need to do small fixes again.

06_taro
27th November 2012, 22:30
I see.

edit: delete for misleading....

nevcairiel
27th November 2012, 22:30
I think you misread what i wrote. :p

06_taro
27th November 2012, 22:34
Oops. Yes I did.

wanezhiling
28th November 2012, 02:10
Looks like this file is interlaced VP6, ffmpeg doesn't implement this.

Ok thanks.
Almost all ffmpeg based players/decoders fail.


http://www.free-codecs.com/VP6_download.htm
Install it and it works now.


Since ffmpeg doesn't implement interlaced VP6, why not just disable it?:) Because I still wanna use lav video for progressive VP6.

dansrfe
28th November 2012, 03:41
plus minus at mpc hc

This doesn't work when I try it. Do I have to change something in the key bindings in MPC-HC? Do I have to change anything in LAV Audio?

pie1394
28th November 2012, 03:49
The new AMD/ATi graphics driver's quality is really terrible.

Unified Catalyst 12.10 Win7x64 on Radeon HD5450M (HP TouchSmart TM2-2102tx) seems broken with DXVA2 MPEG2 VLD mode. With this driver, dxva2n only works with H.264 VLD...

Unfortunately this is the only CAT 12.x driver works for switchable graphics modes and changing built-in LCD panel's color settings instead of GPU's. All AMD packed CAT 12.x driver sets seem to provide Intel graphics driver 9.x, which is incompatible with the 1st-gen Core i3-380UM. Otherwise I have to roll it back to old CAT 11.12 ...

MS-DTV decoder supports DXVA1 MPEG2 iDCT / MC modes, so it still get partial MPEG2 acceleration with this decoder.

The funny thing is that MPEG2_VLD is listed in Open Video Decoder profiles.


http://i.imgur.com/vjAJs.png (http://imgur.com/vjAJs)

http://i.imgur.com/NNXqQ.png (http://imgur.com/NNXqQ)

wanezhiling
28th November 2012, 03:59
Only UVD3.0 cards (HD6xxx and above) have MPEG2_VLD, which is not a secret in doom9, so what you see is common.

Prinz
28th November 2012, 14:58
Hi nevcairiel,

do I misunderstand the readme?

If multiple audio tracks match one language, the choice is based on the quality. The primary attribute here
is the number of channels, and after that the codec used. PCM and lossless codecs have a higher priority
then lossy codecs.

http://i47.tinypic.com/2wc1d9v.jpg

Should not the 5.1 track be selected instead of the stereo track in this case?

nevcairiel
28th November 2012, 15:03
Should not the 5.1 track be selected instead of the stereo track in this case?

The "[default]" flag overrides quality based decisions, only the language is checked.

Prinz
28th November 2012, 15:11
I thought so. Then the error is text in the readme, because the primary attribute is the default flag not the channel count.

nevcairiel
28th November 2012, 15:14
The text is correct, the primary attribute for quality is the channel count, it just doesn't mention the default flag in the audio-specific part. :p

clsid
28th November 2012, 20:33
DVD playback is b0rked with Overlay Mixer in MPC on Win7 here. Problem seems to be caused by a wrongly guessed stride (720 instead of 768).

If I uncomment the two lines above this one, then playback is OK:
DbgLog((LOG_TRACE, 10, L"-> We did not get a stride request, using width %d for stride", pBIH->biWidth));

(PS, yes I know overlay should not really be used on win7, I was just testing various stuff)

pirlouy
28th November 2012, 22:38
(PS, yes I know overlay should not really be used on win7, I was just testing various stuff)
Just for my curiosity, why Overlay should not be used ?
Before madVR 0.11, I used to use Overlay Mixer renderer, and it was working well.

nevcairiel
28th November 2012, 22:42
With overlay you're entirely at the mercy of the GPU, which is usually a horrible idea, even EVR does a better job then that. Also, Overlay has some other issues, window movement is sluggish and it forces Aero off. Its the most efficient renderer in regards to performance (if you dont want DXVA), but its also the most simple with basically zero features and zero control about what happens. That it turns Aero off is already annoying enough for me. ;)

From a technical standpoint, its also brain-dead stupid and doesn't implement DirectShow properly, so right now its broken again with LAV and probably needs some custom hacks to work again.

pirlouy
28th November 2012, 23:09
Aero forces Vsync and for that I think it sucks; unfortunately, if you disable Aero, there are visual glitches everywhere (+ poor performance), so disable it forever is not feasible. Fortunately Direct3D madVR allows to turn Aero Vsync off for video playback.

But I've heard your others points; thanks for the info. :)

Mangix
28th November 2012, 23:10
good thing madVR supports an overlay mode :P

Anima123
29th November 2012, 01:04
nevcairiel, I encountered an ogg file which cause trouble using the latest LAVFilters 0.54.1.

I have sent you splitted file with pm. Please take a look at it.

The ogg splitter with mpc-hc handles it very well though.

Snowknight26
29th November 2012, 01:52
Any chance you can enable VMNC support, nev?

war59312
29th November 2012, 03:32
LAV Video
- The DXVA2 Native decoder can now properly detect hardware support for video resolutions
- Allows 4K DXVA2 decoding on NVIDIA
- New options to control which resolutions are being handled by the hardware decoder (SD, HD and 4K/UHD)

Does that mean if the 4k option is selectable that my graphics card should support 4K DXVA2 decoding ?

Tested with the 4k videos from youtube. And MPC-HC info screen says "Not using DXVA".

Yes the new "UHD (4K)" option is checked in lav filter.

My graphics card is 1 Nvidia GeForce GTX 470.

List of graphics cards supported? Perhaps add to faq on front page?

Update: http://en.wikipedia.org/wiki/Nvidia_PureVideo#Table_of_PureVideo_.28HD.29_GPUs

So looks like my card does NOT do 4k. Darn!

If your card does not support 4k then the option in lav filter should be grayed out as to not make the user think their card supports 4k when it really does not.

wanezhiling
29th November 2012, 03:40
If your card does not support 4k then the option in lav filter should be grayed out as to not make the user think their card supports 4k when it really does not.
Good idea, duuno whether its hard for nev.

nevcairiel
29th November 2012, 07:58
good thing madVR supports an overlay mode :P

madVRs overlay mode has nothing to do with the "Overlay Mixer", completely different things.


If your card does not support 4k then the option in lav filter should be grayed out as to not make the user think their card supports 4k when it really does not.

Thats not possible. It will always show all options, the config does not have access to the decoder itself to check for such things (and some decoders like QuickSync or CUVID don't tell me such infos, they just fail at decoding 4K and trigger the software fallback). This will not change, it would be way too much effort for a visual fix.
Resolution support may also depend on which codec is used, so there is more combinations possible then the UI can show.

bejita7
29th November 2012, 13:59
Can you give approximate ETA for ordered chapters/editions support in LAV Splitter?

malmsteen81
29th November 2012, 14:17
i have a question, if i use dxva (native o CB) with ati card without yadif enabled, does ati deinterlace dvd or 1080i files?

thanks

sneaker_ger
29th November 2012, 14:26
i have a question, if i use dxva (native o CB) with ati card without yadif enabled, does ati deinterlace dvd or 1080i files?

Depends on the renderer, but on e.g. EVR or madVR with standard settings: yes, the graphics card will do the deinterlacing. This is done by the renderer and not by LAV, though.

ajp_anton
29th November 2012, 16:18
Had corrupted Intel-DXVA decoding a few days ago. Forgot which clip it was.
Found it today. Installed 54.1, no corruption. Perfect, thanks =).

bugmen0t
29th November 2012, 17:46
Hallo nev, is it possible that LAV Audio sometimes overflows when using mixing with clipping protection (very loud btw) and integer output formats (needed for some of my tools)? Normalization is fine but much quieter of course. BTW is dithering used when converting floats to integers? And do you use the mean or rms for normalization?

manma
29th November 2012, 20:06
Is there any reason to use DXVA2 over quicksync? Does it offer any performance improvements when used along with madvr?

Mangix
29th November 2012, 22:41
madVRs overlay mode has nothing to do with the "Overlay Mixer", completely different things.

It's similar in the sense that the presentation isn't copied back to main memory(hence no screenshots) which would mean less potential for glitching/stuttering. And aero can continue to be on. I guess less stutter is the reason to use Overlay so madVR may help there. Not too sure.

Anleck
29th November 2012, 23:41
Hello, a little advice needed please.
I can not get LAV splitter to work with dvd's. The problem started after some software upgrades (was perfect before).
LAV video is working with dvd, including Hardware acceleration, and LAV splitter is being used for just about everything except dvd's.

I have reinstalled drivers and LAV back to the last known working combination without success. I have tried the latest release of mpc-be and mpc-hc with 54.1 LAV filters. I also tried manually cleaning out the registry before reinstalling, but I keep coming back to the same point (everything fine except dvd's).

I am running Windows8dp and wish to avoid reinstalling (I had a disc image which conveniently disappeared)

If anyone could give me some registry values to check I would be grateful.

PS- I had individual vob's playing using LAVsplitter but could not get the disc as a whole to play fine.

war59312
30th November 2012, 00:21
If your card does not support 4k then the option in lav filter should be grayed out as to not make the user think their card supports 4k when it really does not.

Thats not possible. It will always show all options, the config does not have access to the decoder itself to check for such things (and some decoders like QuickSync or CUVID don't tell me such infos, they just fail at decoding 4K and trigger the software fallback). This will not change, it would be way too much effort for a visual fix.
Resolution support may also depend on which codec is used, so there is more combinations possible then the UI can show.ok no big deal. Thanks for the details.

dansrfe
30th November 2012, 05:58
When I'm playing a flac file it stops 2/3 of the through and MPC-HC says playing but nothing happens even when I play/pause the player.

ryrynz
30th November 2012, 08:24
When I'm playing a flac file it stops 2/3 of the through

No problems here (using 0.54.1)

Weirdo
30th November 2012, 11:29
I'm getting regular player crashes (DVBViewer + Media Center 18 w.custom video mode) with 0.54.1 after a couple of minutes. Not sure if it's LAV, reverted to 0.53.2 and it works fine for now. Win 8 x64, AMD 5670.