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

CruNcher
22nd November 2011, 01:32
We've ended this discussion in this thread for good reason. :) I'm not suggesting we simply ignore errors. I'm simply saying we should strive to make it a bit friendlier for the end user. Blatant crashing is generally NOT user friendly. :D Giving the user a way to help the developer with a nice log and graceful exit.....that should be the ideal. But, again, this is a religious debate among developers and really doesn't belong in this thread.

Yep and that's whats going in in Win7 all the time @ least i realize much more going on their then it was the case for NT5 (XP) it's just very well hidden and as said absolute non invasive avg joe would never realize that a exception was caught the application still works as nothing happened (i dunno how this can work) anyways i opened the other thread for this as i was amazed by it and the amount of data it collects :)

SamuriHL
22nd November 2011, 01:34
Yep and that's whats going in in Win7 all the time @ least i realize much more going on their then it was the case for NT5 (XP) it's just very well hidden and as said absolute non invasive avg joe would never realize that a exception was caught the application still works as nothing happened anyways i opened the other thread for this as i was amazed by it and the amount of data it collects :)

And I'm honestly AGAINST that. I don't want the issues to be hidden. At all. They'll never get fixed that way. The software should be robust, yes, but, you can't hide issues from the user or they won't report them.

CruNcher
22nd November 2011, 01:39
And I'm honestly AGAINST that. I don't want the issues to be hidden. At all. They'll never get fixed that way. The software should be robust, yes, but, you can't hide issues from the user or they won't report them.

ehh watson immediately sends out what happened to Microsoft :D

SamuriHL
22nd November 2011, 01:40
ehh watson immediately sends out what happened to Microsoft :D

Oh good. Then Nev and madshi can not worry about it and let MS fix it. :rolleyes: :D ROFL!

CruNcher
22nd November 2011, 03:35
Moving pictures are always better than 1000 words ;)

http://www.mediafire.com/?xy58iy19fzqs57f <- Mainconcept Mpeg-2 Decoder Hang issue

Midzuki
22nd November 2011, 04:25
@ SamuriHL:

THEY ;) have hired CruNcher alright. :D

chaddawkins
22nd November 2011, 08:15
Sure, some day. Its not high priority (for me), as i don't even have a single file that would need it. :)
Its also alot of work...

yeah, i don't use chapters either, but if this was developed I def would
+1

chaddawkins
22nd November 2011, 08:45
hold up, i've only been using this for a week and i just now opened a mkv file with graphedit and it tells me that i'm using microsoft video decoder to decode my file. i assumed lav splitter chooses lav audio AND video decoders .... am i missing something here? do i need to use a registry hack to get lav video to work? what am i missing?

nevcairiel
22nd November 2011, 08:54
LAV Splitter does not choose any decoder, its all up to the application to choose which decoders are used.

chaddawkins
22nd November 2011, 09:07
LAV Splitter does not choose any decoder, its all up to the application to choose which decoders are used.

ok... i've been using WMP
I thought it chose like Haali can choose CoreAVC withouit any registry hacks...
well, then i suggest lav splitter do this :D

CruNcher
22nd November 2011, 12:35
You know whats really crazy seeing Mainconcepts DXVA implementations failing with so many bitstreams it's crazy both their H.264 as well as Mpeg-2 have major issues they even get beaten by Potplayers (which is damn good for a no name ISV) implementation :D

teplex
22nd November 2011, 12:48
As I don't have patience to read through 360+ pages of this topic, I'd like to ask if it is planned to get CUVID hardware decoder to work with 10-bit depth (CoreAVC also doesn't work with hardware decoding and 10-bit). Is this even doable or problem is of hardware nature (limitation of CUDA video decoder in nvidia drivers). I'm asking this because I have poor CPU (A64 X2 3800+) and 10-bit videos in 1080p reolution sometimes lag on my PC.

kirakami
22nd November 2011, 12:54
is LAV Player planned?

nevcairiel
22nd November 2011, 13:23
As I don't have patience to read through 360+ pages of this topic, I'd like to ask if it is planned to get CUVID hardware decoder to work with 10-bit depth (CoreAVC also doesn't work with hardware decoding and 10-bit). Is this even doable or problem is of hardware nature (limitation of CUDA video decoder in nvidia drivers). I'm asking this because I have poor CPU (A64 X2 3800+) and 10-bit videos in 1080p reolution sometimes lag on my PC.

Its not possible, it would have to be supported by the hardware - and the hardware does not support it.

chaddawkins
22nd November 2011, 13:32
could someone kindly direct me to a non auto-loading version of DirectVobSub. thank you.

kirakami
22nd November 2011, 14:43
could someone kindly direct me to a non auto-loading version of DirectVobSub. thank you.

1st do regsvr32 /u %system32%\vsfilter.dll
create dir & copy vsfilter.dll to program files\vsfilter\
Run MPC-HC
go to External Filters > Add Filter > Browse to program files\vsfilter\
Uncheck auto-loading version of DirectVobSub
Done.

Paladin77
22nd November 2011, 14:56
chaddawkins: http://www.free-codecs.com/download/directvobsub.htm, Google's first result.

Hello Nevcairiel,
I have just started using this amazing splitter/decoder/filter. Thank you very much for this. I am having absolutely no issue so far with playing various formats I use with it (mostly 8 and 10 bit anime titles). I just want to ask from you to check if the settings am using are OK (if you have a minute of course :)):

Player: MPC-HC Build 1.5.3.3849
Internal filters used: None (All Disabled).
Output (EVR-custom pres.)
Filter Order:
Haali Media Splitter (for ordered chapter support).
File source (Async.).
LAV splitter.
madflac Decoder.
Reclock audio Renderer.
LAV audio Renderer.
LAV video Renderer.

With the above setup I can play all files flawlessly without a hiccup on my relatively old system (see my signature), even 10 bit 720p videos play at a relatively low CPU load (around 30%). If you have any input on further tweaking this for even better performance I would be appreciative.

Kind regards and thanks again for this masterpiece.

tetsuo55
22nd November 2011, 16:32
Microsoft really does fix problems, they will even contact ISV's and help them find a solution.

To get to this point though you have to be in the top10 issue list.

SamuriHL
22nd November 2011, 16:39
Microsoft really does fix problems, they will even contact ISV's and help them find a solution.

To get to this point though you have to be in the top10 issue list.

Only if the problem is really on their end, though. If there's a bug in madVR or LAV Filters, I'm thinking they're not going to fix those. LOL! :)

kirakami
22nd November 2011, 17:10
chaddawkins: http://www.free-codecs.com/download/directvobsub.htm, Google's first result.

Hello Nevcairiel,
I have just started using this amazing splitter/decoder/filter. Thank you very much for this. I am having absolutely no issue so far with playing various formats I use with it (mostly 8 and 10 bit anime titles). I just want to ask from you to check if the settings am using are OK (if you have a minute of course :)):

Player: MPC-HC Build 1.5.3.3849
Internal filters used: None (All Disabled).
Output (EVR-custom pres.)
Filter Order:
Haali Media Splitter (for ordered chapter support).
File source (Async.).
LAV splitter.
madflac Decoder.
Reclock audio Renderer.
LAV audio Renderer.
LAV video Renderer.

With the above setup I can play all files flawlessly without a hiccup on my relatively old system (see my signature), even 10 bit 720p videos play at a relatively low CPU load (around 30%). If you have any input on further tweaking this for even better performance I would be appreciative.

Kind regards and thanks again for this masterpiece.

What does File source (Async) do?
where can i download it?
i googled but couldnt find download link only msdn info

andyvt
22nd November 2011, 17:15
What does File source (Async) do?


Reads data from files and presents it as a MEDIATYPE_Stream, saving splitters from having to implement the file source logic themselves.


where can i download it?
i googled but couldnt find download link only msdn info

It's included in the OS.

HeadlessCow
22nd November 2011, 17:34
Only if the problem is really on their end, though. If there's a bug in madVR or LAV Filters, I'm thinking they're not going to fix those. LOL! :)

Nah, they'll investigate and report problems in third-party code and provide crash dumps and, in some circumstances, analysis about what the bug is (and how to fix it).

chaddawkins
22nd November 2011, 22:34
1st do regsvr32 /u %system32%\vsfilter.dll
create dir & copy vsfilter.dll to program files\vsfilter\
Run MPC-HC
go to External Filters > Add Filter > Browse to program files\vsfilter\
Uncheck auto-loading version of DirectVobSub
Done.

This works for MPC-HC but I use WMP.
I need a VSFilter.dll that I can regsvr32 /s vsfilter.dll and it not be auto-loading.

chaddawkins: http://www.free-codecs.com/download/directvobsub.htm, Google's first result.

This is the auto-loading version.
I need one that is not by default

thanks anyways guys/gals but i'm still where i was yesterday :(

CruNcher
22nd November 2011, 23:33
All of those that are really on the edge of being able to playback something and evr custom is still to resource heavy should try either Potplayers Direct3D Renderer or the same one from Mirillis inside Splash Player those are really low resource renderer and @ least with Mirillis you have everything available like on EVR (Shader,Subtittle) including DXVA :)

Only if the problem is really on their end, though. If there's a bug in madVR or LAV Filters, I'm thinking they're not going to fix those. LOL! :)

Ehh why should they fix others problems nope they wont but they gonna contact them (if the userbase is big enough the problem can be related to, the priority list tetsuo55 talked about) and also make them a offer to get access to further telemetry it's a win win situation :)

DragonQ
22nd November 2011, 23:50
Should be getting my HTPC parts on Friday (minus the stupid out of stock tuner card). Will be hopefully using LAV + CUVID + MadVR in MediaPortal :D. I don't think MadVR works in MediaPortal though so I'll probably have to use MPC-HC as an external player.

pirlouy
23rd November 2011, 00:29
is LAV Player planned?
You did not have answer because it has already been asked since Nevcairiel officially criticizes MPC-HC code (hence player).
He said it might work on a player... when this list (http://code.google.com/p/lavfilters/issues/list?can=2) is empty.
Yes, it's dead. :D

rica
23rd November 2011, 00:42
He said it might work on a player... when this list (http://code.google.com/p/lavfilters/issues/list?can=2) is empty.


Such kind of a list would never be empty for professional players as well.

So should be better:

Splitter:
Some additional codes for acceptance of DVD and BD.

Video Decoder:
DXVA support for Ati and Sandy.

Audio Decoder:
None for the time being while using free codecs.

Dunno if you are awared of PDVD, TMT and WinDVD have several issues which is listed above?

Pat357
23rd November 2011, 03:49
Nev,

IIRC you fixed .h264 playback (raw stream) a while ago. I remember I tested it and it worked perfect then.
Now I wanted to playback the same .h264 files, but it doesn't work anymore for me...:scared: playback "stalls" at the beginning.
I tried using the Mediaconcept splitter and the Elecard video decoder : playback is OK. The latest FFPlay (16-11-11) I have also works fine.
I'm not sure if it's a splitter problem or a decoding problem in Lav-video (could still be FFmpeg related though).
I obviously had "raw video" enabled in Lav-vid.
Can you have a look at it ?

suanm
23rd November 2011, 04:13
thanks a lot,keep on improving it,please

roytam1
23rd November 2011, 04:28
new nightly (mkv branch):
http://roy.orz.hm/lavf-w32-nightlies/lavf-my111123-mkv-rv34seekkeyframe-ee26771.7z

diff (yes it is still the rv3/4 key frame seek patch):
http://roy.orz.hm/lavf-w32-nightlies/lavf-my111123-mkv-rv34seekkeyframe-ee26771.diff

Pat357
23rd November 2011, 04:31
Splitter:
Some additional codes for acceptance of DVD and BD.

Video Decoder:
DXVA support for Ati and Sandy.
Why exclude NVidia ?
We have HW decoding using CUDA/CUVID which is of coure already very nice and very stable,
but DXVA2 might be more efficient as we don't need to copy the frames to "PC" RAM and back to GPU.
DXVA would skip this the copy process of the frames from GPU to PC RAM and back before rendering.
But to be honest, I believe more in software decoding than in DXVA : look how much problems & limitations DXVA (and HW decoding in general) has.
I only use CUVID for (interlaced) VC-1 because there is no proper software solution available.
It either doesn't work (FFMpeg) or it's slow/single threaded (MS, Intel SDK).

Audio Decoder:
None for the time being while using free codecs.
Huh.. ??
What about a channel "matrix" for properly down-mixing everything to stereo, or 7.1 to 5.1, ... ? And elementary "sound processing" from libav ?
It's already in the libav lib, so it's more a matter of calling the right filters from libav then having to code everything from scratch.

Dunno if you are awared of PDVD, TMT and WinDVD have several issues which is listed above?
This is so much true ; just have a look at the forums !

Pat357
23rd November 2011, 04:43
This works for MPC-HC but I use WMP.
I need a VSFilter.dll that I can regsvr32 /s vsfilter.dll and it not be auto-loading.



This is the auto-loading version.
I need one that is not by default

thanks anyways guys/gals but i'm still where i was yesterday :(
Why don't you just configure it to "never autoload" ?
General -> loading -> choose "do not load" and untick the 3 boxes.
Does it still load in WMP after this ?
(I guess it's best to "log off" or restart after making the changes.)
Does this help ?

nevcairiel
23rd November 2011, 06:52
IIRC you fixed .h264 playback (raw stream) a while ago. I remember I tested it and it worked perfect then.
Now I wanted to playback the same .h264 files, but it doesn't work anymore for me...:scared: playback "stalls" at the beginning.

I just tried again and it seems to work just fine with LAV Splitter + LAV Video.

new nightly (mkv branch):
http://roy.orz.hm/lavf-w32-nightlies/lavf-my111123-mkv-rv34seekkeyframe-ee26771.7z


Please don't post that branch yet, it'll be broken quite alot before it starts being usable. Right now there is zero difference, but once i activate it, it'll break quite a bit before its finished. :)
There usually is a reason when i do stuff in branches - its not ready to be used by everyone yet. :p

Edit:
I changed my mind, its somewhat ready-ish for testing, if someone dares to.

CruNcher
23rd November 2011, 10:59
Why exclude NVidia ?
We have HW decoding using CUDA/CUVID which is of coure already very nice and very stable,
but DXVA2 might be more efficient as we don't need to copy the frames to "PC" RAM and back to GPU.
DXVA would skip this the copy process of the frames from GPU to PC RAM and back before rendering.
But to be honest, I believe more in software decoding than in DXVA : look how much problems & limitations DXVA (and HW decoding in general) has.
I only use CUVID for (interlaced) VC-1 because there is no proper software solution available.
It either doesn't work (FFMpeg) or it's slow/single threaded (MS, Intel SDK).

Huh.. ??
What about a channel "matrix" for properly down-mixing everything to stereo, or 7.1 to 5.1, ... ? And elementary "sound processing" from libav ?
It's already in the libav lib, so it's more a matter of calling the right filters from libav then having to code everything from scratch.

This is so much true ; just have a look at the forums !

Bitstream wise it seems no issue @ all see how CoreAVC and Mirillis fixing most issues that others DXVA implementation fail on without creating much more overhead :) the only real limits you have are anything above 8 bit and 4:2:0 though for those you can switch to the Software Decoder part for now until they get hammered for consumers into hardware which might still take a while :P

tetsuo55
23rd November 2011, 11:11
Only if the problem is really on their end, though. If there's a bug in madVR or LAV Filters, I'm thinking they're not going to fix those. LOL! :)They are not going to fix bugs in LAV Filters or madVR, but IF their bugs got into the top10 they would contact madshi or nev and try to help them solve it, not by direct coding but by giving advice and tools.

somy
23rd November 2011, 11:38
I have a stupid question regarding which output format to choose for EVR on ATI HD5770.
It seems that NV12 is preferred for hardware deinterlacing and pulldown detection, but EVR does a pretty bad job converting NV12 to RGB32 (noticable banding allover). If I choose RGB32 I get perfect PQ, but what about deinterlacing and pulldown detection?

chaddawkins
23rd November 2011, 12:21
Why don't you just configure it to "never autoload" ?
General -> loading -> choose "do not load" and untick the 3 boxes.
Does it still load in WMP after this ?
(I guess it's best to "log off" or restart after making the changes.)
Does this help ?

i'm good now, i can use the auto-load version.

Just for shits and giggles, you can try my personal codec pack for wmp
http://netload.in/datei4yM2MArCTq/WMP_Playback_Pack_2.1.exe.htm

it is LAV, VSfilter, MediaInfo, Icaros & correct registry entries to associate/play/enquue WMP with MKV, FLV and Blu-ray
x86 & x64

CruNcher
23rd November 2011, 12:33
did someone compared Microsofts MFT vs Icaros in terms of thumbnail buildup speed/memory/io/cpu/gpu usage for @ least the default supported formats and crash stability (buffer overflows) ? bringing something so sensitive deep down into the system i wouldn't feel good without testing it carefully.

Kurtnoise
23rd November 2011, 13:52
completely off topic...

SamuriHL
23rd November 2011, 14:44
They are not going to fix bugs in LAV Filters or madVR, but IF their bugs got into the top10 they would contact madshi or nev and try to help them solve it, not by direct coding but by giving advice and tools.

Admittedly that is pretty sweet.

Sent from my Xoom using Tapatalk

nevcairiel
23rd November 2011, 14:47
Please don't post that branch yet, it'll be broken quite alot before it starts being usable. Right now there is zero difference, but once i activate it, it'll break quite a bit before its finished. :)
There usually is a reason when i do stuff in branches - its not ready to be used by everyone yet. :p

I changed my mind, after i push all changes in a few hours, it should be working ok-ish for people that dare to test it.
You can follow progress here: http://code.google.com/p/lavfilters/issues/detail?id=139
Basics done, advanced features missing. ;)

Qaq
23rd November 2011, 14:54
EVR does a pretty bad job converting NV12 to RGB32 (noticable banding allover). If I choose RGB32 I get perfect PQ, but what about deinterlacing and pulldown detection?
Nothing. Use EVR CP and its dithering, 16/32 floating point surfaces options.

Sebastiii
23rd November 2011, 16:39
I changed my mind, after i push all changes in a few hours, it should be working ok-ish for people that dare to test it.
You can follow progress here: http://code.google.com/p/lavfilters/issues/detail?id=139
Basics done, advanced features missing. ;)

I will try :)
Thanks :)

DragonQ
23rd November 2011, 17:06
Nothing. Use EVR CP and its dithering, 16/32 floating point surfaces options.
How does one change EVR's options? The options for EVR within MPC-HC are rather limited and that's the only way I've ever used EVR.

Qaq
23rd November 2011, 20:18
How does one change EVR's options? The options for EVR within MPC-HC are rather limited and that's the only way I've ever used EVR.
I said EVR CP, not just EVR. Check this thread: http://forum.doom9.org/showthread.php?t=161047

somy
23rd November 2011, 20:44
Nothing. Use EVR CP and its dithering, 16/32 floating point surfaces options.

The thing is, I'm using a media center which only supports overlay and EVR :(

VipZ
24th November 2011, 00:36
I changed my mind, after i push all changes in a few hours, it should be working ok-ish for people that dare to test it.
You can follow progress here: http://code.google.com/p/lavfilters/issues/detail?id=139
Basics done, advanced features missing. ;)

Looking good so far, all mkv's tested working good and the LAV Video stream AR option working as before :)

Wodde
24th November 2011, 01:04
@nevcairiel:

First: LAV is Great, love it :)

I just want to know whats the Status with the BluRay Title Selection?
You're still working on it?

Thanks in Advance, Wodde

rica
24th November 2011, 01:12
Why exclude NVidia ?

It is already supporting CUDA and i use it too. So i didn't need to say "it should support CUDA as well."

jmone
24th November 2011, 02:17
@nevcairiel:

First: LAV is Great, love it :)

I just want to know whats the Status with the BluRay Title Selection?
You're still working on it?

Thanks in Advance, Wodde

Thanks to LAV Splitter and MC17 we already have BD Title Selection.