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

STaRGaZeR
26th May 2012, 12:22
MediaFire isn't all that much faster anymore either. :P

Aye, usually I don't get more than 200 KB/s out of it.

nevcairiel
26th May 2012, 12:58
LAVSplitter can't play some m2ts(ssif) files
Sample (http://www.putlocker.com/file/8A2C1124222C6569) Mirrors (http://go4up.com/dl/1piODryiWIdQ)


Partly fixed, LAV can now at least access the normal H264 stream in such files, but the second stream for 3D is not accessible (yet).

HoP
26th May 2012, 13:13
@nevcairiel
do you have any plan to add filters like sharpening,postprocessing,deband & etc to LAV Filters??
i'm using ffdshow just for this settings.
anyway,many many thanks for your awesome project
goodluck
any idea??
thanks in advance

nevcairiel
26th May 2012, 13:14
any idea??
thanks in advance

No plans.

Mercury_22
26th May 2012, 13:21
Partly fixed, LAV can now at least access the normal H264 stream in such files, but the second stream for 3D is not accessible (yet).

Working :thanks:

P.S. The second stream problem is related with issue 3 (http://code.google.com/p/lavfilters/issues/detail?id=3&colspec=ID%20Type%20Status%20Priority%20Filter%20Summary) ?

nevcairiel
26th May 2012, 14:07
P.S. The second stream problem is related with issue 3 (http://code.google.com/p/lavfilters/issues/detail?id=3&colspec=ID%20Type%20Status%20Priority%20Filter%20Summary) ?

Not at all.

SamuriHL
26th May 2012, 14:40
Nev, have you tried the VS11 beta yet?

SamuriHL
26th May 2012, 17:11
Just an FYI, it builds fine with VS11 Premium beta. Good to know. :)

mzso
26th May 2012, 17:24
Anyone tried potplayers new rotation feature? With LAV and ffdshow the video is corrupted at 90° and 240°.
http://www.abload.de/thumb/sky.high.2005.bluray.5slun.png (http://www.abload.de/image.php?img=sky.high.2005.bluray.5slun.png)

nevcairiel
26th May 2012, 17:27
Anyone tried potplayers new rotation feature? With LAV and ffdshow the video is corrupted at 90° and 240°.

Rotation has nothing to do with the decoder, if its broken, its the renderers fault (or post-processing filter, depending how its implemented). The decoder always just outputs its image.

wanezhiling
26th May 2012, 18:23
http://www.mediafire.com/?76gf02wj3a2vdd0

LAV Video (http://i.imgur.com/hjXWb.jpg)

00:00:12, only CoreAVC is ok.:)

nevcairiel
26th May 2012, 18:29
Corruptions in software decoding should be reported to ffmpeg or libav, as only they can fix them.
Especially the H264 decoder is way too complicated for me to hack around in on such cases.

wanezhiling
26th May 2012, 18:58
Anyone tried potplayers new rotation feature? With LAV and ffdshow the video is corrupted at 90° and 240°.
http://www.abload.de/thumb/sky.high.2005.bluray.5slun.png (http://www.abload.de/image.php?img=sky.high.2005.bluray.5slun.png)

PotPlayer's post-processing filter has much compatibility issue with third-party decoder.

Unfortunately many image features of PotPlayer are in the post-processing filter..

So use PotPlayer's internal video decoder(not dxva) if you need some image features like rotation.

mzso
27th May 2012, 15:01
PotPlayer's post-processing filter has much compatibility issue with third-party decoder.

Unfortunately many image features of PotPlayer are in the post-processing filter..

So use PotPlayer's internal video decoder(not dxva) if you need some image features like rotation.

Ah. Ok. Thanks for the info.

Midzuki
27th May 2012, 20:56
MP4 ALS thru LAV Audio gets a very-high CPU usage :confused: :confused: :confused:

revision 0.50.5 is less hungry than 0.50.1, but still is too hungry for my tastes :scared:

Mplayer OTOH behaves as it should :cool:

nevcairiel
27th May 2012, 22:30
Using MPC-HC to play a ALS file uses 0% CPU according to the task manager. Clearly, too much.

DragonQ
27th May 2012, 22:43
In this day and age, it most certainly is. Anything that uses >0.01% CPU is "bloated". ;)

shimaflarex
27th May 2012, 23:16
Can you add "skip deblocking when safe" and "skip all deblocking" for h264 video?

DragonQ
27th May 2012, 23:30
Are those options for lower end hardware? Cos, as far as I'm aware, deblocking is the major difference between H.263 and H.264 so disabling it kinda defeats the point. Could be totally wrong though lol.

Midzuki
27th May 2012, 23:55
Using MPC-HC to play a ALS file uses 0% CPU according to the task manager. Clearly, too much.

I see, I will tell Reimar to make Mplayer always use anything between 60% and 95% CPU-time on every single-core computer. :rolleyes:

ryrynz
28th May 2012, 00:12
I laughed when you said single core, but we've been down this road before. ;)

Midzuki
28th May 2012, 00:46
...
but we've been down this road before. ;)

Not sure of what you tried to say, but...

I mean it --- over here, LAV Audio is good at decoding FLAC, WavPack and ALAC, but does eat CPU-time for decoding MPEG-4 ALS.

Midzuki
28th May 2012, 01:55
Besides, and FWIW, :

--- while playing a stereo ALS file,

1) ffplay adds 19MB to pagefile.sys

2) Mplayer adds 33MB to pagefile.sys

3) LAV Audio adds 68MB :scared: to pagefile.sys

--- EDIT ---

Just tested MPC-HC odio dekoda, well, it requires "only" 22MB from pagefile.sys, but it still is as CPU-hungry as LAV Audio :( Also, both filters freeze the player (Graphstudio, MPC-HC, WMP) during many seconds when I press the Stop button -.-

Mikey2
28th May 2012, 03:28
This just started happening in this build: I cannot seem to output NV12 out of the LAV Video Decoder anymore. (It will output YV12, and if I de-select that, it will fall-back to YUY2.)

I am just using software decoding and my input media-type is Mpeg4 h264. (Here are a couple examples from the input-pin:
"Video: MPEG4 Video (H264) 1920x1040 (37:20) 23.976fps"
"Video: MPEG4 Video (H264) 1280x720 23.976fps" )

Finally, I know it is an issue with LAV Video Decoder, since the same files work fine in NV12 when using any other decoder, such as CoreAVC or ffdShow...

I suppose it is not a huge deal since YV12/NV12 are similar, but I am confused...why is this happening?

Thanks in advance!

Volfield
28th May 2012, 04:46
Can you add "skip deblocking when safe" and "skip all deblocking" for h264 video?

+1 to that

meetajhu
28th May 2012, 08:01
Lav Filters with CudaVideo kicks ass!!! All you need is to finish the MPEG-4 problems!

nevcairiel
28th May 2012, 08:25
Can you add "skip deblocking when safe" and "skip all deblocking" for h264 video?

All these options do is lower the quality of the decoded video, so no, i will not.
Deblocking is a mandatory part of the decoding of H264, its not optional like in other formats.


Finally, I know it is an issue with LAV Video Decoder, since the same files work fine in NV12 when using any other decoder, such as CoreAVC or ffdShow...


And i know NV12 works just fine for me. :)
There also have been no changes whatsoever to any code related to such things for quite a long while, so if it just started happening now, something else is up.

ryrynz
28th May 2012, 09:22
All these options do is lower the quality of the decoded video, so no, i will not.

And allow old/outdated hardware to play back content with better performance :)

It seems programmers will forever be asked to support old and outdated hardware rather than people just upgrading what they've got to suit their needs, carry on :D

mzso
28th May 2012, 11:11
And allow old/outdated hardware to play back content with better performance :)

It seems programmers will forever be asked to support old and outdated hardware rather than people just upgrading what they've got to suit their needs, carry on :D

They can use outdated formats for outdated hardware. Like mpeg-2 dvd-s. Or less out dated mpeg-4 part 2 videos.

Midzuki
28th May 2012, 14:08
All these options do is lower the quality of the decoded video,

And allow old/outdated hardware to play back content with better performance :)

It seems programmers will forever be asked to support old and outdated hardware rather than people just upgrading what they've got to suit their needs, carry on :D

So you mean ffplay and Mplayer "degrade" the quality of MPEG-4 ALS when they run on "outdated" hardware? :rolleyes:

But thanks for showing you are an unconditional backer of the narrow-minded thing called *planned obsolescence*. :p

ryrynz
28th May 2012, 14:20
So you mean ffplay and Mplayer "degrade" the quality of MPEG-4 ALS when running on "outdated" hardware? :rolleyes:


Wouldn't know, never used them, Nev mentioned quality not I.

But thanks for showing you are an unconditional backer of the narrow-minded thing called *planned obsolescence*. :p

You can't expect computer hardware to last forever, things are forever improving, instruction sets change, code becomes more complex. I'm no unconditional backer nor do I believe this to be narrow minded, it's the nature of technology at stage of our development. The useful life of your technology is determined solely by the software installed on it and the demands you place on it, that is all. :rolleyes:

nevcairiel
28th May 2012, 14:37
So you mean ffplay and Mplayer "degrade" the quality of MPEG-4 ALS when they run on "outdated" hardware? :rolleyes:

What does deblocking of H264 have to do with MPEG-4 ALS now?
Let me tell you: Nothing, nothing at all. You just tried to be a smart-ass (again)

The point is, i will never implement any feature that would degrade quality on purpose, for whatever reason there might be.
The biggest problem with that is that people mis-interpet such options and then turn them on - and then come and complain! "But i only turned on skip deblocking when safe, it said it was safe!"

Anyway, your attitude seems to be the narrowminded one. If you pay me, i will gladly investigate problems with your ancient hardware, but since you don't, i'll focus on the 99.9% of all people that have more recent hardware.
In any case, like i said, a sample MPEG4 ALS file i had around used less then 1% CPU on my system (mostly showing up as 0%), i can't say that its using much. Cannot reproduce, case closed. You can go troll elsewhere now :)

Midzuki
28th May 2012, 14:50
If you pay me, i will gladly investigate problems with your ancient hardware, but since you don't, i'll focus on the 99.9% of all people that have more recent hardware.
In any case, like i said, a sample MPEG4 ALS file i had around used less then 1% CPU on my system (mostly showing up as 0%), i can't say that its using much. Cannot reproduce, case closed.

At last, you have gone straight to the point, instead of pretending a problem does not exist.

You just tried to be a smart-ass (again)

That's just your stupid opinion of course.

Anyway, your attitude seems to be the narrowminded one.

Look who's talking.

Midzuki
28th May 2012, 14:55
...

nor do I believe this to be narrow minded, it's the nature of technology at stage of our development.

Wrong again. It's the nature of *business model* at stage of our "development".

thewebchat
28th May 2012, 16:26
For what it's worth, on the only ALS file I could find, I read higher CPU usage in MPC than with a FLAC file off my library. It was something like 6-9% CPU usage for ALS compared to 4% for FLAC, with an idle CPU usage of 3% in MPC. This doesn't surprise me since ffmpeg ALS code isn't particularly optimized. What's more surprising is that someone actually cares about ALS which has had essentially 0 consumer or industry interest.

Edit: I confirmed high (30+%) CPU usage playing a file converted with the ALS reference software (mp4alsRM22rev2.exe in.wav out.mp4). CPU usage always seems to be higher at startup.

Midzuki
28th May 2012, 16:32
Maybe if you shared the problematic file instead of trolling around...

There is N0 "problematic file" for being shared, to begin with.

...
ffmpeg ALS code isn't particularly optimized.

As I said, both ffplay and Mplayer can decode ALS with less than 10% of CPU-usage on my "rig".

And yes, I "love" people who selectively pretend they misunderstand what they read.

Skibicki
28th May 2012, 17:19
MP4 ALS thru LAV Audio gets a very-high CPU usage
DC-Bass Source Mod (http://forum.doom9.org/showthread.php?t=164200) may help. It looks to be based on a different decoder than Lav Audio. DC-Bass Source Mod doesn't support "containered" audio formats (AVI, MPG, MP4 or MKV). You'd need LAV Filters for that.I am curious. Can Lav split the audio for BASS to decode or is audio required to be in seperate files for Bass source filter?

nevcairiel
28th May 2012, 17:37
There, i managed to lower the CPU usage from like 0.60% to 0.15%, happy now? :p

SamuriHL
28th May 2012, 17:42
There, i managed to lower the CPU usage from like 0.60% to 0.15%, happy now? :p

Oh thank God! I can sleep at night again! :D

Qaq
28th May 2012, 17:56
Gotcha. How about to lower CPU usage for DXVA CB now?:D

Hera
28th May 2012, 17:56
Can you add "skip deblocking when safe" and "skip all deblocking" for h264 video?

+1
That is a great option for non-DXVA compatible video.

nevcairiel
28th May 2012, 18:08
Gotcha. How about to lower CPU usage for DXVA CB now?:D

The copying process uses around 0.8% CPU on my system. Can't say thats alot (a total usage of around 2%, for demuxing and other tasks)
What CPU do you have? It will probably be rather inefficient on AMD CPUs, because the highly optimized copy function won't work there..

May also depend on your GPU, i didn't really measure CPU usage with an AMD GPU, maybe i should. :)

Considering it needs to copy around 100mb/s of image data (twice, actually), 1% of usage seems ok.

Qaq
28th May 2012, 18:15
Never mind, I was just kidding. LAV does pretty good job on my system, I can't complain.

Midzuki
28th May 2012, 18:30
There, i managed to lower the CPU usage from like 0.60% to 0.15%, happy now? :p

I don't know, I don't have an updated LAVAudio.ax to test.

Midzuki
28th May 2012, 20:44
...

Can Lav split the audio for BASS to decode or is audio required to be in seperate files for Bass source filter?

I think LAV Audio could use the BASS dll(s), more or less in the same way it already can use Arcsoft's DTS DLL. Of course, the final decision is in Nev's hands, and he might even refuse a patch that he happens to regard as "irrelevant". ;)

mzso
28th May 2012, 21:16
There, i managed to lower the CPU usage from like 0.60% to 0.15%, happy now? :p

Wonder what kind of CPU he has if 0.6% correlates to 60-90% on his computer. Intel486?

robpdotcom
28th May 2012, 21:42
What's more surprising is that someone actually cares about ALS which has had essentially 0 consumer or industry interest.

I was thinking the same thing. I never even heard of ALS until yesterday.

If you want to use some rare codec that nobody else seems to care about, then don't complain if the free software you use to decode it doesn't meet your satisfaction. Report the problem, offer to provide some samples, and then thank the developer for his time and efforts (which he is being very generous with just by offering the software to begin with).

What I'm seeing here is like asking someone for money, and then insulting them if they don't give you the exact amount you asked for. It's just rude and ungrateful.

hoborg
28th May 2012, 21:44
I think LAV Audio could use the BASS dll(s), more or less in the same way it already can use Arcsoft's DTS DLL. Of course, the final decision is in Nev's hands, and he might even refuse a patch that he happens to regard as "irrelevant". ;)

Hi.
Have MO3, IT, XM, S3M, MOD, etc... support in one audio decoder will be great.
But is it really worth the efort?

ageback
29th May 2012, 00:21
Is it necessary to build ffmpeg every time even if it was not changed?

ryrynz
29th May 2012, 01:03
I don't know, I don't have an updated LAVAudio.ax to test.

latest build with the improvement below.


Avoid needless copying of the encoded audio buffer. This can lead to drastic performance increase in some formats (most notably MPEG-4 ALS)


http://xhmikosr.1f0.de/lavfilters/LAVFilters-0.50.5-2856720.exe