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

egur
24th January 2013, 08:50
Whats the benefit of ICL builds? Any faster?

ICL in many cases produce faster code (if used properly). It allows creating several versions of functions, optimized for different micro-architectures.
ICL also support new extensions (AVX/AVX2) faster than Microsoft's compiler. It also ships with several optimized libraries that implement low level operations very quickly.

Another rising star in the C/C++ compiler world is LLVM. It's an open source project (BSD) from Apple that can mimic the operation of GCC and Microsoft's compilers (e.g. flags/switches).
LLVM has it's own C++11 standard library (also libc) which is probably the fastest in existence (C++ part anyway).

ryrynz
24th January 2013, 08:53
They probably are a bit quicker, but I'd doubt there's that much in it. ICL compiled stuff is generally more unstable from what I've seen, which could be what Dan is experiencing.

nevcairiel
24th January 2013, 09:16
Yeah ICL builds are usually more buggy because Intel seems to optimize at all costs, running in worlds of problems.

paradoxical
24th January 2013, 17:53
Whats the benefit of ICL builds? Any faster?

In the case of MPC-HC? Probably next to nothing. Just like ICL has marginal differences when compiling ffdshow, x264, etc. Building things with ICL "for speed" is in most cases the equivalent to turning your car into a ricer "for speed".

Niyawa
25th January 2013, 04:44
Hey nev, passing by to tell you something I noticed some time ago. Let's say you have a clean computer from LAV, so you decided to install it. Apparently if I install using the .exe, LAV Splitter Source will be used. Now if I install it through the .bat, LAV Splitter and File Source (Async.) will be used instead. Is there an explanation for why this happens or is not supposed to be like this at all?

wanezhiling
25th January 2013, 05:08
http://forum.doom9.org/showthread.php?p=1568482#post1568482

Niyawa
25th January 2013, 07:49
http://forum.doom9.org/showthread.php?p=1568482#post1568482
Thanks! Next time I should do a proper search before asking.

nevcairiel
25th January 2013, 16:10
LAV Filters 0.55.2

LAV Splitter
- Improved support for MP4-style H.264 in AVI
- Further improvements for AAC in MPEG-TS
- Small improvements to handling Blu-rays with odd stream configurations
- Improved handling of Ogg Vorbis streams

LAV Video
- Basic support for playing DVDs in different playback rates
- Fixed DXVA2 resource cleanup which may have caused a crash in some situations with DXVA2-Native
- Fixed A/V Sync when using the WMV9 DMO decoder (especially noticable after seeking)

LAV Audio
- Improved AC3 decoding quality (thanks to madshi for the patch in ffmpeg)


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

I actually wanted to release this last week, but somehow i didn't manage to, so one or two more fixes slipped in, and here it is.
Nothing really big and noteworthy, some compat-improvements with a bunch of odd files, some quality improvements, DVD fast-forward/rewind support, and the occasional bug fix.

I'm pretty confident nothing new breaks with this version, but in case i am still wrong, please let me know!

Pomegranate
25th January 2013, 16:16
LAV Audio
- Improved AC3 decoding quality (thanks to madshi for the patch in ffmpeg)

I was wondering about that. But I wasn't sure LAV used the same libav ac3 decoder as eac3to. Anyways, thanks!

Sebastiii
25th January 2013, 18:51
Thanks :) works nicely

glorp
25th January 2013, 19:13
Something in recent builds of MPC-HC has broken the advanced subs handling in LAV splitter. If I have an mkv with eng main audio and eng subs (both flagged default, none forced, subs are srt format) and a lav advanced string of "eng:eng|f;eng:off;*:eng;*.*|f" then MPC will still show eng subs if subs are enabled in MPC. I reverted back to build 1.6.6.6464 and that reverses it so that it works as it used to. something between that and current version changed so that the eng:off match no longer works as it did to turn the subs off even when mpc subs are enabled. using evr-cp and dxva.


ED: The smileys are colon,oh. forgot to turn them off.

nevcairiel
25th January 2013, 19:50
That seems weird, LAVs logic only changes which stream is selected, so MPC-HC overwrites that decision, but only if the "off" stream is selected?

In any case, seems like something for them. :)

glorp
25th January 2013, 19:55
In any case, seems like something for them. :)

Agreed :) Just thought you would have a much better chance of explaining it and pinpointing problem than I would. I'll add a message to the thread.

nevcairiel
25th January 2013, 20:01
There is a small glitch in your selector, *.*|f is invalid, needs to be *:*|f, i hope you just typoed it. :)
Shouldnt be the reason for your problems, though.

glorp
25th January 2013, 20:09
Right you are! I guess we aren't selecting Windows files here are we (*.*)? :) But fixing that didn't affect my trouble with the sub selection. I still get eng subs with eng audio and this:
eng:eng|f;eng:und;eng:off;*:eng;*:*|f

6233638
25th January 2013, 20:31
If I am understanding things correctly, what you want is: Subtitles with English audio when they are forced.
No subtitles with English audio otherwise, even if they are the default track.
English subtitles when the audio language is not English.

It's been a while since I looked into this, but I think that would be:"eng:*|f;eng:off|d;*:eng"

I'm not sure why you have the subtitle track flagged as the default one, if you don't want to see it though.


For what it's worth, I use"eng:*|f;eng:*|d;*:eng"

I've still never been able to get subtitles to work correctly with some titles such as Kill Bill 1 & 2 where the audio is mostly English, but there are some parts which are not. I can only seem to enable subtitles globally, or not have them at all. There doesn't seem to be a subtitle track which only has the non-English parts. Play it in a commercial player or a stand-alone player, and it works as you would expect though.

With Kill Bil Vol.1 I ended up ripping to MKV and editing the subtitles by hand, but I never got around to it with Vol.2 and it would be nice to just play off the disc directly.

nevcairiel
25th January 2013, 20:33
His expression is just fine, its MPC-HC which is broken.

PS:
Modifiers on the "off" tag won't do anything.

glorp
25th January 2013, 20:57
I've still never been able to get subtitles to work correctly with some titles such as Kill Bill 1 & 2 where the audio is mostly English, but there are some parts which are not. I can only seem to enable subtitles globally, or not have them at all. There doesn't seem to be a subtitle track which only has the non-English parts. Play it in a commercial player or a stand-alone player, and it works as you would expect though.


Because PGS subs can be flagged at the individual time sync mark allowing one track to be both all subs or only forced subs. You lose that when you use a player that can't recognize or honor those "internal" flags. LAV splitter has an option that controls selecting and delivering those kind of subs as a separate stream to the player. I'm sure nev can explain it much better than me.

6233638
25th January 2013, 21:52
Because PGS subs can be flagged at the individual time sync mark allowing one track to be both all subs or only forced subs. You lose that when you use a player that can't recognize or honor those "internal" flags. LAV splitter has an option that controls selecting and delivering those kind of subs as a separate stream to the player. I'm sure nev can explain it much better than me.I thought that's what the "Forced Subtitles (Auto)" stream was supposed to be, but I can't think of a single disc where that has ever shown any subtitles. (I have it set to use that track on English discs by default)

PS:
Modifiers on the "off" tag won't do anything.Good to know, thanks.

Qaq
25th January 2013, 22:55
Thanks for the new version!

loudmax
25th January 2013, 23:52
Hi Nev,

thanks for your great work!
Itīs the only freeware that plays broadcast AVC-Intra atm.:)

There only seems to be a problem with the automatic field order detection. When field order is set to "auto" the motion in the video looks wrong. When I set it to "top field first" the video is fine.
Iīve tested AVC-Intra clips from different sources, like Avid, Omneon, Quantel...all with the same result. MediaInfo reports all of them as top field first.

Iīve uploaded a file for you, where the motion jitter is clearly visible: http://free-vsts.com/files/MXF/AVCI100_1080_sps.mxf

Thanks for your help!

glorp
25th January 2013, 23:54
I thought that's what the "Forced Subtitles (Auto)" stream was supposed to be, but I can't think of a single disc where that has ever shown any subtitles. (I have it set to use that track on English discs by default)

That's what I thought too. But the tooltip on the option says it may not work with all discs so I guess now we know which ones are likely candidates for that :)

Blight
26th January 2013, 01:31
nev:
Do you think you can support DVD Fast Forward with audio and pitch correction when decoding the audio?
The "IDVDControl2" interface supports it through the "SetOption" function with the "DVD_AudioDuringFFwdRew" flag.

I apply this flag in Zoom Player when the following setting is enabled:
Adv. Options / Playback / DVD / DVD Values - Maintain audio during fast forward / rewind

nevcairiel
26th January 2013, 07:01
I could probably enable audio somehow, but not with pitch correction. Faster audio just sounds funny then.

nevcairiel
26th January 2013, 07:28
There only seems to be a problem with the automatic field order detection. When field order is set to "auto" the motion in the video looks wrong. When I set it to "top field first" the video is fine.
Iīve tested AVC-Intra clips from different sources, like Avid, Omneon, Quantel...all with the same result. MediaInfo reports all of them as top field first.
I don't think either MediaInfo or LAV actually detect anything, the difference is the default assumption. If LAV doesn't detect any field order indication, it defaults to BFF, and it seems that MediaInfo defaults to TFF.
I'm not sure what is the better assumption, really.

Not sure how one would figure this out from this stream, i find no indications of field order.
But thats what the option is for, to override it on the occasional file which doesn't tell us this.

pankov
26th January 2013, 09:01
Nev,
if you haven't already done it and you have access to this parameter when select the field order you can use the framerate as a helper.
If I'm not mistaken most PAL (50i) content ... except DV which I'm not sure is that popular nowadays .... is TFF. Most 60i contenet is BFF.
I can't test the file right now to see if follows this rule because I'm on my tablet but I hope post could help.

nevcairiel
26th January 2013, 09:03
ffmpeg only has a flag called "top_field_first", which can be 0 or 1, it doesn't exactly tell me if it actually determined the file is BFF, or if thats just the value being unset =p

wanezhiling
26th January 2013, 09:19
According to my personal experience, most broken interlaced videos (no field order) are actually TFF. :)

Pomegranate
26th January 2013, 09:23
Is it possible to back up settings? I'll be switching to Win 7 x64 this weekend.

wanezhiling
26th January 2013, 09:40
Is it possible to back up settings? I'll be switching to Win 7 x64 this weekend.

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

Pomegranate
26th January 2013, 09:56
"A picture is worth a thousand words". Thank you.

nevcairiel
26th January 2013, 10:01
According to my personal experience, most broken interlaced videos (no field order) are actually TFF. :)

Well, you may think that now, but when you play such a broken file that is BFF, you wouldn't notice that its broken, because it defaults to BFF. :p

loudmax
26th January 2013, 10:36
As far as I know, bff was originated by the NTSC standard. All HD codecs and PAL SD codecs are tff. Exept DV25, DVCPro25 and DVCPro50, which are bff in PAL and NTSC.
So maybe you could let the fieldorder automatic check if the video is not dv, but 25fps or HD and then switch to tff?

nevcairiel
26th January 2013, 10:38
Didn't i already mention that it doesn't tell me if it detected a movie to be BFF, or just didn't detect anything at all? There is no distinction there.
Feel free to request this from the ffmpeg developers, i don't have the resources to fix every problem in ffmpeg myself.

loudmax
26th January 2013, 10:51
Okay, thanks!

iSunrise
26th January 2013, 16:55
nev, I cannot get Camtasia files to play with the LAV decoder. LAV Splitter seems to be doing everything correctly and detects it, but the LAV decoder doesnīt get invoked. The file has the (new) TechSmith Video Codec 2 (which comes with Camtasia Studio 8, older versions only support TechSmith Video Codec). My source (like the sample at the bottom) is an AVI export from the original .camrec file that Camtasia produces when recording.

http://www.abload.de/img/potplayer_filterchainghfwv.png

Am I doing something wrong here? I have enabled .camtasia in the LAV decoder, still doesnīt work. I even tried to manually build a graph with GraphStudio, but the video output pin just wonīt connect to the LAV decoder input pin. Am I doing something wrong?

If I play the file with the AVI Decompressor (quartz.dll) I get heavy image corruption, thatīs why I thought LAV would work, but strangely, it doesnīt.

You can get a sample here:
https://ffmpeg.org/trac/ffmpeg/ticket/1533

Thanks a lot for looking into it!

nevcairiel
26th January 2013, 17:05
Whoever said it was supposed to work? :)
But it will work in the future.

iSunrise
26th January 2013, 17:11
Whoever said it was supposed to work? :)
But it will work in the future.
:)

So you implemented support for it? Wow, that was fast. Eager to try it out now!

wanezhiling
26th January 2013, 17:18
But it will work in the future.

MPC-BE supports tscc2, let's expect LAV.:thanks:

Rimsky
27th January 2013, 12:22
Two question:

1. does Lav Video Decoder support HW deinterlace on AMD Radeon in future? Or only NV/cuda/QS?
I interesting only in "copy-back" deinterlace for recoding and SmoothVideo Project

2. YADIF seem to be worst than linear blending. What can I do fo better deinterlace quality with LAV Video?
Or may be LAV Video can make software linear deinterlace in newer version? yeah, it is not perfect, but better than nothing and chip for CPU.

LAV + YADIF
http://i.piccy.info/i7/d8d9574d56f3adb38d2901b0f15a46de/4-55-1171/20267336/01_500.jpg (http://piccy.info/view3/4040783/7da865a8476a04c2111ccf6a6103218c/)http://i.piccy.info/a3/2013-01-27-11-15/i7-4040783/500x225-r/i.gif (http://i.piccy.info/a3c/2013-01-27-11-15/i7-4040783/500x225-r)

FFDSHOW + Linear blending
http://i.piccy.info/i7/9f88fa9a33c37f9dd1df8c4d4309caa0/4-55-1171/36251327/02_500.jpg (http://piccy.info/view3/4040816/0d76a969978c871f37751a6cfb474703/)http://i.piccy.info/a3/2013-01-27-11-21/i7-4040816/500x226-r/i.gif (http://i.piccy.info/a3c/2013-01-27-11-21/i7-4040816/500x226-r)

nevcairiel
27th January 2013, 12:32
1) There will be no additional HW deinterlacing options for DXVA2
2) There will also be no additional software deinterlacers

PS:
If you want to do comparisons, you should post the same frame.

ryrynz
27th January 2013, 23:01
Nev, can you tell me why this sample (http://www.mediafire.com/?srj92zrjxv8z52w) doesn't show the English subtitles when specified when I have Directvobsub loaded? If Directvobsub is not loaded LAV selects it just fine.

turbojet
28th January 2013, 07:09
nevcairel, did you get a chance to check out the auto pause issue when lavfilters is used with mpc-be and madvr (http://forum.doom9.org/showthread.php?p=1612242#post1612242)?

nevcairiel
28th January 2013, 08:08
Nev, can you tell me why this sample (http://www.mediafire.com/?srj92zrjxv8z52w) doesn't show the English subtitles when specified when I have Directvobsub loaded? If Directvobsub is not loaded LAV selects it just fine.

Without looking at it, i can already tell you that LAV selects its streams before it actually joins the DirectShow Filter Graph, so my guess is that something changes it, and something not being LAV. :)

nevcairel, did you get a chance to check out the auto pause issue when lavfilters is used with mpc-be and madvr (http://forum.doom9.org/showthread.php?p=1612242#post1612242)?

Works fine for me in MPC-HC with madVR.
I cannot debug things with every possible player out there, or i would never get stuff done.

By the way, weren't you using CUVID? The only possible chance that it may pause due to bad interaction with the renderer is when using DXVA2 Native. If it pauses with any other HW decoders in LAV, then something else is broken, possibly in the player.

turbojet
28th January 2013, 09:48
Works fine for me in MPC-HC with madVR.
I cannot debug things with every possible player out there, or i would never get stuff done.

By the way, weren't you using CUVID? The only possible chance that it may pause due to bad interaction with the renderer is when using DXVA2 Native. If it pauses with any other HW decoders in LAV, then something else is broken, possibly in the player.

Normally use cuvid but it happens with software, quicksync and dxva2 as well. mpc-be plays fine with internal, ffdshow and coreavc. This has been a problem for months and I first notified madshi because updating to madvr 85.x is when I first noticed it, he replied with http://forum.doom9.org/showthread.php?p=1606518#post1606518 I later mentioned how to reproduce it and have reproduced it on 5 computers so far, 1 was fresh windows 7 install with default mpc-be (except prefer lav video), madvr, lav settings.

After getting nowhere with madvr, I went to mpc-be and madshi explained to them what needed to be fixed, they said they'd work on it 3 weeks ago and nothing has been done. They are ignoring posts about it now. So I came here as a last resort.

nevcairiel
28th January 2013, 12:43
If it also happens with software decoding, then i have no idea would could potentially be causing it. As i said, it works fine for me in MPC-HC, so if its only a problem with BE, you should address it there.

madshi
28th January 2013, 14:05
@turbojet, IIRC your log indicated that "someone" asked madVR for the Direct3D device. Usually that's the decoder. That's why I said that the decoder should be fixed to not do that when using software decoding. But if this only occurs with MPC-BE, but not with MPC-HC then maybe it's not the decoder which asks madVR for the D3D device, but maybe the media player. If you want to know for sure I'd suggest that you create 2 madVR debug logs, one with MPC-HC and one with MPC-BE, zip and upload them somewhere, then PM me with a download link. You don't even have to switch monitors during playback. Just start video playback, stop it, done.

Blight
28th January 2013, 23:44
nev:
Even fast-playing DVD audio with no pitch correction is better than nothing, users are occasionally asking for that feature in order to fast-play (10-20% faster) documentaries and such.

nevcairiel
29th January 2013, 07:36
Die you check the check box which controls 4k decoding in LAV? It's off by default.

dansrfe
29th January 2013, 08:00
(Hopefully tiny) feature request: Would it be possible to show the audio and video format/bitrate/sample rate when hovering over the tray icons, respectively? Thanks!