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 509 510 511

nevcairiel
10th February 2012, 15:01
I have a hard-limit of i think 125 fps, if the header reported value is above that i don't trust it and use the (somewhat inaccurate) measured value (417225 isn't exact)

This is also the reason why i rather use the timestamps instead of basing any calculations on the fps. :)

egur
10th February 2012, 15:08
I have a hard-limit of i think 125 fps, if the header reported value is above that i don't trust it and use the (somewhat inaccurate) measured value (417225 isn't exact)

This is also the reason why i rather use the timestamps instead of basing any calculations on the fps. :)

Thanks.
Unfortunately your time stamp trickery is possible at the filter level only.

Pat357
10th February 2012, 21:56
post proof? lols :rolleyes:
heres your proof, the cover scan
Did this picture come from your scanner ???
Why than there this text in the image :
"Processed By eBay with ImageMagick, R1.1.1.||B2"
:p
You must have a special scanner ..:p

clsid
10th February 2012, 23:11
Nev, you need to add "IsWin64" checks in the new installer before accessing HKCR64. Otherwise there will be an error on x86.

SamuriHL
10th February 2012, 23:21
Oh great, he changed the installer again? sigh. :) Guess I'll have to rewrite mine again. :D

nevcairiel
10th February 2012, 23:43
Oh great, he changed the installer again? sigh. :) Guess I'll have to rewrite mine again. :D

Again? I never really touched it much. :p
This change now has been a long time coming though.

SamuriHL
10th February 2012, 23:56
Again? I never really touched it much. :p
This change now has been a long time coming though.

Yea, you had made some change a bunch of versions back and I had to fix mine again. Maybe when you added the intel stuff. can't remember. Not a big deal. I basically start with yours and hit delete a bunch of times. :D HEHEHE. Remember mine's only used to update the J River private copy and register it so that I only have one updated copy on my machine. And using the installer ensures it gets registered properly.

sexus
11th February 2012, 02:59
Did this picture come from your scanner ???
Why than there this text in the image :
"Processed By eBay with ImageMagick, R1.1.1.||B2"
:p
You must have a special scanner ..:p

actually i do ;), hope you can do something about the mpeg4 incompatibility you can clearly see from the second clip ive uploaded nevcairiel id appreciate alot and the first clip freezing with h264 enabled in format list;)

ryrynz
11th February 2012, 05:59
Bit of a longshot, but does anyone know how I could possibly fix a huge startup delay when requesting files over a network when File Source Async is in the chain?
Loading local files is fine, also using LAV Splitter Source over the network is fine.

RBG
11th February 2012, 06:28
ryrynz

I just tried, and I have no delay opening files over the network with File Source Async in the chain, well at least with Windows Server and gigabit ethernet.

MaxMan23
11th February 2012, 06:48
Hi, i have a problem with lav 0.45 and cuvid. i get no video (black screen) when cuvid is selected in the settings (dxva2 works). Tested with mediaportal und mpc. But why? My PC is a q6600 @ 3.6 ghz, Geforce 560 Ti

boyumeow
11th February 2012, 07:09
Xvid do not work with nvidia driver more than 285, if I'm not wrong. Thanks.

ryrynz
11th February 2012, 09:31
ryrynz

I just tried, and I have no delay opening files over the network with File Source Async in the chain, well at least with Windows Server and gigabit ethernet.

I know it's an issue limited to my HTPC but I don't know what's causing it, was just wondering if anyone had seen it before. :thanks:

Hi, i have a problem with lav 0.45 and cuvid. i get no video (black screen) when cuvid is selected in the settings (dxva2 works). Tested with mediaportal und mpc. But why? My PC is a q6600 @ 3.6 ghz, Geforce 560 Ti

What driver version you using? What is the file type are your attempting to play back? Tried a fresh install of LAV filters?

nevcairiel
11th February 2012, 09:32
I know it's an issue limited to my HTPC but I don't know what's causing it, was just wondering if anyone had seen it before. :thanks:

If you dont have issues using LAV as the source directly -> problem solved? :)

Tacio
11th February 2012, 09:57
How can I use LAV Splitter Source as file source instead File Source Async? I set Prefer merit for LAV Splitter Source and block File Source Async, but mpc shows that it can't render stream at all. In LAV Splitter Source I checked all formats.

nevcairiel
11th February 2012, 10:04
How can I use LAV Splitter Source as file source instead File Source Async? I set Prefer merit for LAV Splitter Source and block File Source Async, but mpc shows that it can't render stream at all. In LAV Splitter Source I checked all formats.

You need to install via the Installer, it'll set that up automatically.

cremor
11th February 2012, 10:39
You need to install via the Installer, it'll set that up automatically.

Could there be a bug in the installer that was introduced in one of the last few versions?
I'm using all four "LAV x" external filter options as prefer in MPC-HC since I started using LAV and previously that was everything that was needed. But some time ago I noticed that AVIs are using File Source Async (and LAV Splitter) whereas MKVs still use LAV Splitter Source.

I didn't change any of the format options in the installer or the splitter configuration.

nevcairiel
11th February 2012, 10:48
You may have installed something else that reset the extension mapping. In any case, the next version has a basically completely rewritten installer, so if there were bugs, they are no more (but i'm sure new ones instead!)

MaxMan23
11th February 2012, 15:25
Hi, i have a problem with lav 0.45 and cuvid. i get no video (black screen) when cuvid is selected in the settings (dxva2 works). Tested with mediaportal und mpc. But why? My PC is a q6600 @ 3.6 ghz, Geforce 560 Ti

My driver version is 290.36 and the files are xvid (avi).

nevcairiel
11th February 2012, 15:27
My driver version is 290.36 and the files are xvid (avi).

If you activate CUVID acceleration for XVID, you do so at your own risk. If it doesn't work, turn it off. :p
There is a reason its off by default, because it doesnt work properly.

RBG
11th February 2012, 16:34
If you activate CUVID acceleration for XVID, you do so at your own risk. If it doesn't work, turn it off. :p
There is a reason its off by default, because it doesnt work properly.

Actually on forceware 285.62 I haven't encountered any problems yet, everything plays fine. Can you upload any DivX/Xvid sample which can not be played, I wanna test it.

zerowalker
11th February 2012, 18:08
Can you fix the Splitter to prevent it from crashing Recycle bin and COM Surrogate?
Or is it something i myself can fix:)?

Sorry asked this before;O

nevcairiel
11th February 2012, 18:15
You have to find out which file it crashes on, and then send me a sample of such a file.

zerowalker
11th February 2012, 19:24
Itīs pretty much every file i think, as long as i try to make a thumbnail of it;S

It may also be MKV files which i Direct Stream copied so they became "AVI" that mess up.

But itīs the thumbnail thing i think, and if i deactivate AVI splitting on LAV itīs solved, though i want to use it;S

dead_screem
11th February 2012, 20:03
I have a hard-limit of i think 125 fps, if the header reported value is above that i don't trust it and use the (somewhat inaccurate) measured value (417225 isn't exact)

This is also the reason why i rather use the timestamps instead of basing any calculations on the fps. :)

Hmmm, does the fact that this file is VFR further make calculations difficult? I notice lav sets 23.968fps should anything be added that would round the calculated fps to a more standard value such as 23.976 in this case?

Also does the fact that this was a mov>mp4 re-mux have any thing to do with that the file is broken?

nevcairiel
11th February 2012, 20:11
Hmmm, does the fact that this file is VFR further make calculations difficult? I notice lav sets 23.968fps should anything be added that would round the calculated fps to a more standard value such as 23.976 in this case?


Well as i've stated numerous times before, the fps in the mediatype is just a hint, its not to be taken as absolute truth.
The MSDN even says that for VFR is perfectly valid for this value to be zero, however that seems to not work with alot of decoders/renderers.

In any case, i try to supply a somewhat valid value, but if the header information are totally screwed up, i just give it what ffmpeg measured from the first few frames, which may or may not be very accurate.

How the actual frames are timed is entirely up to the timestamps, not the fps value - at least if the decoder is doing a proper job, which is why the fps aren't all that important.
Just calculating from fps would most likely not work properly with VFR anyway, not to mention cases of missing frames like with Live TV (or recordings of that)

PS:
The header info inside the H264 data seems to be broken, don't think a remux would cause that, but i guess everything is possible.

entrecour
11th February 2012, 20:44
nevcariel, First of all Thank You for LAV!

I think I have found a problem with LAV Video on certain titles.

I get video corruption (pixelation? incomplete decoding?) occasionally on X-Men BD's (I have seen the problem on 2 or 3 different titles).

Here is a screenshot (http://img194.imageshack.us/img194/9316/lavp1.jpg)

I do not get this problem with Microsoft Dtv-Dvd decoder.

This is on Windows 7 32bit, Intel i3 (no external video card, no hardware acceleration).

General
Complete name : C:\Users\Public\Rip\XMEN_WOLVERINE\BDMV\PLAYLIST\00010.mpls
Format : Blu-ray Playlist
File size : 786 Bytes
Duration : 1h 47mn
Overall bit rate mode : Variable
Overall bit rate : 0

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : 27
Duration : 1h 47mn
Bit rate mode : Variable
Maximum bit rate : 26.7 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
Source : 00074.m2ts

I have the LAV Splitter pin info if that helps.

I can upload a clip if needed (how long? what tool do you recommend to extract?).

Let me know if you need anything else.

:thanks:

clsid
11th February 2012, 23:52
Writing to HKCR\Media Type\{E436EB83-524F-11CE-9F53-0020AF0BA770} fails here for the AVI and mpeg-ps subkeys. The other keys are fine.

nevcairiel
11th February 2012, 23:53
Probably protected by Windows, nothing i really want to override automatically. Even with UAC elevation those are hard to change.
Does the installer actually complain? If so, do you know how to shut it up? :p

For MPEG-PS, the installer is basically only writing the default windows values, so if its still protected, it should be fine.
For AVI, it writes the default windows values plus 2 extra values for more files. But overall, it should also not hurt if the write fails - as long as it doesnt complain to the user.

clsid
12th February 2012, 00:14
There is no user visible error. The functions will simply return false. It is just something I noticed and found strange since it used to work fine afaik when it was done by the filter. Error code is 5, which is access denied, so it indeed seems to be some kind of protection 'feature' of Windows.

nevcairiel
12th February 2012, 00:27
Those keys are owned by "TrustedInstaller", which i assume only signed .msi installers are allowed to access.
Anyhow, no issues if those cant be written. I doubt the filter really managed to do it.

Midzuki
12th February 2012, 00:35
Those keys are owned by "TrustedInstaller",
<OT>

Micro$oft and their "infinite wisdom". :rolleyes:
I'm pretty sure that a worm can easily dress itself as a "Trusted Installer" :p

</OT>

dukey
12th February 2012, 00:38
I got a weird problem that is showing up.
The text pin on the LAV splitter seems to be connecting to a filter called
Internal Script Command Renderer

Unfortunately this seems to totally break playing of the video. LAV is spitting out MEDIATYPE_Text, MEDIASUBTYPE_NULL
and this seems to be what this filter accepts.

http://i.imgur.com/r3W8g.png

Edit:
I forgot to mention this filter is part of directshow (quartz.dll)
http://msdn.microsoft.com/en-us/library/windows/desktop/dd390349%28v=vs.85%29.aspx

nevcairiel
12th February 2012, 00:45
I got a weird problem that is showing up.
The text pin on the LAV splitter seems to be connecting to a filter called
Internal Script Command Renderer

Unfortunately this seems to totally break playing of the video.

This is already fixed for the next version, it'll no longer cause playback to fail.
I suppose i could also change the media type and avoid it connecting completely, its not used for any active subtitle type, but there was some reason why i used this one before....

clsid
12th February 2012, 02:03
Itīs pretty much every file i think, as long as i try to make a thumbnail of it;S

It may also be MKV files which i Direct Stream copied so they became "AVI" that mess up.

But itīs the thumbnail thing i think, and if i deactivate AVI splitting on LAV itīs solved, though i want to use it;S
Follow these steps:
1) Temporarily disable thumbnailing. Reboot.
2) Move one file that you suspect might be triggering this issue into a separate folder. That folder should not contain any video files, nor should any of its parent/child folders.
3) Re-enable thumbnailing. Reboot.
4) Load Explorer and browse to the folder.
5) If it shows the error you have a sample, otherwise repeat with a different file.

Once you have a sample, upload it to:
http://www.mediafire.com

If a file is very large, you can cut a small part it with DGSplit.

Mangix
12th February 2012, 04:59
is it possible to do bitstreaming when possible and fall back to software decoding when not a la ac3filter?

nevcairiel
12th February 2012, 12:50
LAV Filters 0.46

LAV Splitter
- Experimental support for streaming protocols (RTSP, RTP, MMS)
- Support for IBufferInfo (Buffer Status in MPC-HC "Statistics" pane)
- Added a memory limit to avoid too high memory use from the frame queues
- Fixed playback of files with Subtitles in WMP/WMC in some cases

LAV Audio
- Improved playback of files with bad audio frame interleaving
- Improved support of COOK, ATRAC and SIPR (RealAudio codecs)

LAV Video
- Updated and improved Intel QuickSync decoder (0.26, r38)
- Fixed DXVA2 software fallback on some lossless H264 clips
- Improved Fraps decoding with EVR
- Improved playback of MPEG4 in MP4
- Multi-threaded decoding for Lagarith
- Fixed playback of Theora with the MPC-HC Ogg Splitter
- Dithering Enhancements:
- New "Random Dithering" option (new default)
- Improved "Ordered Dithering" in the RGB converter
- Support for decoding v210/v410 raw formats
- Support for Snow and FFV1


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

Re-written Installer
I finally got around to cleaning up the Installer and basically re-creating it from scratch.
As a consequence, it now does all the special tasks required to properly register a Splitter in the system, and the LAVSplitter.ax itself does not do it anymore.

This means that just registering LAVSplitter.ax will no longer change any registry settings and is perfectly safe to do. The only thing it still does is allow playback of Blu-ray bdmv/mpls files, but in a entirely non-destructive way.
This also means that just registering LAVSplitter.ax may not allow you to play back all files, at least not in all players. MPC-HC is probably fine (if you add it to preferred filters), other players may not be. I recommend using the Installer! (unless you really know what you're doing)

I may also separate the Installer into 32-bit and 64-bit in the future, i have not decided on that yet (this would also mean that the settings get separated between the two versions)

Support for Streaming Protocols
I added experimental support for a few streaming protocols, specifically RTSP, RTP and MMS.
I tested the feature on alot of streams i could find around the web, as well as against VLC streaming over my local network, and it was working OK'ish (better for some formats, worse for others). I still consider this feature highly experimental, so try it if you wish, but don't expect too much. ;)

To use it, you need to use the Installer (or resort to manual registry hackery), even with MPC-HC.
I have not tested it in any other players.

To use it, just install it and open a rtsp://, rtp:// or mms:// URL.

Random Dithering
In the past, the complaint occasionally came up that ordered dithering has a too static pattern, which makes it visible in certain situations. This is especially bad with cheap LCD displays (6-bit TN panels), which typically also use ordered dithering - and doing ordered twice results in serious artifacting.

To avoid these issues, i implemented random dithering, which instead of a static pattern uses a randomly generated buffer to dither the pixels, resulting in no visible patterns (unless the RNG is having fun with you)
I decided to make this the new default mode for dithering. Performance should be the same as ordered.

Other changes
Everything else is pretty standard changes, a bit improved format support, some new formats, bugfixes across the board.

PS:
v210 decoding is off by default because its a raw format, and needs to be turned on.

Upcoming is a big ffmpeg update. I haven't updated for a while now because i didn't want to "inherit" any new bugs before the release, so a lot of changes have already piled up, hoping nothing breaks.

As always, please report regressions as detailed as you can, with sample files or other relevant proof.

Have fun!

Edit:
The files have been updated for a minor options-related crash.
If you get a crash when closing the Audio configurations, download again!

sneaker_ger
12th February 2012, 13:02
Thx.

Why are newer versions of LAV Filters asking me to restart my PC after installing and de-installing?

nevcairiel
12th February 2012, 13:03
Why are newer versions of LAV Filters asking me to restart my PC after installing and de-installing?

It'll only ask that if it couldn't overwrite or delete some files, indicating they are still open by something.

My money is on the explorer thumbnail generator. It seems to get stuck sometimes - especially if you have "DirectShowSpy.dll" registered - without it, it seems fine.

sneaker_ger
12th February 2012, 13:07
I see.

What is the current status of raw video files splitting? I see that it is deactivated by default and activating makes it attempt to open raw h.264 files, but it will just stop at the start with a black screen.

Sebastiii
12th February 2012, 13:18
Nice one Nevcairiel ;)
Happy :)

fastplayer
12th February 2012, 13:36
As always: :thanks:

wanezhiling
12th February 2012, 13:42
I'm late..:(:(

fairchild
12th February 2012, 13:49
I installed the new version 0.46 and I'm noticing a strange behavior. I noticed it after the first install when opening up all the Lav Filters configuration pages (Splitter, Video, Audio) and going through the different options etc to see what had changed and if I needed to change anything. Well after doing all this and hitting OK on the last page (in my case it is Lav Audio, I get a windows error:

Windows host process (Rundll32)
Windows host process (Rundll32) has stopped working

A problem caused the program to stop working correctly. Please close the program.

I was able the reproduce this again by going to the Start Menu and opening every Configuration page for all 3 (Splitter, Video, Audio) and it happened again after closing the last option. I am able to reproduce this randomly by opening in this order or in different orders, and switching tabs between the configurations, then hitting OK on each window without making any changes. It doesn't seem to occur if I simply open the configuration windows and don't do anything then hit OK or Cancel. It only happens when I switch to the formats tabs or hover over some of the options and get it to become a bit busy. I can see the little windows hourglass going for a bit which is new since I have a relatively fast computer and Lav Filters usually didn't do this and was very fast at loading it's configuration tabs.

I also just tested this through MPC-HC by double clicking each configuration option under External Filters and it made MPC-HC disappear. (albeit through MPC-HC you can only have 1 configuration tab open at a time). I dunno if this is affecting other users but I thought I'd report it none-theless. Perhaps the install changes you made had some change on the rundll32 windows file which is being used to call up the configuration options. Haven't tested yet if playback is affected. If this is only happening to me then perhaps my system is not as stable as I believed, but it's odd because my system should be 100% stable as I do folding@home 24/7 where my CPU is constantly at 100% load and also have no other stability problems with gaming or encoding or anything else on my PC.

cremor
12th February 2012, 13:53
You may have installed something else that reset the extension mapping. In any case, the next version has a basically completely rewritten installer, so if there were bugs, they are no more (but i'm sure new ones instead!)

Whatever it was, after using the new installer it is fixed. Thanks!

SamuriHL
12th February 2012, 14:03
Nev, is it recommended to clean out the old reg settings before installing this one?

Sent from my Xoom using Tapatalk

entrecour
12th February 2012, 14:04
I have the same problem as fairchild above - with LAV Audio Configuration. I uninstalled rebooted and reinstalled - same problem. When I retry LAV Audio Config I get the error message again. I am running Windows Visa Ultimate 32bit.

nevcairiel
12th February 2012, 14:14
Hitting OK on the last page (in my case it is Lav Audio, I get a windows error

I have the same problem as fairchild above - with LAV Audio Configuration. I uninstalled rebooted and reinstalled - same problem. When I retry LAV Audio Config I get the error message again. I am running Windows Visa Ultimate 32bit.

Should be fixed again. This has no impact on playback, and even saving options should work fine. Also, MPC-HC didn't seem to suffer here, just the standalone config.
Thats what you get when you try to be smart and do some last-minute changes =p

I'm uploading a fixed build, taking the liberty to just replace 0.46 and not changing the version, its been only 1.5 hours or so.... :)

nevcairiel
12th February 2012, 14:26
Ok, as a reminder for everyone: 0.46 had a small bug in the audio configuration sheet that caused a crash when closing it.
I fixed the bug and replaced 0.46, so if you downloaded 0.46 before this post, i urge you to re-download it. I didn't feel like bumping the version just an hour later for such a small fix.

nevcairiel
12th February 2012, 14:27
Nev, is it recommended to clean out the old reg settings before installing this one?
It never hurts, but its not necessary.