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

hoborg
29th July 2011, 19:53
@nevcairiel:

Did you tryed to make LAV audio decoder working with MS demultiplexer for LATM AAC? Your latest build still refuse connection.
BTW, LAV video decoder refuse connection too (h.264), but that is not big deal for me :)

nevcairiel
29th July 2011, 21:02
Did you tryed to make LAV audio decoder working with MS demultiplexer for LATM AAC? Your latest build still refuse connection.

No i did not. The MS Demuxer does not know how to treat LATM AAC properly, it uses the same type for normal AAC as for LATM, which makes that kinda complicated. :p
Besides, i don't think its really the MS demuxer you're talking about - if you try to use it in GraphStudio, it refuses.

hoborg
29th July 2011, 21:36
No i did not. The MS Demuxer does not know how to treat LATM AAC properly, it uses the same type for normal AAC as for LATM, which makes that kinda complicated. :p
Besides, i don't think its really the MS demuxer you're talking about - if you try to use it in GraphStudio, it refuses.

DivX AAC decoder is working:
http://www.volny.cz/hoborg/divx_aac.png

LAV audio decoder wont connect:
http://www.volny.cz/hoborg/lav_aac.png

nevcairiel
29th July 2011, 21:39
That claims to be using the default MS LATM AAC subtype, which is supported by LAV Audio. Since its not working, i need the full media type, not just the guid. Preferably of the not-working pin, i think its another subtype - at least it was when i tried some while back.

hoborg
29th July 2011, 22:19
That claims to be using the default MS LATM AAC subtype, which is supported by LAV Audio. Since its not working, i need the full media type, not just the guid. Preferably of the not-working pin, i think its another subtype - at least it was when i tried some while back.

Well, MediaPortal TS reader (http://www.volny.cz/hoborg/tsreader.zip) have similar problem. It will connect with LAV audio decoder, but there is no sound. DivX AAC is working.

BTW, DivX AAC decoder seems to be only one decoder that is working for certain LiveTV streams. Monogram AAC decoder doesn't working (connected, but no sound).

nevcairiel
29th July 2011, 22:38
Decoding fails because the MediaPortal TS reader sends wrong AAC headers in the media type. I fixed that now to simply ignore the AAC headers for LATM, except when coming from LAV SPlitter. This does however mean that it might require 1-2 audio packages to get the headers in the stream, and stuff wont be decoded properly until then.

rahzel
30th July 2011, 00:29
i just noticed that when using LAV Audio decoder and not bitstreaming, the volume seems considerably quieter than MPC HC's built in decoder. On my desktop PC/netbook, it's quieter, but on my HTPC where I bitstream, it's fine. On my netbook, volume is almost too quiet even at full volume. Mind you, my netbook has a tiny speaker. Is there somewhere I can increase the volume?

Tried AC3, DTS, DTS-HD and FLAC.

pankov
30th July 2011, 00:40
rahzel,
I've noticed similar thing when using stereo speakers and letting windows mix the 5.1 channels output from LAV Audio to stereo. If I use ffdshow and it's mixer and output in stereo then the volume level is considerably higher.

nev,
is this normal? Am I doing something wrong or it's simply the windows' mixer that isn't doing the job correctly?

SamuriHL
30th July 2011, 01:40
This was just discussed a few posts back. There is no normalization happening when decoding in LAV Audio.

rahzel
30th July 2011, 01:52
i saw that but wasn't 100% sure that was the same thing being discussed.

SamuriHL
30th July 2011, 01:58
Well there's dialnorm metadata embedded in the streams, but, this is ignored when LAV Audio is decoding. I don't think Nev has any plans to add this.

Tsukihime
30th July 2011, 02:23
mpc-hc 1.5.3.3497
lav filters 0.31

mpc-hc crashes when playing TechSmith in AVI

while with gabest avi splitter it is fine

Video
ID : 0
Format : TechSmith
Codec ID : tscc
Codec ID/Info : TechSmith Screen Capture
Duration : 8mn 30s
Bit rate : 79.2 Kbps
Width : 1 024 pixels
Height : 768 pixels
Display aspect ratio : 4:3
Frame rate : 15.000 fps
Bits/(Pixel*Frame) : 0.007
Stream size : 4.82 MiB (18%)
Title : Camtasia Recorder_capture75d26a.avi 视频 #

jmone
30th July 2011, 04:40
Thanks - the higher priority of EAC3 works well!

CruNcher
30th July 2011, 07:14
Well, MediaPortal TS reader (http://www.volny.cz/hoborg/tsreader.zip) have similar problem. It will connect with LAV audio decoder, but there is no sound. DivX AAC is working.

BTW, DivX AAC decoder seems to be only one decoder that is working for certain LiveTV streams. Monogram AAC decoder doesn't working (connected, but no sound).

Yep those sound off issues are crazy just playback the entire file and see if Sound suddenly appears somewhere .ts streams can be strange especially with Scalable AAC and errors though DivX AAC decoder (Mainconcept is the only reliable solution currently) for such streams (to hear anything @ all) also Cyberlinks Decoder works :)

Silent Rain
30th July 2011, 10:02
The video freezes while jumping on the timeline!
Tested on LAV Video Decoder (http://files.1f0.de/lavf/LAVFilters-video3.zip) & MPC-HC 1.5.3.3497 (http://xhmikosr.1f0.de/index.php?folder=bXBjLWhj). Connected to the player all three .ax-files (http://jpegshare.net/a5/32/a53226be9609ecee3fd45ff2011dd6e0.png.html) in external filters (http://postimage.org/image/8p3z7db8/). All the internal decoders and splitters disabled in the settings (http://postimage.org/image/8pfjysro/) of MPC-HC.


Bleeding Through - Orange County Blonde And Blue (Shock Session).mp4: (http://www.mediafire.com/?imhgm8wobdzc2so)

http://jpegshare.net/thumbs/b4/72/b4721f8c91a9ea7eedad4f93bb1da5bf.jpg (http://jpegshare.net/b4/72/b4721f8c91a9ea7eedad4f93bb1da5bf.jpg.html) http://jpegshare.net/thumbs/30/e8/30e8b1e4952b2b7205c4f9c1b117dcac.jpg (http://jpegshare.net/30/e8/30e8b1e4952b2b7205c4f9c1b117dcac.jpg.html) http://jpegshare.net/thumbs/5e/72/5e720798a2285998b5b59fa169cf169f.jpg (http://jpegshare.net/5e/72/5e720798a2285998b5b59fa169cf169f.jpg.html)


Bleeding Through - Death Anxiety.mkv: (http://www.mediafire.com/?tfbjtlic22ycuma)

http://jpegshare.net/thumbs/f6/f9/f6f90f065b893d3b9856987b28a5a5d9.jpg (http://jpegshare.net/f6/f9/f6f90f065b893d3b9856987b28a5a5d9.jpg.html) http://jpegshare.net/thumbs/4e/21/4e21c07c91e5d7ab617ba15492ae94dd.jpg (http://jpegshare.net/4e/21/4e21c07c91e5d7ab617ba15492ae94dd.jpg.html) http://jpegshare.net/thumbs/1f/64/1f64725768a1b0de889ddad3f324a262.jpg (http://jpegshare.net/1f/64/1f64725768a1b0de889ddad3f324a262.jpg.html)


Especially well seen these freezing, if you turn off DXVA (http://postimage.org/image/2q5bgnosk/) and Fast seek (on keyframe) (http://postimage.org/image/2q5d471ac/).

nevcairiel
30th July 2011, 10:06
Seeking in those files works just fine here. Depending on where you seek, it may take up to a second for video to resume - this is to avoid artifacts, not every spot can be resumed from perfectly. But it only happens very rarely, most of the time its instant.

Silent Rain
30th July 2011, 10:18
Depending on where you seek, it may take up to a second for video to resume...

In my case it often takes 10-15 seconds! :eek:

Specification of my PC:
CPU: Intel Core 2 Quad Q6600 @ 2.40 GHz
GPU: NVIDIA GeForce 8600 GT
RAM: 4 GB
OS: Windows 7 x64 (SP1)

But it only happens very rarely, most of the time its instant.

This happens very often! Almost every time while seeking! :mad: :devil:
In Splash PRO and PotPlayer such a long freeze does not happen! Everything works like lightning! This happens only with MPC-HC!

VenomousNinja
30th July 2011, 13:34
For me seeking is broken in .avi files.Only in *.avi containers (The rest works great). Afful lag. When i move a seek bar slider video freezes for 3-4 sec. Using LAV filters on Windows 7 x64 and 32bit latest MPC-HC build. Internal splitters disabled.
Edit: Tested one more movie - I even got 10 sec lag on seeking...

Silent Rain
30th July 2011, 14:10
when i move a seek bar slider video freezes for 3-4 sec.

qed :)

nevcairiel
30th July 2011, 14:39
The important aspect you're forgetting about is that it works 100% smooth for me, so whats there to fix?

Bugs that i cannot reproduce do not exist, and are most likely user failure or another filters fault.
So either tell me *exactly* how to reproduce them, or i cannot do anything (and wont spend any time trying to break it, because it works fine as-is)

Silent Rain
30th July 2011, 15:11
nevcairiel, show me your stats while jumping on the timeline (Ctrl+J) on these files (http://forum.doom9.org/showthread.php?p=1516646#post1516646). With the default settings of MPC-HC & LAV Filters !!!

nevcairiel
30th July 2011, 15:16
This is getting stupid. I have nothing to proof. Seeking works fine for me, and i bet it does for alot of other people, or there would've been complaints before.
There is obviously room for improvement, and there also is a issue tracker ticket about that, but the state is not bad, its "ok", its just not perfect.

Unless someone can provide an actual reproducable case, i'll ignore any further comments on the matter.
I tested your files, and seeking is near-instant, maximum 1s lag.

Silent Rain
30th July 2011, 15:25
nevcairiel
Can you show me the configuration of your PC?

Xaurus
30th July 2011, 15:35
Absolutely no problems with seeking. Using latest LAV filters and mpc-hc.

Boltron
30th July 2011, 16:09
Windows 7. MPC-HC 1.5.3.3491. LAVFilters-0.31-135-ga1e242c Splitter/Audio/Video. Tried a variety of mkv's. No seeking issues.

jj666
30th July 2011, 16:26
qed :)

Seeking works fine here on your first file in MPC-HC (LAVFILTERS/LAVAUDIO/LAVCUVID).

Cheers,

-jj-

RobertinoM
30th July 2011, 17:26
sorry .. silent rain

but I really don't understand all your "!" exclamation marks and so on ..

1) nev has nothing to proof
2) a bug is a bug if it can be reproduced in a well defined, documented manner actually it looks like nobody who has downloaded your files can reproduce it... so occam's razor ... it looks like a problem on your system ... I personally tested on three extremely different (from the hardware but with the same software setup) machines... and no freezes..

3) LAV is for free and Nev is doing a great job with it .. and nobody forces you to use it...

So if you want to help the further development ... be more specific and less arrogant ..

mzso
30th July 2011, 18:36
Hi!
Layman question: What's the difference between LAV Splitter, and LAV Splitter Source? (Besides the name)

magic144
30th July 2011, 20:17
Hi Nev,

just trying LAV Splitter Source + LAV CUVID decoder under ZoomPlayer 8RC2
For some reason, I can't seem to play The Dark Knight (VC1 BluRay) using this combination... Keep getting APPCRASH?

Win7 Home Premium, x86
Nvidia 9500GT
LAV Splitter 0.31
LAV CUVID Decoder 0.9

ps - I can (however) get Doctor Who Specials (BD, VC-1 1080i) to work using the same filter combination??!!
UPDATE - just tried Psycho (50th ann.) - 1080 VC-1 - no problems with that disc - maybe it's the BD structure of Dark Knight that's causing an issue...?

Hmm, something is weird here coz the same disc works on my other PC with LAV Splitter (however, the other PC has an AMD graphics card and I use ffdshow for decoding...). I cannot get LAV Splitter + ANY decoder to work on my Nvidia box with The Dark Knight......

nevcairiel
30th July 2011, 20:42
If its only happening on one of your computers, its really weird, and most likely not strictly a bug in LAV Splitter. Probably some bad interaction with something else.

To rule out random errors, try completely re-downloading and re-installing it
Otherwise, are all other components the same? Audio decoder, audio renderer, video renderer?

nevcairiel
30th July 2011, 20:52
Hi!
Layman question: What's the difference between LAV Splitter, and LAV Splitter Source? (Besides the name)

LAV Splitter relys on another DirectShow filter to read the file, typically the "File Source (Async)" filter. LAV Splitter Source reads the file directly.

Both have their different uses, and different players prefer different ways to use it.

magic144
30th July 2011, 21:24
Hi nev - looks like it was user error - I had misconfigured the ffdshow Audio codec and disabled TrueHD... this obviously makes ZP puke (though I thought it would have done something more graceful like tell me it couldn't build a graph!)

sorry to have jumped the gun! - great filters - possibly replacing all others so far!
I'm really impressed it plays the 1080i VC-1 Doctor Who (well, the CUVID does) - that's a milestone - if only there was a LAV DXVA!

I guess once LAV Audio can downmix to 2.0, I wouldn't need ffdshow Audio on this box anyway - fingers crossed for future features, but no biggie.

nevcairiel
30th July 2011, 21:25
Glad you managed to work out what caused your issue. :)

jmone
30th July 2011, 22:59
.... if only there was a LAV DXVA!


What wil DXVA give you that LAV CUVID will not ? (on a nvidia GPU of course)

magic144
30th July 2011, 23:23
@jmone - nah, I meant for use on my other PC which has ATI/AMD of course :-)
(and no, I don't hold out too much hope for LAV DXVA, too bad!)

mzso
31st July 2011, 00:35
LAV Splitter relys on another DirectShow filter to read the file, typically the "File Source (Async)" filter. LAV Splitter Source reads the file directly.

Both have their different uses, and different players prefer different ways to use it.

Thanks for the info!

Silent Rain
31st July 2011, 03:53
Guys, please, show me your stats while jumping on the timeline (Ctrl+J) on these files (http://forum.doom9.org/showthread.php?p=1516646#post1516646). With the default settings of MPC-HC & LAV Filters. I want to look at the chart peaks and compare them with my peaks.
But before that, turn off DXVA (http://postimage.org/image/2q5bgnosk/) and "Fast seek (on keyframe)" (http://postimage.org/image/2q5d471ac/). This is really important.

Edit: Tested one more movie - I even got 10 sec lag on seeking...

Yes, I also have the video that freezes for 10-15 seconds!
These same problems with seeking confirmed all the Russian community (http://forum.ru-board.com/topic.cgi?forum=5&topic=35155&start=0) members of MPC-HC!!!

it looks like a problem on your system

Splash PRO and PotPlayer has no problems with seeking. So the problem is not in my system or in my PC. Most likely, the problem in MPC-HC.

Blight
31st July 2011, 12:00
I haven't had a 10 second delay in freezing, but I did have a few other weird oddities.
Sometimes (not always) when I seek a 720P MKV file several times quickly, the video goes into slow-motion that can take up to 10 second to right itself. When it goes into this slow motion state, additional seeking can make it worse and take longer to recover.

It doesn't happen too often.

AmshTemp
31st July 2011, 15:25
Morning nevcairiel
I reported yesterday a new broken file to lav bug tracker "Issue 41" but since that issue was marked previously as "Fixed", I am afraid that it might have slipped your attention. I didn't want to flood the issue tracker since this has possibly similar issue as the one fixed.

CruNcher
31st July 2011, 16:00
Lav Splitter doesn't connect to the default WMVVideo Decoder DMO (DXVA (WMV3)) {33564D57-0000-0010-8000-00AA00389B71} it falls back to the Lav Video/MPC Video/ffdshow Decoder (Software) :(
It works with the WMV ASF reader but the problem is that Lav Cuvid doesn't support that :(
I can get either one working accelerated this way but both isn't easy possible as the splitter needs to be switched currently based on the different inputs (WMVA,WMV3 (partial acceleration VP2) .wmv)

nevcairiel
31st July 2011, 16:47
The WMVideo Decoder does only use DXVA in WMP, it does not use DXVA in any other player, so go use another decoder. :p

CruNcher
31st July 2011, 17:54
ehh who says that ?


It works here i use the WMVideo Decoder to accelerate WMV3 (MP) on VP2 (IDCT) and Lav Cuvid for the WMVC1,VC1(ts,m2ts),WMVA (.wmv,.asf) (IDCT) parts it's just a bit problematic to use both as currently i need to switch splitter WMV ASF Reader + WMVideo Decoder (for the WMV3 part), Lav Splitter + Lav Cuvid (for the VC-1,WMVA parts) and Lav Splitter + Lav Video for the WMV1/2 parts all inside MPC-HC :)

Lav Splitter + WMVideo Decoder support is currently really missing (Lav Video is ok but no DXVA it's not a real big loss for a Desktop especially with only IDCT decoding support but it would be nice to have it not only for VC-1 but also MP WMV3) ;)

Theres also a second possible solution but it shows up a sync problem with Arcsofts Decoder and Lav Splitter for WMV3 (MP +WMApro) files .wmv, seeking gets unsync and it doesn't recover (VC-1 timestamp option doesn't help) :(
Lav Splitter + Arcsofts Decoder and WMVA (AP) streams are ok only WMV3 streams getting unsync @ seek in both Software as well as DXVA decoding in combination with both WMVAudio Decoder DMO or Lav Audio (it doesn't seem to be stream specific happens with any WMV3 stream here .wmv).
Arcsofts own ASF Splitter works fine obviously in all cases (though as you can guess isn't working with Lav Cuvid nor Lav Audio), so to me it looks like a interoperability problem in the handling of ASF,WMV @ seeking between Lav Splitter and Arcsofts Decoder.

hoborg
31st July 2011, 17:58
Decoding fails because the MediaPortal TS reader sends wrong AAC headers in the media type. I fixed that now to simply ignore the AAC headers for LATM, except when coming from LAV SPlitter. This does however mean that it might require 1-2 audio packages to get the headers in the stream, and stuff wont be decoded properly until then.

That mean you make LATM working with MePo TS reader? Can you please share test build with your update?

BTW, do you think it is possible to make working thier TS reader handle LATM + LAV audio decoder better?

nevcairiel
31st July 2011, 18:28
That mean you make LATM working with MePo TS reader? Can you please share test build with your update?
There will be a new build soon.


BTW, do you think it is possible to make working thier TS reader handle LATM + LAV audio decoder better?
Everything is possible, the problem is just that most splitters dont actually support LATM, they manage to recognize it and output it, but they dont know enough to extract stream information.

magic144
31st July 2011, 19:08
Hi,
just ran into something I didn't realize... does LAV Splitter not support chapters in Matroska files? (I don't mean the ordered chapter/multiple version thing, I just mean basic, run-of-the-mill embedded chapters) - there are comments in this thread/CHANGELOG that chapter support was added some time ago?

I noticed today that an mkv file with chapters allows chapter selection with Haali but not with LAV...
(using ZP8RC2)

thanks,
m

nevcairiel
31st July 2011, 19:12
Normal chapters work just fine for me in MPC-HC.

magic144
31st July 2011, 19:25
I see that... must be a ZP thing... how do chapters fit into the filter plumbing - does the player have to know how to get the info from the source filter/splitter somehow??

Sebastiii
31st July 2011, 19:31
Everything is possible, the problem is just that most splitters dont actually support LATM, they manage to recognize it and output it, but they dont know enough to extract stream information.

it's open source too, i hope we can modify it, what we need for this ?
Thanks Nevcairiel :)

CruNcher
31st July 2011, 20:06
Opps i was wrong lav splitter and Arcsoft Decoder doesn't get unsync only @ seek but it gets continuously more unsync during playback time too (WMV3) :(

Still there is a visible utilization (Playback) advantage even with just partial acceleration (IDCT) compared to Lav Video directly

Arcsoft DXVA (VP2 IDCT):

http://img855.imageshack.us/img855/2739/arcsoftdxva.th.png (http://img855.imageshack.us/img855/2739/arcsoftdxva.png)

Lav Video (Software Libav):

http://img685.imageshack.us/img685/176/lavvideo.th.png (http://img685.imageshack.us/img685/176/lavvideo.png)

Sebastiii
31st July 2011, 20:21
I can confirm too LAV + ARCSOFT = desync for WMV :)