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

watchman
19th October 2011, 11:20
Why are you using WASAPI, though?

And also, that's usually how compressors work, including ReClock's. You may get less noise if you boost quiet sounds instead of lowering loud sounds (cause this makes you hit the analog volume higher and hiss increases).

Well maybe I'm missing something because I'm not really expert in this stuff, but from I read, I always thought that loudness equalization leads to distortion, which is mostly noticeable in victims of loudness war (probably lot of you heard last album of Metallica - Death Magnetic, which is totally distorted and sounds like a piece of crap).

Also according to this graph, compression is about making louder parts quieter:
http://www.sciencemedianetwork.org/wiki_source/images/b/b1/DRC3.jpg

Noise is not what I really care about because of my quite decent integrated amplifier. I'm using SW player volume down all the time without noticing any hiss at all even on higher volume levels (amplifier is at about 20%, very rarely at 50%).

Once I tried to use free version of this popular EQ, which had good references on head-fi forums (http://www.aixcoustic.com/index.php?id=13) to boost my bass a little bit (2-3db), and I immediately noticed really high distortion. I don't know if that free version is bugged or what, but after that experience, I stopped experimenting with volume boosts.

So only thing that bothers me is not to add any distiortion if possible. But after a quick try of reclock compressor or even vista default mixer, l wasn't able to notice anything similar to electri-q. Maybe than it really is something wrong just with that specific piece of sw and properly implemented sound boost algo isn't noticable if not exaggerated :confused:

STaRGaZeR
19th October 2011, 11:35
That's a nice way of doing it, instead of spamming "Update ffmpeg" commits.

I'll report another bug soon regarding MPEG-2, here's a sample if you want to play with it. libmpeg2 plays it fine.

http://www.mediafire.com/?cye2dhgra9du6v8

This got fixed today in ffmpeg. Tested and confirmed in LAV. Update? :p

Again big thanks to Michael for debugging this!

nevcairiel
19th October 2011, 12:16
This got fixed today in ffmpeg. Tested and confirmed in LAV. Update? :p

Again big thanks to Michael for debugging this!

But i just updated last night. :p
Oh well, doesn't hurt to update again, its only been a handful of changes, a small risk of regressions.

The new subtitle selection is also mostly done, i just need to write some documentation for it now.

kirakami
19th October 2011, 13:26
does lav supports 10 bit output decoding? I am using MPC-HC
not like ffdshow which converts 10 bit to 8bits when decoding
Said nevcairiel: ffdshow does not support 10bit output, it'll always be converted to 8-bit.

nevcairiel
19th October 2011, 13:30
does lav supports 10 bit output decoding?

Yes LAV supports 10-bit output. Note, however, that madVR is the only renderer (that i know of) which accepts 10-bit video. With EVR, VMR or Haali, the video will still be converted to 8-bit, however the 8-bit conversion is using a high quality mathematically accurate dithering, unlike ffdshow which uses incorrect dithering.

Nevilne
19th October 2011, 13:31
Could you please add utvideo support? ( http://git.libav.org/?p=libav.git;a=commit;h=0d8506b8c52659c5bfff9535391d5e95ddcd45f1 )

The native decoder only really works in virtualdub.

hubblec4
19th October 2011, 13:36
nevcairiel, have you planned a tray-icon in the taskbar to show all avalible streams. and to select the streams there like in the Haali Splitter?

nevcairiel
19th October 2011, 13:38
Could you please add utvideo support? ( http://git.libav.org/?p=libav.git;a=commit;h=0d8506b8c52659c5bfff9535391d5e95ddcd45f1 )

The native decoder only really works in virtualdub.

I'll add it after the next ffmpeg update, if i remember. :p

nevcairiel, have you planned a tray-icon in the taskbar to show all avalible streams. and to select the streams there like in the Haali Splitter?

http://code.google.com/p/lavfilters/issues/detail?id=1

madshi
19th October 2011, 13:44
nevcairiel, have you planned a tray-icon in the taskbar to show all avalible streams. and to select the streams there like in the Haali Splitter?
FWIW, if you use madVR, you can switch the LAV Filters streams through the madVR tray icon.

nevcairiel
19th October 2011, 13:46
FWIW, if you use madVR, you can switch the LAV Filters streams through the madVR tray icon.

Most people that request that feature in a stream switching context are usually using some kind of player which is rather "limited" - no stream selection in the player, and no support for 3rd party renderers (like WMP/WMC).

One of these days, i have to figure out how to show a tray icon, hate interacting with the windows GUI. :p

madshi
19th October 2011, 14:13
Most people that request that feature in a stream switching context are usually using some kind of player which is rather "limited" - no stream selection in the player, and no support for 3rd party renderers (like WMP/WMC).
Ah, that makes sense.

One of these days, i have to figure out how to show a tray icon, hate interacting with the windows GUI. :p
Managing the tray icon itself is pretty easy, see API "Shell_NotifyIcon". I think the majority of your tray icon development time will go into creating a nice looking popup menu for the stream selection.

roytam1
19th October 2011, 14:56
I'll add it after the next ffmpeg update, if i remember. :p



http://code.google.com/p/lavfilters/issues/detail?id=1

And please test vc1/vc1i decoding again after ffmpeg update as some bugs in vc1dec are fixed according to libav git log.

nevcairiel
19th October 2011, 15:45
And please test vc1/vc1i decoding again after ffmpeg update as some bugs in vc1dec are fixed according to libav git log.

I revert all VC-1 patches because the new VC-1i decoding crashes more then it decodes anything, and if it decodes anything its only a corrupted mess - and on top of that, even introduced artifacts in previously working progressive samples.

kirakami
19th October 2011, 15:48
Can you add Input/Output "Status" for LAV Video Decoder too?
currently only LAV Audio Decoder have Input/Output in Status [Tab]

using LAV 0.37 with MPC-HC

adding Status will help easier to understand for us
what Video input used what Video output used YV12 or P010

kirakami
19th October 2011, 15:50
edit: removed duplicate

kirakami
19th October 2011, 15:51
ASS subtitle Filter Broken
Anime uses ASS subtitles mainly
LAV Splitter didn't play subtitle at all except for Opening Karaoke sub
ASS sub renders perfect with xy-vsfilter
can you fix internal LAV Splitter subtitle filter?

nevcairiel
19th October 2011, 15:51
ASS subtitle Filter Broken
Anime uses ASS subtitles mainly
LAV Splitter didn't play subtitle at all except for Opening Karaoke sub
ASS sub plays perfect with xy-vsfilter
can you fix internal LAV Splitter subtitle filter?

LAV Splitter has nothing to do with how your subtitles are rendered.

kirakami
19th October 2011, 16:00
LAV Splitter has nothing to do with how your subtitles are rendered.

Does it mean LAV Filter does not have its own Subtitle Renderer?

Keiyakusha
19th October 2011, 16:47
Does it mean LAV Filter does not have its own Subtitle Renderer?

Sorry, but answer to your questions is So obvious that it looks like trolling. No there is no such filter and there is no need for it to be there.

STaRGaZeR
19th October 2011, 17:36
But i just updated last night. :p
Oh well, doesn't hurt to update again, its only been a handful of changes, a small risk of regressions.

The new subtitle selection is also mostly done, i just need to write some documentation for it now.

Yeah, I have been testing that too. Default seems to work just fine!

e-t172
19th October 2011, 17:39
Well maybe I'm missing something because I'm not really expert in this stuff, but from I read, I always thought that loudness equalization leads to distortion, which is mostly noticeable in victims of loudness war (probably lot of you heard last album of Metallica - Death Magnetic, which is totally distorted and sounds like a piece of crap).

You can't do dynamic range compression without distortion (almost by definition).


Once I tried to use free version of this popular EQ, which had good references on head-fi forums (http://www.aixcoustic.com/index.php?id=13) to boost my bass a little bit (2-3db), and I immediately noticed really high distortion. I don't know if that free version is bugged or what, but after that experience, I stopped experimenting with volume boosts.

An EQ in itself doesn't distort the sound. It can, however, clip the output (depending on the input), which results in distortion. You should try with a lower input volume.

Andy o
19th October 2011, 19:52
Well maybe I'm missing something because I'm not really expert in this stuff, but from I read, I always thought that loudness equalization leads to distortion, which is mostly noticeable in victims of loudness war (probably lot of you heard last album of Metallica - Death Magnetic, which is totally distorted and sounds like a piece of crap).

Also according to this graph, compression is about making louder parts quieter:
If you're editing, you can do whatever you want with compression, including of course making loud sounds quieter. But on-the-fly compression algorithms don't have to do that. If it's clipped in the original, there's nothing it can do. The algorithm should also be smart enough not to clip itself, so you wouldn't have the problem with Death Magnetic.

Once I tried to use free version of this popular EQ, which had good references on head-fi forums (http://www.aixcoustic.com/index.php?id=13) to boost my bass a little bit (2-3db), and I immediately noticed really high distortion. I don't know if that free version is bugged or what, but after that experience, I stopped experimenting with volume boosts.

That's different cause of two things. First is you're just boosting. The real-time compression algorithms used for watching movies should be smart enough to be able to tell when quiet sounds need boosting. If for instance you have a very quiet sound out of one channel, and a loud one out of another, at the same time, the quiet sound won't get boosted cause it would boost everything, including the loud sounds too, and they could clip.

Second, you're just boosting some frequency range. It had been a known problem with iPods that when using EQ you could get clipping fairly easily. Apple JUST fixed it with the iPod Touch 4 and probably others. Fix was simple, boost frequency, then dial back overall gain.

hubblec4
19th October 2011, 19:59
another question.

is it possible to play mkvs with multiple Editons inside?

NanoBot
19th October 2011, 20:13
"Editions" and "ordered chapters" are only a different names for the same feature, which is actually not included in the matroska part of the LAV_splitter. Therefore ATM you will have to use Haalis splitter if you need this. Hopefully, this feature will be integrated in the future, but of course it is totally nevcariel choice if and when this may happen.

kirakami
20th October 2011, 08:41
any plans for Hardware Acceleration CUDA & DXVA?
only CUVID is included says 'Not Available'

Xaurus
20th October 2011, 10:00
any plans for Hardware Acceleration CUDA & DXVA?
only CUVID is included says 'Not Available'
Do you have an Nvidia GPU? If not, it won't work.

THX-UltraII
20th October 2011, 12:35
I want to swap my ATI HD5450 for a NVIDIA card for two reasons:

1. Use CUVID and that way:
2. reduce CPU usage. I want to use my CPU for a heavy frame interpolation script with avisynth.

What the best card for CUVID?

BatKnight
20th October 2011, 13:07
I want to swap my ATI HD5450 for a NVIDIA card for two reasons:

1. Use CUVID and that way:
2. reduce CPU usage. I want to use my CPU for a heavy frame interpolation script with avisynth.

What the best card for CUVID?
If you can afford it, and want the latest tecnology, I would recommend a GeForce GTX 550 Ti, or higher. (FWIW the GTX550 has 192 CUDA cores)
Here in Portugal, such a card is available for about 125 EUROS.

The GT440 or the GTS450 would also be good alternatives, but are from an older generation.

You may compare other editions here: http://www.geforce.com/Hardware/GPUs

Nicola
20th October 2011, 13:09
Hi. I asked this on the CUVID thread but I got pointed here, so here I fire my question.
I'm trying to fix an issue I have with h264 decoding: when video has 9, or 16 ref frames, the seeking will disable the video; I have to seek some more to get the video back on, and it doesn't always work. The resolution of the video doesn't seems to be important, it happens for both dvd or fullhd resolutions.
Using mpc-hc as player, haali as splitter (need it for ordered chapters), ffdshow for audio decoding (exept FLAC), video decoding done via software, for fullhd the cpu (AMD 4cores) usage is less than 20% (mardock scramble), haali or madvr for rendering.
So the question is: what is causing this seek issue? my box horsepower should be more then enough, and there aren't spikes of cpu or gpu usage when it happens.

roytam1
20th October 2011, 13:25
Got some feedback regarding my rv34seekkeyframe patch/"hack":
The patch did its job well, but sometimes the audio become muted. When seeking to same point again, the audio recovers.

Actually whats the problem between LAV Audio, LAV Video, and the whole DirectShow graph?

nevcairiel
20th October 2011, 15:35
Got some feedback regarding my rv34seekkeyframe patch/"hack":
The patch did its job well, but sometimes the audio become muted. When seeking to same point again, the audio recovers.

Actually whats the problem between LAV Audio, LAV Video, and the whole DirectShow graph?

I doubt that just delaying video frame delivery would cause the audio to stop, because audio actually defines the reference clock, not video.

e-t172
20th October 2011, 15:40
…unless you're using ReClock.

Volfield
20th October 2011, 16:10
New nightly:
http://roy.orz.hm/lavf-w32-nightlies/lavf-my111019-rv34seekkeyframe-c73aa37.7z

diff:
http://roy.orz.hm/lavf-w32-nightlies/lavf-my111019-rv34seekkeyframe-c73aa37.diff

On this nightly when i set subtitles to advanced and open mp4 file without subtitle my players (pot and mpchc) crash. The same file plays ok when i set default.

roytam1
20th October 2011, 16:55
I doubt that just delaying video frame delivery would cause the audio to stop, because audio actually defines the reference clock, not video.

Then I wonder if this will happen in MPEG2VIDEO and VC1 as well.

Andy o
20th October 2011, 17:04
Hi. I asked this on the CUVID thread but I got pointed here, so here I fire my question.
I'm trying to fix an issue I have with h264 decoding: when video has 9, or 16 ref frames, the seeking will disable the video; I have to seek some more to get the video back on, and it doesn't always work. The resolution of the video doesn't seems to be important, it happens for both dvd or fullhd resolutions.
Using mpc-hc as player, haali as splitter (need it for ordered chapters), ffdshow for audio decoding (exept FLAC), video decoding done via software, for fullhd the cpu (AMD 4cores) usage is less than 20% (mardock scramble), haali or madvr for rendering.
So the question is: what is causing this seek issue? my box horsepower should be more then enough, and there aren't spikes of cpu or gpu usage when it happens.

Have you isolated the issue to LAV Video yet?

nevcairiel
20th October 2011, 17:09
On this nightly when i set subtitles to advanced and open mp4 file without subtitle my players (pot and mpchc) crash. The same file plays ok when i set default.

Did you enter any advanced configuration, or was the box empty?

Volfield
20th October 2011, 17:13
Did you enter any advanced configuration, or was the box empty?

I enter this: jpn:eng jpn: pol pol: off (without spaces after : )

nevcairiel
20th October 2011, 17:23
I enter this: jpn:eng jpn: pol pol: off (without spaces after : )

Thanks, should be fixed.

Volfield
20th October 2011, 17:28
Thanks, should be fixed.

Thanks. Can't wait for new nightly :)

SamuriHL
20th October 2011, 17:29
Oh sure, I JUST got done building. Figures. :p

adam777
20th October 2011, 17:47
Hi Nev,
Haven't used LAV filters for watching DVB-T broadcasts for about a month, but today I tried and quickly noticed a regression in the LAV audio component of 0.37, comparing to 0.36.
In 0.36 the audio is decoded fine, while in 0.37 the audio is decoded with lots of "noise" on top.
Also happens with the following dump when playing it offline in MPC-HC.
Here is a sample of a raw mpeg-ts dump, captured via the DVB-T application.
http://www.multiupload.com/K1JY38R5SK

nevcairiel
20th October 2011, 18:08
Hi Nev,
Haven't used LAV filters for watching DVB-T broadcasts for about a month, but today I tried and quickly noticed a regression in the LAV audio component of 0.37, comparing to 0.36.
In 0.36 the audio is decoded fine, while in 0.37 the audio is decoded with lots of "noise" on top.
Also happens with the following dump when playing it offline in MPC-HC.
Here is a sample of a raw mpeg-ts dump, captured via the DVB-T application.
http://www.multiupload.com/K1JY38R5SK

I figured out what broke it, its a change in ffmpeg. I'll revert it for the time being, and let them know about the issue.

kirakami
20th October 2011, 18:33
MPC-HC crashes when i
LAV audio decoder
Enabled Audio Delay
& press "-" minus key
i wanted set audio to play -10000 ms
due to video
http://www.mediafire.com/download.php?a8nuhat16bn0ole
i was watching has audio/video 10sec sync issue (audio plays after 10secs)

hoborg
20th October 2011, 18:36
Hmm, i just tryed to play some .WAV with DTS inside and it doesnot work any longer - only noice.
Was not that working before?

adam777
20th October 2011, 19:43
I figured out what broke it, its a change in ffmpeg. I'll revert it for the time being, and let them know about the issue.

Thanks, appreciated :)

06_taro
20th October 2011, 20:32
Thx for supporting vobsub in mp4 files. Hope for officially supporting ordered chapters.

Custom build ( 32 and 64 bit )
LAVFilters-git-r1365(2dc15e5).7z: MediaFire (http://j.mp/LAVFilters-r1365), NMM-Mirror (http://nmm.me/2c)

PS. Could you please add an option to prefer text formats subtitles or image formats when they are in the same language?

ikarad
20th October 2011, 21:27
I figured out what broke it, its a change in ffmpeg. I'll revert it for the time being, and let them know about the issue.

Can we expect to add a deband filter and a TIVTC filter in lav video?

I ask that because with 10bit video, I can't use ffdshow if not output is transformed in 8bit. With only lav video chain stay in 10bits.

roytam1
21st October 2011, 00:58
Thx for supporting vobsub in mp4 files. Hope for officially supporting ordered chapters.

Custom build ( 32 and 64 bit )
LAVFilters-git-r1365(2dc15e5).7z: MediaFire (http://j.mp/LAVFilters-r1365), NMM-Mirror (http://nmm.me/2c)

PS. Could you please add an option to prefer text formats subtitles or image formats when they are in the same language?

I wonder if you've change anything?
If so it is nice to give out a diff file for the changes. (git diff > changes.diff is handy)

Keiyakusha
21st October 2011, 01:12
Hope for officially supporting ordered chapters.
Are you saying there is somewhere unofficial build with ordered chapters support or something like that?

Mixer73
21st October 2011, 01:23
Nev,

I've come across a strange possible bug in LAV Filters with LAVCUVID.

I'm using it with PotPlayer in dual head, playing video on one screen while I do other stuff on the other screen, and sometimes something like a facebook game can make the video play with reversed field order (I think... its really jittery/wrong looking).

If I pause/play it works perfectly again.

Currently on a fresh format of Win7 64bit/GTX260 card, EVR CP.

Any suggestions of how I can further troubleshoot?