View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
clsid
13th May 2021, 14:58
@nev
Can you make a MinGW GCC 10.3 (or 11.1) build?
Astray
16th May 2021, 07:42
Hey there, got another audio/subtitle language order question. I watch a lot of anime and made a pretty crazy subtitle preference instructor
eng:*|f, eng:eng@Signs, eng:off, jpn:eng@Full, jpn:eng@Subtitles, jpn:eng, *:eng|d, *:*|df
The issue I'm having is with a lack of flexibility in the audio language currently. Generally I want to have jpn as the default language, but on rare occasions there are some anime that have better, or at least comparable, English voice acting and the .mkv files have it as the default audio language. This gets completely overwritten by the audio language preferences though. I don't even think forced audio languages would be respected in the files, in which case I can just remux the files, but I haven't tested.
Is there a way to do something like
*|df, jpn, eng
for the audio language preference and make it work?
nevcairiel
16th May 2021, 07:59
The advanced selector syntax is only available for subtitles, for audio only a list of languages is available currently.
Astray
18th May 2021, 10:16
The advanced selector syntax is only available for subtitles, for audio only a list of languages is available currently.
Where would be a good place to submit feedback and/or feature request for this? I would imagine it's not too difficult to add the feature in since you could probably copy and paste most of the code used for the subtitle selection.
sofakng
20th May 2021, 15:09
Is it possible to use DXVA2/D3D11 copy-back for 8K videos? (ie. 7260x3630)
I'm using an i7-8700k (PCIe 3.0 x16) an RTX 3080 but it's extremely slow.
Native-mode works fine but I need copy-back to use AviSynth and some filters on the video.
If it's not possible, what is the bottleneck?
el Filou
20th May 2021, 16:15
It's hard to pinpoint a single component that makes copyback slow or OK. In theory it should be fine with all systems but some even with IMC already had issues with it in 4K.
We had a thread dedicated to that here: https://forum.doom9.org/showthread.php?t=176642
I would say it is a quite safe bet that elaborate filtering of 8K UHD video in AviSynth+ won't work in real time. Certainly slower than untouched copy-back rendering.
clsid
28th May 2021, 13:21
I am now using a tool to convert GCC debug info into PDB, so that the crash reporter of MPC-HC is able to create proper stack traces for crashes that happen inside the FFmpeg code. It seems to be working well for traces, although it lacks values of variables.
One of the crashes it has logged so far is this one in the Matroska parser:
https://imgur.com/a/EvddqYY
readbytes is called with a nullpointer for the buffer. The code lacks a check for memalloc failure.
The crash dump indicates that user had 400+ MB of free memory. But that might have been heavily fragmented.
GMJCZP
1st June 2021, 23:04
I'm having a problem playing this .ape file, it sounds noisy, both with WMP and MPC-HC, when opening it in Adobe audition it sounds fine.
SampleAPE (http://www.filedropper.com/kalimba)
Edit: I am using BeHappy 0.3.0.19814 and Monkey's Audio Console Front End 3.99 as encoder. I am using LavFilters 0.75.
filler56789
2nd June 2021, 13:01
I'm having a problem playing this .ape file, it sounds noisy, both with WMP and MPC-HC, when opening it in Adobe audition it sounds fine.
SampleAPE (http://www.filedropper.com/kalimba)
Confirmed, noisy with LAV Filters, plays OK with MPV.
Monkey's Audio Console Front End 3.99
FWIW: latest Monkey's Audio is version 6.29 :-|
GMJCZP
2nd June 2021, 15:25
The lasts versions of MAC are not compatible with BeHappy because a problem with Stdin (?).
hubi73
8th June 2021, 00:14
Should this vulnerability be fixed in LAV Filters? Maybe in a nightly update?
https://nvd.nist.gov/vuln/detail/CVE-2021-33815
https://github.com/FFmpeg/FFmpeg/commit/26d3c81bc5ef2f8c3f09d45eaeacfb4b1139a777
Calvi
12th June 2021, 06:06
Because it has no future, and already several problems, and leaving something around to suffer bitrot because it could be useful for someone is not how I work.
No argument from me and I am keen to move to d3d11 but I also need Deinterlacing.
CUVID still works best for our DVB broadcasts, but I understand it is deprecated by Nvidia.
My question to Nev is do you plan to replace Cuvid with NVDec or similar, or will it just be removed?
huhn
12th June 2021, 10:00
CUVID and NVdec are the same and he talk about a really cool alternative with deint and such.
nvidia just renamed it.
Request: please support de-blocking feature for low quality encoded files.
Calvi
13th June 2021, 00:53
CUVID and NVdec are the same and he talk about a really cool alternative with deint and such.
nvidia just renamed it.
https://docs.nvidia.com/cuda/video-decoder/index.html
Claims CUVID is now deprecated and replaced with NVDec, but I don’t really care what’s it’s called. I’d just like to have an equivalent deinterlacing solution to CUVID (as dxva2 is NOT the same as CUVID when using Lav filters now)
huhn
13th June 2021, 02:46
they are the same there is absolutely zero chance they have coded 2 hardware decoder it's just buggy with DXVA2 you could try mpcVR with d3d11 VP support it may work better.
as said before nev had an idea where nvdec would work like d3d11 native and with deint support. it's done when it's done if he even works on it all.
Calvi
13th June 2021, 03:19
Relax Huhn,
I’m not making any demands, just would like to know what Nev might be planning for deinterlacing support (if anything).
Whether it’s due to buggy dxva2 or not, lav with CUVID does not deinterlace the same as lav with dxva2. I’ve tried everything and they both deinterlace, usually very similarly, but definitely NOT the same. CUVID always does better on the fringe cases.
I wish dvb would just switch to progressive so I never have to worry about interlacing again.
I have posted these before, but here are two clips (and screenshots) that show what happens with DXVA2 deinterlacing. Neither issue happens with CUVID. I know one is an interlaced overlay and the other may have its own issues but CUVID deals with all the interlaced content I encounter while DXVA2 only deals with some. MadVR or EVR renderer - makes no difference.
https://1drv.ms/u/s!AuEm8LURKbbGaa4Ff1evj4W50Oc?e=gRDMWT
VictorLS
13th June 2021, 17:18
I’m not making any demands, just would like to know what Nev might be planning for deinterlacing support (if anything).
Best regards - I'm SAT amateur too and can say nevcairiel don't care about us - I wrote people have to have choice about useful CUVID (and not all-frame decoding for H265 4K 4:2:2 feeds and 8K channels on weak computers) many times here (you can read find and read my posts) but all he done are 10bit CUVID decoding support but too late (I wanted it for WinXP but he stops support WinXP before - just cleaver Russian guy Aleksoid1978 from MPC-BE and MPC-VR project helped me that time) and switchable CUVID DXVA processing for "broken" with nVIDIA's DXVA streams.
I wish dvb would just switch to progressive so I never have to worry about interlacing again.
I hope FullHD will be 1920x1080p50(60) but they did it 1920x1080i50(60) (
It's a pity even modern 4K channels despite of progressive sometimes are 25p instead of 50p even on Euro2020(4x~92 MB, 4х29 seconds) https://transfiles.ru/pu0jw - to watch HLG with right colors on SDR monitor read my thread https://forum.doom9.org/showthread.php?t=176909
I have posted these before, but here are two clips (and screenshots) that show what happens with DXVA2 deinterlacing. Neither issue happens with CUVID. I know one is an interlaced overlay and the other may have its own issues but CUVID deals with all the interlaced content I encounter while DXVA2 only deals with some. MadVR or EVR renderer - makes no difference.
In Win7x64 there isn't any problem (I've watched in MPC-HC 1.9.13 in stop frame mode with Ctrl+RightArrow) with both CUVID and DXVA2 deinterlacing while playing Deinterlacing 7HD Powerball.ts and Deinterlacing 10HD - BBPan.ts on my nVIDIA GTX750v2 on GM206 with EVR(-CP), MPC-VR and madVR:
https://i.postimg.cc/nMjzjP3M/LAV-Auto.png (https://postimg.cc/nMjzjP3M)
I see the problem as on your screenshots only when I disable deinterlacing in LAV Video Decoder:
https://i.postimg.cc/CBdjfs2Y/LAV-Disabled.png (https://postimg.cc/CBdjfs2Y)
PS. If I've got some free time I'm going to install Win10x64 21H1 to try D3D11 on my old computer with Athlon II x3 460 CPU.
el Filou
13th June 2021, 19:15
In Win7x64 there isn't any problem with both CUVID and DXVA2 deinterlacing while playing Deinterlacing 7HD Powerball.ts and Deinterlacing 10HD - BBPan.ts on my nVIDIA GTX750v2 on GM206 with EVR(-CP), MPC-VR and madVRDo you have the "use inverse telecine" setting in Nvidia Control Panel enabled or not?
The problem with the powerball clip and DXVA is that when you disable that option, it deinterlaces the overlay with the balls correctly but does not do pulldown anymore, so progressive material broadcast in interlaced is lower quality.
If you enable the option, it then does pulldown for progressive but if there is interlaced overlay like here it decides the image is till progressive and does not deinterlace.
VictorLS
13th June 2021, 21:24
Do you have the "use inverse telecine" setting in Nvidia Control Panel enabled or not?
As SAT amateur I always disable (uncheck) "Use inverse telecine" setting in Nvidia Control Panel immediately after install driver and I forget to mention that in my previous post - thanks. With checked "Use inverse telecine" I see interlace with both CUVID and DXVA2 hardware acceleration.
Btw I'm going to experiment with Ryzen 3 3200g with Vega graphics deinterlacing of H265 SD and HD quasi-interlaced channels soon so can anyone show how to disable Inverse Telecine in Adrenalin's Control Panel (and btw in modern Intel's Control Panel)?
progressive material broadcast in interlaced is lower quality
I don't care about it (I don't watch movies and so on from interlaced channels - I'd say I don't watch movies almost at all) but will appreciate examples how namely looks that lower quality.
Calvi
14th June 2021, 06:20
Do you have the "use inverse telecine" setting in Nvidia Control Panel enabled or not?
The problem with the powerball clip and DXVA is that when you disable that option, it deinterlaces the overlay with the balls correctly but does not do pulldown anymore, so progressive material broadcast in interlaced is lower quality.
If you enable the option, it then does pulldown for progressive but if there is interlaced overlay like here it decides the image is till progressive and does not deinterlace.
Thanks el Filou.
You are right, I did have IVTC switched on. DXVA is much closer to Cuvid with it switched off. But still not the same, Cuvid is OK with IVTC on while DXVA is not.
I also tried the Cheese Slices from here (with both IVTC on and off):
https://www.avsforum.com/threads/hd-1080i-test-pattern-to-determine-vector-adaptive-deinterlacing-others-icl-ticker.1157287/
and the results are different for DXVA2 vs Cuvid with these as well (whether IVTC is on or off).
DXVA2 Copy Back vs Native seem identical, but Cuvid gives an entirely different result (Seems slightly worse actually, but definitely different).
I will say that with IVTC off and DXVA2 the Australian Broadcasts seem ok so I can probably live with this setup.
Would still like to know what causes the difference though as it would seem having IVTC and deinterlacing working correctly would cover the most formats out there?
VictorLS
14th June 2021, 08:46
You are right, I did have IVTC switched on. DXVA is much closer to Cuvid with it switched off. But still not the same, Cuvid is OK with IVTC on while DXVA is not...and the results are different for DXVA2 vs Cuvid with these as well (whether IVTC is on or off).
DXVA2 Copy Back vs Native seem identical, but Cuvid gives an entirely different result
Some CUVID vs DXVA2 difference screenshots, please.
(Seems slightly worse actually, but definitely different)
Seems that's why nevcairiel didn't want to do CUVID DXVA deinterlacing switchable for "broken streams" for a long time but I don't see difference.
Btw I used Cheese Slices since 2009 for tests - i.e. at the end of 2009 I choose Samsung 40B652 PVA TVset (despite one broken dark subpixel) instead of identical LG IPS namely due to much more quality of deinterlacing ;)
Calvi
14th June 2021, 12:59
Screen Caps saved to same folder as above.
Named Slices Cuvid.jpg and Slices DXVA-CB.jpg
Both with IVTC off, but IVTC makes no noticeable difference in these tests.
VictorLS
14th June 2021, 15:38
Calvi
Thanks - I don't see artifacts like on your Slices Cuvid.jpg in any mode.
el Filou
14th June 2021, 20:18
I don't care about it (I don't watch movies and so on from interlaced channels - I'd say I don't watch movies almost at all) but will appreciate examples how namely looks that lower quality.I didn't keep screenshots from when I tested that, but what happens is with 50i the deinterlacer will treat two fields from one same image (as happens in 2:2 film mode) as being from two different images and will try to analyse motion between them and also the next field to produce two output frames. As they are from the same image it won't find much motion, but very fine detail will appear to be shimmering.
With 30i it will completely mess up the 3:2 cadence and you'll see moiré and aliasing.
VictorLS
14th June 2021, 21:09
el Filou
Thanks - will try to find described you artifacts in a future on movies on interlaced channels trying switch on/off "Use inverse telecine" in nVIDIA Control Panel
I wish dvb would just switch to progressive so I never have to worry about interlacing again.
It seems interlacing will follow us (SAT amateurs) ;) for a long time in a future:
https://i.postimg.cc/N5WPCZ37/TRT-4-K-interlace.png (https://postimg.cc/N5WPCZ37)
from 20210614-205013_TRT 4K.mkv (28 MB) https://transfiles.ru/cum1l
It's a pity I didn't record from live translation of that match to see was interlace artifacts or not (I'm sure there wasn't artifacts).
SeeMoreDigital
14th June 2021, 21:18
...It seems interlacing will follow us (SAT amateurs) ;) for a long time in a future:
Studio content has too many overlays, so it doesn't provide an accurate example. The actual game play would be better... But it looks progressive to me!
ashlar42
16th June 2021, 21:36
I use Kodi DSPlayer as my main player... today I've finally managed to get a RTX3070, preparing for when my new 4K TV will be here.
As such I have tried playing back some 4K HDR files (tonemapped through madVR). Initially I got all strange colors, blocks, general crap... At first I did not understand, then I realized that I had tried, years ago, to decode through the Lentoid HEVC decoder, as an experiment. I removed that from my system aaaand... there is pretty much no way I can get LAV Video to be used to decode HEVC. I have unregistered Lentoid, I have selected LAV Video, nothing... video starts but there is sound and no video.
I tried with both MPC-HC and MPC-HC BE and even though I deselect the internal filters and place LAV Video as preferred, they both fall back to the internal filter (MPC-HC stating "Lav Video (internal low merit)"). It's as if LAV is not usable for HEVC (HEVC is selected in configuration).
I have upgraded to 75, downgraded to 74.1, reupgraded to 75, nothing changed. I restarted the machine too (Windows 10 x64).
Asmodian
16th June 2021, 23:54
I wonder if Lentoid HEVC set LAV's merit very low.
This is a free utility that makes it easy to see and change filter merits:
InstalledCodec (https://www.nirsoft.net/utils/installed_codec.html)
LAV Video and Audio should be 0x00800003, LAV Splitter should be 0x00800004 (values in hex). Higher merit is the first to be used.
ashlar42
17th June 2021, 10:37
I wonder if Lentoid HEVC set LAV's merit very low.
This is a free utility that makes it easy to see and change filter merits:
InstalledCodec (https://www.nirsoft.net/utils/installed_codec.html)
LAV Video and Audio should be 0x00800003, LAV Splitter should be 0x00800004 (values in hex). Higher merit is the first to be used.Very late last night (I write from Europe) I solved it by completely uninstalling LAV and then reinstalling (before I was upgrading and downgrading in place, not passing through uninstall).
I am sorry not to have tried what you suggested because I'm left with the curiosity to understand what happened.
LAV's merit being set very low could be an explanation but can you set the merit of a DS filter only for a specific codec? Because H264 material was working just fine. And, also, with Kodi DS player you can tell the program which filters to use, ignoring the merits system. And yet it wasn't working.
Mystery will probably remain but I have solved the problem.
el Filou
17th June 2021, 17:42
It seems interlacing will follow us for a long time in a future:Is that a 1080i feed downconverted from original 4K progressive? Or a 4K progressive feed with an insert from a badly deinterlaced 1080i feed?
I see this on Formula 1 too, on onboard cameras the white/coloured pattern on the kerbs changes too much between consecutive fields and it confuses the deinterlacer.
lvqcl
17th June 2021, 23:03
No new nightly builds available?
nevcairiel
17th June 2021, 23:13
There should be one tonight
nevcairiel
21st June 2021, 07:26
LAV Filters 0.75.1
LAV Splitter
- Changed: AV1 files with no extradata will now generate a format header with stream information for decoders to use
- Fixed: Improved stream selection when multiple "default" video tracks are present
LAV Video
- Changed: Updated dav1d for significant improvements in AV1 10-bit decoding performance
- Changed: AV1 hardware decoding will more reliably engage when provided with additional stream information from the demuxer
LAV Audio
- Fixed: Opus decoding had audible artifacts in some files in 0.75
Download: Installer (both x86/x64) (https://files.1f0.de/lavf/LAVFilters-0.75.1.exe) -- Zips: 32-bit (https://files.1f0.de/lavf/LAVFilters-0.75.1.zip) & 64-bit (https://files.1f0.de/lavf/LAVFilters-0.75.1-x64.zip)
Check 0.75 Release Notes (https://forum.doom9.org/showthread.php?p=1939462#post1939462) if you missed them!
AV1 software decoding of 10-bit content is now significantly faster with the new version of dav1d.
Other then that, just few small fixes and updates.
Take care, and have fun!
chros
21st June 2021, 07:35
Cheers!
filler56789
21st June 2021, 07:52
LAV Filters 0.75.1
Thanks! :thanks:
P.S.:
https://files.1f0.de/lavf/nightly/ hasn't been updated yet :)
nevcairiel
21st June 2021, 08:11
P.S.:
https://files.1f0.de/lavf/nightly/ hasn't been updated yet :)
Nightlies are updated automatically .. at night. Its 9am. :)
Weirdo
21st June 2021, 09:46
Thank you. Amazing work.
RealSnoopyDog
23rd June 2021, 11:36
There is a square bracket missing in the first line of the first post ;)
Thank you for the new release!
GMJCZP
24th June 2021, 22:37
I'm having a problem playing this .ape file, it sounds noisy, both with WMP and MPC-HC, when opening it in Adobe audition it sounds fine.
SampleAPE (http://www.filedropper.com/kalimba)
Edit: I am using BeHappy 0.3.0.19814 and Monkey's Audio Console Front End 3.99 as encoder. I am using LavFilters 0.75.
@nevcairiel:
Please check this.
v0lt
25th June 2021, 04:06
@GMJCZP
The problem is not with LAV Filters. The problem is with FFmpeg or your file.
GMJCZP
25th June 2021, 15:29
Confirmed, noisy with LAV Filters, plays OK with MPV.
FWIW: latest Monkey's Audio is version 6.29 :-|
Since this issue was confirmed, FFMpeg has nothing to do with it. The file plays correctly in a player that does not depend on Lav filters.
nevcairiel
25th June 2021, 16:37
@nevcairiel:
Please check this.
You mention problems with an .ape file and link to a MP3 file. There is nothing to look at.
GMJCZP
25th June 2021, 20:59
Sorry, upload corrected:
Here (http://www.filedropper.com/sampleapedef)
Deblocking videos by ffdshow doesn't work on latest version of MPC-HC, So please add deblocking to LAV if possible.
Thanks
ryrynz
29th June 2021, 10:51
Thanks
Nev isn't going to add any post-processing to LAV ever AFAIA, I don't see why ffdshow shouldn't work, it's just an external filter you add to the filter chain.
Maybe you have an issue with it's installation or something? Reinstall it and check your external filter list.
mclingo
4th July 2021, 00:36
Hi, getting an odd volume issue with lav filters, been noticing i'm having to max out my headphone volume for movies recently to the point where they are just not loud enough. I first thought it was just the mix as they sound ok through my speakers but when I play the same movie using VLC, windows media or film and TV player they are much louder and much more the volume i'm used to. I've tried reinstalling LAV filter, no joy, I dont have DRC turned either.
Any ideas anyone?
EDIT - tried it with bitstreaming on / off - no difference.
Asmodian
4th July 2021, 00:52
Hi, getting an odd volume issue with lav filters, been noticing i'm having to max out my headphone volume for movies recently to the point where they are just not loud enough.
What about Normalize Matrix?
https://hosting.photobucket.com/images/dd496/asmodian3/LAV_-_Normalize_Matrix.png?width=590&height=370&fit=bounds (https://app.photobucket.com/u/asmodian3/p/3d917179-2a91-4639-9d62-100433133ccc)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.