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

mzso
2nd March 2024, 17:39
Hello!

Why is audio much lower volume with LAV then everything else on the system? The same file is also much louder if I play it with MPV. (players both at 100% of course)

LigH
2nd March 2024, 17:49
Channels, mixing.

Can't tell you more without knowing all the details about your audio track and the setup of the LAV audio decoder.

Megalith
2nd March 2024, 17:55
Sadly, the best solution is usually to just turn up the volume. The geniuses at Dolby/DTS know how to do 9,000-channel surround sound, but they never bothered to make a smarter way of folding down surround to stereo.

mzso
2nd March 2024, 18:04
Channels, mixing.

Can't tell you more without knowing all the details about your audio track and the setup of the LAV audio decoder.

Can I at least increase the output volume or something?

mzso
2nd March 2024, 18:05
Sadly, the best solution is usually to just turn up the volume. The geniuses at Dolby/DTS know how to do 9,000-channel surround sound, but they never bothered to make a smarter way of folding down surround to stereo.

I'm not sure if it's just Dolby and DTS. The DVB mpeg-2 streams seem rather low as well.

huhn
2nd March 2024, 19:31
if you play 5.1 om stereo it is well known that the mixer in lavaudio does not have the same volume level as the windows mixer. this is intentional.

with pcm audio out there are multiply parts where the audio volume is changed so it's not just one to point at.

mzso
3rd March 2024, 01:27
if you play 5.1 om stereo it is well known that the mixer in lavaudio does not have the same volume level as the windows mixer. this is intentional.

with pcm audio out there are multiply parts where the audio volume is changed so it's not just one to point at.

But with audio set to 100% in media players I can do little other than change the system volume or speaker/TV volume all the time. Which sucks.
And the media player (with LAV) seems to be the lowest volume by a decent margin out of every app.

huhn
3rd March 2024, 03:38
if you don't mix it should be the same. at that point lavfilter doesn't do anything anymore.

you can also bit stream where lavfilter can't touch audio yet again.
all other stuff is the windows mixer the windows general audio level and some player allow for more then 100 % volume.

there is also the audio switcher.

mpv and mpc-hc have 100% the same volume here as it should be. but mpv allows for more then 100%.

Siso
3rd March 2024, 12:08
There are two sound normalisers in mpc-be, the first one doesn't work as it should, the second one is from ffmpeg and it is ok. As for mpc-hc the internal normaliser is not so good tho.

huhn
3rd March 2024, 13:24
i don't see what this has todo with lavfilter?

the only place where lavfilter is changing "volume" is in mixing and DRC. the rest is bit perfect and the problem of the player and OS.

flossy_cake
3rd March 2024, 13:35
Post a clip of a low volume video so we can look at dB meter to see what the actual level is

Sunspark
3rd March 2024, 15:37
I was able to hear a difference with the LAV DRC option on an old bluray rip but it was small and I decided it is best used under one of two conditions:

1) You are normalizing/loudness equalizing the volume in Windows (e.g. Realtek Audio Console) or HC- do NOT use DRC option.
2) You are NOT normalizing/loudness equalizing the volume in Windows or HC- go ahead and use the DRC option if downmixing to stereo from 5.1.

Siso
3rd March 2024, 16:52
IMHO the best solution would be a good normaliser/compressor in lav audio or in mpc-hc.

mzso
3rd March 2024, 19:42
Post a clip of a low volume video so we can look at dB meter to see what the actual level is

Everything seems to be affected.
But on further research. Apparently the mediaplayer might be at fault. Fired up mpc-hc and it had the same volume as foobar. But not potplayer.

(not sure about the DVB tuner app)

mzso
3rd March 2024, 19:57
It's weird. If I change the output to the TV (via HDMI) it is much lower volume. If I use the PC output it's only somewhat more silent. I also have the output of Potplayer set to 7.1 (No such thing possible with Foobar) so Windows Sonic would activate. So maybe that raises the volume a bit?

Also, if i set mixing volume to 200 from 100 in potplayer it's louder on PC output, but Foobar is still much louder when I switch to the TV. What a mess.

clsid
4th March 2024, 00:05
MPC-HC's volume normalization adjust the volume in a noticable way, you can spot when the volume is adjusted, not what I'm looking for.Well, suggestions on how to improve the algorithm are welcome. Create an issue on GitHub.

Sunspark
4th March 2024, 04:21
I won't be the one to create the issue, but were one be created I could suggest one thing for consideration here.. perhaps just copy the code from VLC's compressor as it has numeric input boxes for: RMS/peak, attack time, release time, threshold level, ratio, knee radius, makeup gain.

Then an audio expert could figure out "good" values if not using the already chosen values.

Siso
4th March 2024, 10:07
I won't be the one to create the issue, but were one be created I could suggest one thing for consideration here.. perhaps just copy the code from VLC's compressor as it has numeric input boxes for: RMS/peak, attack time, release time, threshold level, ratio, knee radius, makeup gain.

Then an audio expert could figure out "good" values if not using the already chosen values.

Or add 3-4 presets, will be much easier than to tweak the values endlessly.

tebasuna51
4th March 2024, 13:02
IMHO the best solution would be a good normaliser/compressor in lav audio or in mpc-hc.

Remember rule 12:

Do not ask "what's best" because this question cannot be answered objectively. Each and everyone has their own view about what's best in a certain area. The best is what works best for you!

For me the best solution is not use normaliser or compressor.

Each user can have different preferences depend on their audio players don't exist the best solution.

Talking about compressor, AFAIK LAV Filters only can apply DRC included in Dolby audio, and can't recommend use it or create a new filter.
It must be a player (software or hardware) option.

About Normalize don't exist good or bad, if you want Normalize you have the risk of low volume mix, if not you can have clips and now you can protect it or not with the risk of change clips to sudden volume changes. That is all.

In my opinion the Mixing Tab in LAV Filters is all you need to downmix multichannel audio.

huhn
4th March 2024, 14:53
maybe that works better: https://www.ac3filter.net/download-ac3filter/

different audio level between application still cries windows audio mixer.

Siso
4th March 2024, 15:19
maybe that works better: https://www.ac3filter.net/download-ac3filter/

different audio level between application still cries windows audio mixer.

It doesn't decode dolby digital plus audio.

huhn
4th March 2024, 15:24
it doesn't have to decode anything.
just use it as a processor.

Siso
4th March 2024, 15:37
it doesn't have to decode anything.
just use it as a processor.

Is it possible? And how to use it as a processor?

huhn
4th March 2024, 19:51
as long as lpcm and pcm are enabled it will always be loaded when the audio is decoded.
even with default settings is should still load with audio codex it doesn't know because these are decoded to pcm/lpcm be something else.

flossy_cake
4th March 2024, 21:47
I was able to hear a difference with the LAV DRC option on an old bluray rip but it was small

If I'm not mistaken LAV's DRC will only work if the audio track is AC3 and contains DRC metadata, so most of the time it won't do anything at all, and even when it does, it's entirely dependent on how much compression the authors decided to encode.

Personally I find peak normalisation to be sufficient , and it doesn't change the dynamic range or artistic intent. Although I was watching an episode of Seinfeld this evening which was sourced from Google's streaming service and the speech has volume issues even with peak normalisation so I ended up going with the speech slow DRC preset in avisynth and that worked ok. The speech fast one gives pumping but that is an outlier preset with 300ms decay which is too fast. 1000ms seems to work ok .

Balling
6th March 2024, 19:17
If I'm not mistaken LAV's DRC will only work if the audio track is AC3 and contains DRC metadata, so most of the time it won't do anything at all, and even when it does, it's entirely dependent on how much compression the authors decided to encode.



First of all Microsoft MFF decoder decodes DRC differently. Second of all, EAC3 and AC3 are supported, yes, TrueHD is not. Encoder on ffmpeg for eac3 does not support DRC, but all official sources will use DRC even on Atmos EAC3, so this is highly misleading. Basically only applies to ffmpeg encoder.

tebasuna51
7th March 2024, 09:34
For me the ffmpeg encoder is ok when don't add DRC metadata to AC3/EAC3 encodes.

The Dolby system DialogNormalization/DynamicRangeCompression was intended to equalize the audio volume but the consequence is just the inverse:
Like you can see in the image (https://forum.doom9.org/showthread.php?p=1997910#post1997910) with the profile "film standard" (the most common applied) you limit the peak audio volume to -20 dB.
If you change to listen a audio CD (see the 'loudnness war (https://en.wikipedia.org/wiki/Loudness_war)') or a TV advertisement or other movie without AC3/EAC3 audio you need modify the volume.
In DVD times everybody say than DTS track are better than AC3 track, when are both present. For better quality? not always, but for high volume.

If a user want audio compression there are filters (see VLC) to apply it to all audio sources, not only AC3/EAC3, and you equalize all audio volume.
In my opinion the compressor must be a player job but if clsid want include it in the LAV filters no problem.

Maybe Dolby have experience about compression and the Dolby presets can be emulated for all audio sources, in the flossy_cake post (https://forum.doom9.org/showthread.php?p=1997910#post1997910) there are a way to do it with the SoxFilter. But of course there are other compressors in free soft ffmpeg.

SeeMoreDigital
7th March 2024, 09:49
For me the ffmpeg encoder is ok when don't add DRC metadata to AC3/EAC3 encodes.

The Dolby system DialogNormalization/DynamicRangeCompression was intended to equalize the audio volume but the consequence is just the inverse:

Agreed... It's an evil thing that Dolby did :devil:

flossy_cake
7th March 2024, 11:14
Like you can see in the image (https://forum.doom9.org/showthread.php?p=1997910#post1997910) with the profile "film standard" (the most common applied) you limit the peak audio volume to -20 dB.
If you change to listen a audio CD (see the 'loudnness war (https://en.wikipedia.org/wiki/Loudness_war)') or a TV advertisement or other movie without AC3/EAC3 audio you need modify the volume.

Yep and thats why I use Normalize() to recover back the -20db. But I think it recovers slightly less because the compressor attack time is nonzero , so the volume can go temporarily above -20 until such time the average audio level over the attack period goes above -20 , then it will be quickly reduced to -20. So the loudest sample in the whole audio track after compression could still be something like -15 and in that case Normalize would only do +15 gain instead of +20.

Sunspark
11th March 2024, 22:29
For interlaced material that is 29.976 which is originally from a DVD, for the quicksync hw deinterlacing option, which is better?

The checkbox says 50/60 (Video) is recommended, and it makes the source filter 60, but the other one for 25/30 (Film) makes the source filter 30 which is what it is with the original interlaced video.

Both seem to work, the interlacing is removed. How do I know which one is most optimal in terms of quality?

huhn
11th March 2024, 23:03
use 60 always. 30 and 25 as target is only interesting for encoding or detelecine not deinterlacing.

Balling
19th March 2024, 22:05
For me the ffmpeg encoder is ok when don't add DRC metadata to AC3/EAC3 encodes.


It is not just metadata. DRC is the key feature of eac3, that allows to increase the compression/quality

tebasuna51
20th March 2024, 08:47
It is not just metadata. DRC is the key feature of eac3, that allows to increase the compression/quality

For me compression is destroy the quality of the original source.

It was a help for old players, but with new smart players the compression can be done on the fly and apply it for all codecs when it is necesary, not forced with the Dolby settings.

Siso
20th March 2024, 11:02
LAVFilters-0.78.0-9.exe is incomplete. Can you fix it?

nevcairiel
25th March 2024, 18:53
LAV Filters 0.79

LAV Splitter
- NEW: Support for demuxing VVC video
- Changed: Updated language lists to support all relevant language codes
- Changed: Improved resilience of streaming HLS
- Changed: Tweaked frame rate detection logic

LAV Video:
- NEW: Support for decoding VVC video


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

Another update primarily for updating FFmpeg, which brought us VVC decoding. The decoder is still under development and considered experimental - and of course software only and not fully optimized yet.

In the last weeks i've also replaced my hosting infrastructure for the files as well as the Git repositories, but since noone complained much yet, it seems to have been all working so far!

As always, report issues and regressions, in as much detail as possible.

AngelGraves13
26th March 2024, 02:57
LAV Filters 0.79

LAV Splitter
- NEW: Support for demuxing VVC video
- Changed: Updated language lists to support all relevant language codes
- Changed: Improved resilience of streaming HLS
- Changed: Tweaked frame rate detection logic

LAV Video:
- NEW: Support for decoding VVC video


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

Another update primarily for updating FFmpeg, which brought us VVC decoding. The decoder is still under development and considered experimental - and of course software only and not fully optimized yet.

In the last weeks i've also replaced my hosting infrastructure for the files as well as the Git repositories, but since noone complained much yet, it seems to have been all working so far!

As always, report issues and regressions, in as much detail as possible.

Getting major video stuttering as video player can't understand the frame rate now and instead of trying to display a constant frame rate of say 23.976 it's going down to 21 or 22 frames per second.

Something is wrong with the way this version is reporting frame rates. I'm going to roll back. This release is broken.

Schwartz
26th March 2024, 04:21
Working very well here with Youtube and X264 MKV so far. The better HLS handling is much appreciated. Fantastische Codecs.

If I get issues I'll report back.

nevcairiel
26th March 2024, 08:21
Getting major video stuttering as video player can't understand the frame rate now and instead of trying to display a constant frame rate of say 23.976 it's going down to 21 or 22 frames per second.

Something is wrong with the way this version is reporting frame rates. I'm going to roll back. This release is broken.

Framerate information is cosmetic, its not used for playback - timestamps drive that.

If you want to be helpful, could tell us what the information says before and after, and maybe provide a sample file thats observing such problems. Otherwise its never getting fixed.

Francois76l
26th March 2024, 14:14
Getting major video stuttering as video player can't understand the frame rate now and instead of trying to display a constant frame rate of say 23.976 it's going down to 21 or 22 frames per second.

Something is wrong with the way this version is reporting frame rates. I'm going to roll back. This release is broken.

Same for me I have to roll back to v0.78
I tried different player (MPC-HC, MPC-BE and Potplayer)

AngelGraves13
26th March 2024, 15:11
Framerate information is cosmetic, its not used for playback - timestamps drive that.

If you want to be helpful, could tell us what the information says before and after, and maybe provide a sample file thats observing such problems. Otherwise its never getting fixed.

It happens with madvr and with MPC VR. Video literally hitches and stutters every 2 or 3 seconds, like bad frame pacing.

It happens with MKV remuxes in MPC-HC and MPC-BE. Rolling back to the last nightly from 78 worked fine.

nevcairiel
26th March 2024, 15:41
The last nightly, as in LAVFilters-0.78.0-10.exe?
That version is completely identical to the release version, other then the version number being changed.

Sunspark
26th March 2024, 17:07
I haven't noticed any issues yet.. which decoder are you guys with the hitching using?

Francois76l
26th March 2024, 17:10
I rolled back to the last v0.78 version (the one just before your update) and everything worked as usual.
With the last v0.79 version I'm experiencing frame drop and a constant video stuttering every ~2s on a 23.976hz movie.
The rendering time didn't increased

clsid
26th March 2024, 18:42
No issue with a standard mkv rip here. Got no other files on current system to test right now.

So guys, please give a sample file that fails.

Siso
26th March 2024, 22:13
Just tested it with a mkv movie 1h 40min, no issues here.

AngelGraves13
27th March 2024, 21:27
Are the people that are running into issues running a second display at 23.976? That's the setup on the PC with the issue. I'll test at a flat 60hz on my monitor on my second PC when I get home.

Upon further testing...it still does it with 0.79 at 60hz as well.

AngelGraves13
27th March 2024, 21:29
The last nightly, as in LAVFilters-0.78.0-10.exe?
That version is completely identical to the release version, other then the version number being changed.

The last version that's bundled with MPC-HC 2.1.7.2 (might be 0.78.0-5 or 0.78.0-8).

Update: Version 0.78.0-8 works fine.

The file I'm testing is Willy Wonka and the Chocolate Factory 4K HDR that I remuxed with MakeMKV. I also tested a 1080p remux of Goosebumps 2015 and it does the same frame pacing issue with version 79.

AngelGraves13
27th March 2024, 21:46
I rolled back to the last v0.78 version (the one just before your update) and everything worked as usual.
With the last v0.79 version I'm experiencing frame drop and a constant video stuttering every ~2s on a 23.976hz movie.
The rendering time didn't increased

Same for me...it's like it's spiking DPC latency.

Sunspark
27th March 2024, 22:31
I do output 23.976 to my screen.. no drops or stuttering on 1080p. I'm using a copy-back decoder.

You could try checking "disable full-screen optimisations" on the compatibility tab of the player exe properties, see if that changes anything for you.

AngelGraves13
28th March 2024, 00:04
I do output 23.976 to my screen.. no drops or stuttering on 1080p. I'm using a copy-back decoder.

You could try checking "disable full-screen optimisations" on the compatibility tab of the player exe properties, see if that changes anything for you.

But the previous version worked fine.

Can confirm it does it on my other system which has a 4090 RTX.

0.78.0-10 and 0.79 have the problem, 0.78.0-8 does not.

I'm going to assume this is the culprit "Prefer average framerate for reporting, with an accuracy fudge"
https://github.com/Nevcairiel/LAVFilters/commit/58474b042add356b77e0c333f80f9f27d9daa0f3