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

Mercury_22
22nd December 2012, 02:25
@Nev Native it's broken now (black screen) and CB (too ?) seems to fallback to software (after latest ffmpeg update ?)

nevcairiel
22nd December 2012, 09:12
@Nev Native it's broken now (black screen) and CB (too ?) seems to fallback to software (after latest ffmpeg update ?)

Should be fixed.

Mercury_22
22nd December 2012, 12:19
Should be fixed.

It is :thanks:
After tray icons are done any chance to add up-mixing and independent volume for each channel (to be able to control that annoying lower volume from center and surround channel )?

nevcairiel
22nd December 2012, 12:54
Not much of a chance for channel volume, no. I told you before, i won't add such things, you will have to wait for a full matrix control.
Upmixing, i have no great interest in that because simple matrix upmixing just sounds bad.

AndreaMG
22nd December 2012, 16:26
Do you mean you overwrote the "old" .ax files BUT you didn't RE-register the "new" ones? :confused:

FWIW, the tray icons are working as they should over here (XP w/ SP3) :)
Thanks, now I made it work by simply overwriting the files without re-registering the "ax" files and by enabeling only LavVideo the first time I open a file, then I close it and when I reopen a new one only that icon appears (as it should), but if I begin messing with all the other Lav filters by ticking/unticking the tray icon option every single icon appears, maybe I'm doing something wrong, but for now I think I won't touch anything 'cause I need only the Video Icon to be there:)

bat69
22nd December 2012, 16:45
Any solution? :(

Hello, the way I use WMP12 with all codecs and splitters of LAV filters is disabling all windows codecs and splitters through 'win7dsfiltertweaker'. Disable all included 'Media Foundation' then works exclusively with LAV filters.
Sorry for my bad english.

the_weirdo
22nd December 2012, 17:15
Hello, the way I use WMP12 with all codecs and splitters of LAV filters is disabling all windows codecs and splitters through 'win7dsfiltertweaker'. Disable all included 'Media Foundation' then works exclusively with LAV filters.
Sorry for my bad english.

Also, you can use Codec Tweak Tool (http://codecguide.com/download_other.htm#codectweaktool) to set preferred DS source filters for various container formats.

P.J
22nd December 2012, 21:24
Hello, the way I use WMP12 with all codecs and splitters of LAV filters is disabling all windows codecs and splitters through 'win7dsfiltertweaker'. Disable all included 'Media Foundation' then works exclusively with LAV filters.
Sorry for my bad english.

It didn't help. I have the sound but no video =/

Dogway
22nd December 2012, 22:22
I just want to have noted I solved the issue I talked about on a previous post (http://forum.doom9.org/showthread.php?p=1597548#post1597548) in this thread.

AVS files now play seamlessly in MPC-HC using the Windows AVI/WAV File Source (splitter), and AVI Decompressor (Decoder). Now GraphStudio also loads and plays the avs just fine. I don't know what prevented it from working back then, but it really shouldn't be an issue on a healthy/working system. Just to say that the lack of support of LAVfilters for avs files shouldn't be a big deal, which was what I was worried about.

http://i212.photobucket.com/albums/cc35/Dogway/whoar_zpscbbb171c.png

Filter : AVI/WAV File Source - CLSID : {D3588AB0-0781-11CE-B03A-0020AF0BA770}

- Connected to:

CLSID: {E1A8B82A-32CE-4B0D-BE0D-AA68C772E423}
Filter: madVR Renderer
Pin: Input

- Connection media type:

Video: YV12 1024x576 14.989fps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_YV12 {32315659-0000-0010-8000-00AA00389B71}
formattype: FORMAT_VideoInfo {05589F80-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 884736
cbFormat: 88

clsid
22nd December 2012, 22:47
Toggling the tray icon on/off a few times during playback causes a freeze. Seems related to this commit:
http://code.google.com/p/lavfilters/source/detail?r=000a91cb24ca6cf05532f67c0790f304dba6c950
Problem is gone if I change INFINITE to 2000ms.

nevcairiel
22nd December 2012, 23:13
Just changing the timeout is obviously a bad idea, because it would result in leaking a thread object if it never closes properly.
Instead, i rewrote the thread it close itself instead of blocking the calling thread, which eliminates the need for the wait entirely.

boyumeow
23rd December 2012, 04:34
Hi nev,
Just a request, can U make single click to tray icon when opens up menu setting pages to be placed at center of the screens, hope U understands what I mean.
Thanks.

nevcairiel
23rd December 2012, 09:13
I was looking into centering the settings page, but its not as easy as one might think, but i'll get to it, after the holidays.

DragonQ
23rd December 2012, 12:15
It's easy in .NET but I guess you're using C++?

robl45
23rd December 2012, 16:41
i apologize as I'm sure this has been asked 500 times, but just quickly I have been using cuvid and just tried dxva2 with my nvidia gt430 card. cpu usage is with mpc-hc is like half what it is with cuvid. any reason I shouldn't use dxva2 from now on?

dukey
23rd December 2012, 17:02
I was looking into centering the settings page, but its not as easy as one might think, but i'll get to it, after the holidays.

if its a dialog in VS
go to properties -> position -> centre -> true
;p

nevcairiel
23rd December 2012, 17:04
It obviously is not.

Pat357
23rd December 2012, 19:06
i apologize as I'm sure this has been asked 500 times, but just quickly I have been using cuvid and just tried dxva2 with my nvidia gt430 card. cpu usage is with mpc-hc is like half what it is with cuvid. any reason I shouldn't use dxva2 from now on?

If you want to save CPU power (I guess you don't have plenty of it), DVXA native consumes less CPU.
Reason is simple : with CUVID you need an extra copy from frames to CPU-memory, while this is not needed for DXVA native.

So, yes, go for DXVA all the way.

robl45
23rd December 2012, 21:22
If you want to save CPU power (I guess you don't have plenty of it), DVXA native consumes less CPU.
Reason is simple : with CUVID you need an extra copy from frames to CPU-memory, while this is not needed for DXVA native.

So, yes, go for DXVA all the way.

computer is 5 years old or so so not a lot of power. is cuvid going to be better? what will I be missing?

boyumeow
24th December 2012, 04:03
@nev,
There is 1 more thing, I open up the properties page thru' mpc external filters page, if I click the icon it will open up another same properties page again, hope this could be resolved too. I assume U could poke madshi on these matter since he has his icon long enough and I dun see those 2 problems I mention, hehe :D. But if he turn around and poke me, guess I will just lies here dead :p.

Whatever, all these will right after yours Holiday, enjoy and have your happy holiday everyday. :thanks:

wanezhiling
24th December 2012, 09:38
http://www.mediafire.com/?bff9fl5pytfegte
Hi nev, lav video decoder failed..

nevcairiel
24th December 2012, 09:40
@nev,
There is 1 more thing, I open up the properties page thru' mpc external filters page, if I click the icon it will open up another same properties page again, hope this could be resolved too.

That's not a problem, it's meant to work like that. If you open multiple pages, that's what you get.

aufkrawall
24th December 2012, 13:23
Having a problem on an Fusion E-350: It's too slow for DXVA deinterlacing with madVR (even half framerate) and YADIF doesn't work (due to DXVA?).
I think CB wasn't working well. I guess there's no solution?

nevcairiel
24th December 2012, 15:16
If your GPU can't even do half-framerate deinterlacing, then you're pretty much screwed. The CPU in the Fusion APUs is very slow as well, so doubtful you could pull of YADIF anyway.

aufkrawall
24th December 2012, 15:19
Thanks to DXVA, CPU usage isn't high when playing an HD video.
Later I'll give CB another try, but I'm afraid I'm really screwed. :(

DragonQ
24th December 2012, 18:28
Does DXVA2 not work with EVR on an E-350?

aufkrawall
24th December 2012, 18:46
Does DXVA2 not work with EVR on an E-350?
It does, but with GPU deinterlacing it's too slow too, at least with VC-1i 1080p.

Niyawa
25th December 2012, 04:30
Hey nev, thanks for LAV Filters, has been saving my life since months now. I have a question regarding DXVA2.

I'm using it with 8-bit videos, and it's been working well so far, but there are some videos that DXVA2 simply is not used. I'm not talking about 10-bit. For example, there's this anime with 2 Openings, one of them uses DXVA2 while the other doesn't, even thought they have the same video/container and were encoded with the same settings. I don't believe this is normal so I'm wondering if you have any ideas regarding what could be the cause. I'm using MPC-HC 1.6.6.6373 with madVR and Haali Splitter. Windows 8 x64 with Intel HD 4500. I'm using "DXVA2 (native)".

Sorry if I'm not being more detailed about it.

Edit: Thanks wanez for remembering me, was in madVR thread and forgot about it, 14 seconds is enough I presume? Here:

The one where DXVA2 is used (http://www.mediafire.com/file/umpwp5ckk80qj48/Code_Geass_ED-sample.mkv).
The one where DXVA2 is not used (http://www.mediafire.com/file/yd6y4huazufdtrs/Code_Geass_OP-sample-001.mkv).

wanezhiling
25th December 2012, 04:58
You missed the most detailed thing, a sample file.



The one where DXVA2 is not used (http://www.mediafire.com/file/7kugfo3rzl71ybp/Code_Geass_OP-sample.mkv).
Works fine here, haali -> lav native -> madVR

win7 + ivb 4000

nevcairiel
25th December 2012, 08:25
Indeed uses DXVA just fine for me too.

Niyawa
25th December 2012, 08:34
Works fine here, haali -> lav native -> madVR
win7 + ivb 4000
Indeed uses DXVA just fine for me too.
I guess I maybe found out what is the problem. Seems like when xy-VSFilter is present, it doesn't work. The sample I uploaded was without subs, so no wonder it works there, it worked here too now. Try this one instead (http://www.mediafire.com/file/yd6y4huazufdtrs/Code_Geass_OP-sample-001.mkv), but with xy-VSFilter renderer.

nevcairiel
25th December 2012, 08:37
Thats to be expected, any intermediate filter between the decoder and the renderer breaks native DXVA, and there is nothing you can do about it.

wanezhiling
25th December 2012, 08:38
Seems like when xy-VSFilter is present, it doesn't work. Try this one instead (http://www.mediafire.com/file/yd6y4huazufdtrs/Code_Geass_OP-sample-001.mkv), but with xy-VSFilter renderer.

:p No need to try, you just need to learn something.

Niyawa
25th December 2012, 08:39
Thats to be expected, any intermediate filter between the decoder and the renderer breaks native DXVA, and there is nothing you can do about it.
I see, didn't know about that. But that only happens with native and copy-back or with the others too? (CUVID or Intel QuickSync)

:p No need to try, you just need to learn something.
Indeed. I can literally say I learned something today. Last time I used DXVA was a long time ago when it was still at the first version (which was buggy as hell here), and xy-VSFilter didn't even exist I believe. Lately I've been trying DXVA2 so I could include in my guide, and came across the matter. It worked with internal subtitle but not with xy-VSFilter, I had to ask what exactly the "problem" could be, haha.

sneaker_ger
25th December 2012, 08:59
I see, didn't know about that. But that only happens with native and copy-back or with the others too? (CUVID or Intel QuickSync)

Only with DXVA2 native.

xy-vsfilter will be compatible with DXVA2 native and madVR in the not so distant future through a new interface that is similar to that of MPC-HC'S internal subtitle filter, though.

Niyawa
25th December 2012, 09:04
Only with DXVA2 native.

xy-vsfilter will be compatible with DXVA2 native and madVR in the not so distant future through a new interface that is similar to that of MPC-HC'S internal subtitle filter, though.
I see. Thanks guys for taking your time with me.

AndreaMG
25th December 2012, 18:30
Hi Nev,

I noticed that if I untick "DVD" under "codecs for hardware" the HW deinterlacing does not engages, is it correct? Would be possible to be able to soft decode and HW deinterlace? Thanks :)

nevcairiel
25th December 2012, 19:51
That is not possible. If you want hw deinterlacing with software decoding then let the renderer deinterlace.

AndreaMG
26th December 2012, 14:16
Thanks Nev.:)

wanezhiling
26th December 2012, 15:35
Hi nev, http://www.mediafire.com/?9htn5tj84ckaotz
Tested on lavf 6d05724, 2 issues:

1. Greenscreen with dxva2 native on Nvidia card @310.70whql
2. wrong field order(should be "top first" not "bottom frst"), seems that only cuvid mode is right.

nevcairiel
26th December 2012, 15:39
Some files simply have the wrong field order, there is an option to switch it exactly for that reason. :p
Its possible cuvid and ffmpeg have different defaults when no field order can be determined, who knows.

wanezhiling
26th December 2012, 15:43
Ok, how about greenscreen on nv card?

coreavc dxva is just fine.

nevcairiel
26th December 2012, 16:05
I'm looking into it.

nevcairiel
26th December 2012, 16:55
Ok, how about greenscreen on nv card?

Should be fixed.

wanezhiling
26th December 2012, 17:01
So fast..cool.:)

Anima123
27th December 2012, 07:02
Nev,

There's some glitches (no audio output at the L channel, the audio is stereo) with the audio when playing with a 720p rmvb file with raac audio after seeking for several times. This problem only appear when I use LAV Splitter, no problem with the splitter with mpc-hc 1.6.5 stable.

There's quite a few splitter problems with different containers with LAV Splitter, is there something you can do to improve it?

Anything that may help you tracing the bug, please don't hesitate to ask.

Regards,

nevcairiel
27th December 2012, 10:27
There's some glitches (no audio output at the L channel, the audio is stereo) with the audio when playing with a 720p rmvb file with raac audio after seeking for several times. This problem only appear when I use LAV Splitter, no problem with the splitter with mpc-hc 1.6.5 stable.

Sample file or it didn't happen.
For the record, RMVB is just a horrible format.


There's quite a few splitter problems with different containers with LAV Splitter, is there something you can do to improve it?

That sounds more like trolling then a bug report.

Accurate problem descriptions, with sample files, or nothing can be done.

For the record, it works just perfectly for me. :p

Mercury_22
27th December 2012, 10:55
http://www.mediafire.com/?bff9fl5pytfegte
Hi nev, lav video decoder failed..

I can confirm this but the splitter seems to be the problem cause enabling the internal splitter in MPC-BE (http://aleksoid.voserver.net/MPC-BE/?C=M;O=A) and using lav video and audio the sample it's working using lav splitter it doesn't

nevcairiel
27th December 2012, 11:04
The file has a "odd" FourCC used by one specific authoring tool, apparently.
There is two ways to fix such a file, either you overwrite the type in the splitter, or you make the decoder recognize the FourCC, i decided to do the second.

Mercury_22
27th December 2012, 11:43
The file has a "odd" FourCC used by one specific authoring tool, apparently.
There is two ways to fix such a file, either you overwrite the type in the splitter, or you make the decoder recognize the FourCC, i decided to do the second.

Seems to be working now :thanks: