View Full Version : LAV Filters - DirectShow Media Splitter and Decoders
nevcairiel
8th November 2016, 01:09
My GeForce 8600M GT DDR2 can't handle 1080i60/p60 while Core2 Duo T9300 can decode/de-interlace 1080i60 well.
That doesn't answer why you wouldn't just decode everything in software then, your CPU is clearly fast enough.
I'm not a fan of adding more options for rare/exotic use-cases.
VictorLS
8th November 2016, 12:46
Victor,
According to these links
So, I'm not sure about anything right now.
First, you are wrong quote my post - I rise two themes here:
1. h265 10bit decoding via CUVID in Windows (not WinXP only) - Linux as a working example only;
2. artifacts while playing some files or SAT programs via DXVA2 in Win7-. You are quoted this theme, but asked me about first: As svencdack said only Maxwell 2-nd generation (as my named by bad marketer GTX750v2, I think GTX910 - GTX940 would be much better if we speak about h265 decoding) and Pascal-based videocards has full (not hybrid) hardware accelerator inside GPU.
http://www.palit.com/palit/vgapro.php?id=2254&lang=en
My GeForceŽ GTX 750 StormX OC (1024MB GDDR5) NE5X750THD01-2065F based on Maxwell 2-nd generation GM206-150 but smaller NE5X750S1301-1073F on same page based on GK107 is bad videocard for h265 decoding. NE5X750THD01-2065F has dissapeared in many Russian stores (I always buy new - not used - things) already.
And I am sure GM206 and GP1.. can h265 10bit hardware decoding via CUVID not only in Linux but in Windows too, but nevcairiel do not want even try (
huhn
8th November 2016, 13:09
youtube released yesterday VP9 profile 2 videos with HDR.
at the moment the HDR meta can't be used with madVR.
https://www.youtube.com/playlist?list=PLyqf6gJt7KuGArjMwHmgprtDeY8WDa8YX
youtubeDL -f 337 will get you the 10 bit hdr version.
kral2008
8th November 2016, 15:44
First, you are wrong quote my post - I rise two themes here:
1. h265 10bit decoding via CUVID in Windows (not WinXP only) - Linux as a working example only;
2. artifacts while playing some files or SAT programs via DXVA2 in Win7-. You are quoted this theme, but asked me about first: As svencdack said only Maxwell 2-nd generation (as my named by bad marketer GTX750v2, I think GTX910 - GTX940 would be much better if we speak about h265 decoding) and Pascal-based videocards has full (not hybrid) hardware accelerator inside GPU.
http://www.palit.com/palit/vgapro.php?id=2254&lang=en
My GeForceŽ GTX 750 StormX OC (1024MB GDDR5) NE5X750THD01-2065F based on Maxwell 2-nd generation GM206-150 but smaller NE5X750S1301-1073F on same page based on GK107 is bad videocard for h265 decoding. NE5X750THD01-2065F has dissapeared in many Russian stores (I always buy new - not used - things) already.
And I am sure GM206 and GP1.. can h265 10bit hardware decoding via CUVID not only in Linux but in Windows too, but nevcairiel do not want even try (
Quoting wrong post or anything else is not important for me, I've just tried to tell you what I understood.
About our discussion:
You must try CUVID by yourself;
Installing the Nvidia driver is easy on most of Linux dists and you can do that, then compile the FFmpeg connecting it to CUVID as they explained in the given links. And finally, you can play your files by mpv (https://mpv.io)player using CUVID.
If the outcome is proper and without any errors and lags, then I'm an adherent of you and we ask LAV to implement it for people like us. Besides, I'm ready to help him, in this case, I'll do what I could do for him.
nevcairiel
8th November 2016, 16:11
If the outcome is proper and without any errors
The outcome will not be "proper and without any errors" because CUVID does not support 10-bit output at this time, it can only do 8-bit. I explained this numereous times before. It may decode 10-bit, but then it only outputs 8, and data is lost.
I do not plan to implement any decoding mode where I know that it will deliver anything but the original unmodified image (and I also would not accept a patch or pull request to that effect, because it goes against my design philosophy)
And like I also repeated numereous times before, there is no advantage to using CUVID. Any hardware that can handle HEVC 10-bit in CUVID can also handle it in DXVA2 - so use that instead!
Please just drop this topic, its not going to get you any further. CUVID is hanging on by a thread as it is, I'm more likely to drop it entirely then to spend more time arguing about it.
huhn
8th November 2016, 16:34
aside from VP9 HDR primaries(if they are even present) there is another issue i have with primaries and color matrix with DVD playback the primaries and matrix isn't delivered to madVR. the DVD Navigator is used by default for this and is not able to deliver this information is this possible with the lav decoder?
nevcairiel
8th November 2016, 17:42
aside from VP9 HDR primaries(if they are even present) there is another issue i have with primaries and color matrix with DVD playback the primaries and matrix isn't delivered to madVR. the DVD Navigator is used by default for this and is not able to deliver this information is this possible with the lav decoder?
If the bitstream doesn't contain the data, then LAV cannot find it.
But DVDs are likely always the same old boring matrix anyway, aren't they? Why does madVR guess the wrong one?
huhn
8th November 2016, 18:16
well madVR usually guesses the primarie smpte C but most DVDs i have seen are smpte 170m.
but if the disc can be created without flags then this is not a lavfilter problem.
i'm decrypting a different disc right now where the mkv remux have flags. damn these region codes...
edit: works fine so with that disc so everything is fine on this side.
VictorLS
8th November 2016, 21:23
you must try CUVID by yourself
I do not owe anything to anyone ;)
but I will try CUVID in Ubuntu when will be time. I'll send you PM if I will need help. Thanks for your support.
If the outcome is proper and without any errors and lags
I think Ubuntu will be my second OS in this case - not Win7 )
Repeat I have to boot Win7 for h265 10bit hardware decoding only.
Ask LAV to implement it for people like us. Besides, I'm ready to help him, in this case, I'll do what I could do for him.
This is against nevcairiel's philosophy (
davidsama
9th November 2016, 00:46
Why has not VictorLS been banned yet? He is nothing but a bully and a troll. Always demanding things that he has no business demanding. Also remember since you pay or paid nothing for lav filters you have no right to ask or get any anything from nevcariel.
CruNcher
9th November 2016, 04:09
No he's not he got some strong points but it's up to nevcairiel decision how he want's to buildup lav filters no one else and he made his point clear if someone doesn't like it fork it and buildup your own.
If he says he doesn't like such workarounds for something which in his idea makes no sense if you display 10 bit at 8 bit needing to deband again just to make it possible for a non complete 10 bit chain (including) output to display it, then that is his decision and you have to accept it.
This decision lefts out some users of course (like VictorLS) but the idea behind 10 bit is to display it in a complete Native 10 bit chain end to end and not 8 bit even if that workaround is possible via CUVID.
And costs for that have gone down a lot as 10 bit devices become more widespread now.
Vista (Longhorn) was Designed with 10 bit in mind on the GFX side XP (Whistler) not in 1 second.
On XP overall you will be limited to 8 bit and most obviously you wont be able to play any premium content.
and on Vista and Up it works but you still need workarounds on the driver side especially for HDR.
You get even 12 bit playback for roughly 80$ nowadays
VictorLS
9th November 2016, 07:48
Also remember since you pay or paid nothing for lav filters you have no right to ask or get any anything from nevcariel.
Just read last two strings of my post http://forum.doom9.org/showthread.php?p=1784923#post1784923 and take it easy.
Besides I even agree some pay for LAV CUVID Decoder with h265 10bit decoding because I will not buy new OS from Microsoft ;)
CruNcher
Thanks for explaination position of nevcairiel more clearly for others. I wrote here http://forum.doom9.org/showthread.php?p=1784804#post1784804 "nevcairiel is perfectionist - maximum quality despite of artifacts and so on..." and "I think nevcairiel not implement h265 10bit support in CUVID because of noone bit could not be lost" and I was right.
You get even 12 bit playback for roughly 80$ nowadays
Are you about some cheap GTX1050? It is quite new for me but while SAT channels are maximum h265 10bit this is not worry me much.
GCRaistlin
9th November 2016, 11:51
Is DXVA2 hardware decoding supported on Windows XP? I can't get it enabled playing the BDRemux:
h264 high L4.1, yuv420p, 1920x1080
LAV Video settings: http://i63.tinypic.com/29qbqbo.jpg
LAV 0.68.1.35, Radeon driver v14.4, HD7850. Driver is reinstalled after DDU clean up. Tried on a clean Windows XP installation, too, with no luck.
sneaker_ger
9th November 2016, 12:57
Windows XP doesn't support DXVA2.(*)
(*) Some people claimed success after installing .NET but it may be driver depended and is unlikely to work with LAV Video Decoder. I recommend not to waste time on it.
huhn
9th November 2016, 13:00
DXVA2 decoding isn't supported on XP. but there were still some case it worked with a video renderer that supports DXVA and some very old driver and other stuff (dotnet 3.5).
it was working for me for a long time a long time ago with pretty old hardware.
VictorLS
9th November 2016, 14:20
Is DXVA2 hardware decoding supported on Windows XP?
As other guys said - not supported. Long time ago I have extracted EVR from .NET3.5 (I don't like .NET at all too) and it worked not bad (I prefer VMR7w) in WinXP but why don't you use any DXVA1 decoder for h264 high L4.1, yuv420p, 1920x1080? I.e. Arcsoft or Cyberlink? Or free standalone_filters-mpc-be? They play FullHD h264 4:2:0 even 60Hz (and even with REF 16 - I tried with nVIDIA GT220 videocard) perfectly with hardware acceleration in WinXP.
captaiŋadamo
9th November 2016, 16:30
This is against nevcairiel's philosophy (
And yet despite being told 'no' over and over again you still bring it up. Just drop it.
VictorLS
10th November 2016, 09:07
captaiŋadamo
As minimum while in LAV Video Decoder there isn't option to disable HQ DXVA Processing when NVIDIA CUVID is active I will tell to all people who see artifacts there is good free LAV CUVID Decoder (with choice to uncheck HQ DXVA Processing) instead (or commercial CoreAVC) and only ban can stop me because supported decoder with supported OSes must first of all (in my philosophy) just work (when it is possible at all but with CUVID hardware acceleration of h264 4:2:0 without artifacts on nVIDIA's videoadapters in Win7-8 is possible and I really don't understand why nevcairiel give not same choice in LAV Video Decoder).
PS. Problem with artifacts quiet global: even in WinXP with DXVA1 I see same artifacts with many DXVA decoders - only CUVID helps. Thanks to nevcairiel.
filler56789
10th November 2016, 11:15
I really don't understand why nevcairiel give not same choice in LAV Video Decoder).
Oh, but you actually understand. You just do not accept nev's decision, and you SHOULD.
only ban can stop me
Unfortunately, I am not a moderator.
VictorLS
10th November 2016, 15:02
You just do not accept nev's decision
Show me link where nevcairiel say no about DXVA processing which cause artifacts even when CUVID hardware acceleration is selected in supported Win7-8.
I am not ask automatic switch between CUVID and DXVA2 already - just possibility to turn off HQ DXVA processing in LAV Video Decoder's interface (as in LAV CUVID Decoder done). Or philosophy of nevcairiel has changed in last few years?
you SHOULD
Repeat, http://forum.doom9.org/showthread.php?p=1785378#post1785378 : I do not owe anything to anyone.
Unfortunately, I am not a moderator.
Fortunately, you are not a moderator as minimum for all people with old weak computers with nVIDIA videocards (usually SAT-amateurs with DVB cards as me) who receive channels with artifacts and use LAV Video Decoder. While right I have one more hope unreal assumption: nevcairiel decided (or somebody paid him) to real support Win10 (which not support CUVID at all) only so drop real support of Win7-8. So he has written on this page: "I'm more likely to drop it entirely". Repeat, hope for all those people I'm wrong in my assumption.
captaiŋadamo
10th November 2016, 17:15
I really don't understand why nevcairiel give not same choice in LAV Video Decoder).
Because he doesn't want to implement hacky workarounds. If you want the feature, fork the code and implement it yourself or pay someone to do so. Otherwise, again, all you're doing is thread shitting when you've repeatedly been told no.
madshi
10th November 2016, 17:18
Guys, just let it rest. The best way to stop these fruitless discussions is to not fuel them with further posts.
VictorLS
10th November 2016, 20:16
madshi
You are right. All I ask now - only one working check (as in LAV CUVID Decoder to maintain continuity: Use HQ DXVA Processing or other as nevcairiel come up) imho there is space over LAV Video Decoder 0.xy.z in its settings and this is not "hacky workarounds". If not so, for example, Enable Adaptive HW Deinterlacing is "hacky workarounds" too but it is in LAV Video Decoder's settings.
clsid
10th November 2016, 22:20
I have said this before, but you like to ignore people. If you run the player in XP compatibility mode (on Windows 7), then HQ processing should get disabled automatically because LAV is tricked into thinking you are using XP. It should have no other negative effect.
captaiŋadamo
10th November 2016, 22:31
madshi
You are right. All I ask now - only one working check (as in LAV CUVID Decoder to maintain continuity: Use HQ DXVA Processing or other as nevcairiel come up) imho there is space over LAV Video Decoder 0.xy.z in its settings and this is not "hacky workarounds". If not so, for example, Enable Adaptive HW Deinterlacing is "hacky workarounds" too but it is in LAV Video Decoder's settings.
And he said 'no'. Does the word 'no' somehow have a different meaning to you than to other people?
VictorLS
11th November 2016, 00:32
Why do not you hear smart madshi http://forum.doom9.org/showthread.php?p=1785510#post1785510 ?
I have said this before, but you like to ignore people.
I almost never ignore smart enough people and of course I answered you here http://forum.doom9.org/showthread.php?p=1784954#post1784954
And he said 'no'
Repeat, Show me link where nevcairiel say no ...
Full text read here http://forum.doom9.org/showthread.php?p=1785493#post1785493
lvqcl
11th November 2016, 17:34
Why do not you hear smart madshi http://forum.doom9.org/showthread.php?p=1785510#post1785510 ?
Why don't you listen to him yourself ?
Repeat, Show me link where nevcairiel say no ...
Here:
Please just drop this topic, its not going to get you any further. CUVID is hanging on by a thread as it is, I'm more likely to drop it entirely then to spend more time arguing about it.
VictorLS
11th November 2016, 19:05
lvqcl
You are not hear madshi first, more you don't understand what talking about. Read http://forum.doom9.org/showthread.php?p=1785311#post1785311 : I almost forget about 1 (you quoted) and talking about 2 - DXVA Processing causing artifacts ...
steakhutzeee
11th November 2016, 19:09
Hi :)
I'm using MPC-BE and Madvr, and trying to add Lav Filters.
I've three questions for you:
1- I deselected all internal filters (decoder audio and video ones, i've to deselect all in first tab "Source Filters" too?)
2- Atm, i've enabled this external filters: xysubfilter, lav audio, lav video, lav splitter, lav splitter source. I've to use the last two togheter? What's the difference between them?
3- I edited only lav video setting, selected DXVA2 (copy-back). It's ok for my gpu? it's in the signature. Don't know, it says 'OK' next to it, so yes maybe?
I've to edit other filters too or they're ok with their default settings?
Thank for the answers, i'm trying to learn :)
huhn
11th November 2016, 19:43
you should select the subtitle filter of your choice under mpc-be-> options -> subtitles.
1. there is no need to disable anything if you set the external filter as preferred.
3. should be fine.
steakhutzeee
11th November 2016, 20:08
Thanks :)
So i've to delete xysubfilter from external filters? I've it setted in subtitle options yet.
1. yes, i set them as preferred. I have to turn back selected internal filters or i can leave them deselected? asking just to be sure :P
huhn
11th November 2016, 20:19
So i've to delete xysubfilter from external filters? I've it setted in subtitle options yet.
you can you don't have to. i personally would remove the external filter so it is easier to change the subtitle filter if needed.
1. yes, i set them as preferred. I have to turn back selected internal filters or i can leave them deselected? asking just to be sure :P
doesn't matter i recommend to change as least options as possible.
steakhutzeee
11th November 2016, 20:44
Ok, thanks.
Removed it from ex. filters. So i'll leave internal disabled.
What about difference between lav splitter and lav splitter source? But it automatically download subs too?
strumf666
12th November 2016, 00:17
What is the difference between splitter/source?
Magik Mark
12th November 2016, 09:49
Hi nevcairiel!
I just need to be clarified if lav supports hardware acceleration on a video that is is 4:2:2 10bit x265?
Experimented on one today. It seems the "GPU" icon doesn't show in MPC-BE which is an indicator that GPU is being utilized. Lav icons are no where to be found as well in the task bar. Is it a bug?
nevcairiel
12th November 2016, 09:50
4:2:2 is generally not hardware accelerated. Only 4:2:0.
Magik Mark
12th November 2016, 11:53
4:2:2 is generally not hardware accelerated. Only 4:2:0.
May I ask why? Is this a lav limitation or GPU?
nevcairiel
12th November 2016, 11:57
May I ask why? Is this a lav limitation or GPU?
Its a hardware limitation.
uneedme
12th November 2016, 16:19
pretty strange......
I have got a second-hand display card
when i use this one to play movies it is causing tearing of the screen......
when i chose filters other than lavfilter everything went well......
it never happened on my old card......
My card is amd hd 6700 series (asus 6750)
drivers are all the latest......
http://i1234.photobucket.com/albums/ff401/moviepreview/The.Eternal.Zero.2013.Chi_Jap.BluRay.1080p.x265.mkv_20161112_225343.292_zpsj0tyz2vo.jpg
http://i1234.photobucket.com/albums/ff401/moviepreview/The.Eternal.Zero.2013.Chi_Jap.BluRay.1080p.x265.mkv_20161112_225408.356_zpsbgyyzame.jpg
http://i1234.photobucket.com/albums/ff401/moviepreview/The.Eternal.Zero.2013.Chi_Jap.BluRay.1080p.x265.mkv_20161112_225501.936_zpslgfdwl2n.jpg
http://i1234.photobucket.com/albums/ff401/moviepreview/The.Eternal.Zero.2013.Chi_Jap.BluRay.1080p.x265.mkv_20161112_225650.542_zpsjtnpfvxf.jpg
only when use "lavfilter" filter could have this issue so i could be sure it is lavfilter's problems.......
wish it could be fixed in the later version......
Thx for all your greatwork
LigH
12th November 2016, 16:33
I can't see your images inline, because PhotoBucket wraps them in an ad-bloated website... so here as links:
http://i1234.photobucket.com/albums/ff401/moviepreview/The.Eternal.Zero.2013.Chi_Jap.BluRay.1080p.x265.mkv_20161112_225343.292_zpsj0tyz2vo.jpg
http://i1234.photobucket.com/albums/ff401/moviepreview/The.Eternal.Zero.2013.Chi_Jap.BluRay.1080p.x265.mkv_20161112_225408.356_zpsbgyyzame.jpg
http://i1234.photobucket.com/albums/ff401/moviepreview/The.Eternal.Zero.2013.Chi_Jap.BluRay.1080p.x265.mkv_20161112_225501.936_zpslgfdwl2n.jpg
http://i1234.photobucket.com/albums/ff401/moviepreview/The.Eternal.Zero.2013.Chi_Jap.BluRay.1080p.x265.mkv_20161112_225650.542_zpsjtnpfvxf.jpg
^ These artefacts are not what people would usually mean by the term "tearing" (which is instead an asynchronity between frame rate and screen refresh rate, and you won't be able to capture that in a screenshot).
In your case, it seems to be either a decoding error or a rendering error. Regarding the amount of issues and their pattern in the 4th image, probably the latter.
uneedme
12th November 2016, 19:48
I can't see your images inline, because PhotoBucket wraps them in an ad-bloated website... so here as links:
^ These artefacts are not what people would usually mean by the term "tearing" (which is instead an asynchronity between frame rate and screen refresh rate, and you won't be able to capture that in a screenshot).
In your case, it seems to be either a decoding error or a rendering error. Regarding the amount of issues and their pattern in the 4th image, probably the latter.
I dont know how to describe it...... so i say tearing......
did some test on it after the post...
potplayer:
lavfilter decoder:
vmr9 -rare occasions
EVR(CP) -always
d3d9 -always
madshi randerer -never
opengl randerer -never
ffmpeg decoder:
vmr9 -rare occasions and less effect
EVR(CP) -rare occasions and less effect
d3d9 -rare occasions and less effect
madshi randerer -never
opengl randerer -never
steakhutzeee
13th November 2016, 18:11
I've to enable and prefer "File Source (Async)" using lav splitter?
In this page i read that lav splitter source is an old version of lav splitter, so which i've to use?
https://bypureland.wordpress.com/2011/12/23/lav-splitter-vs-lav-splitter-source-%E8%BD%89%E8%BC%89/
huhn
13th November 2016, 18:37
don't think to much about just add all 4 and you are fine the rest is automatic.
steakhutzeee
13th November 2016, 20:29
All right, thanks :)
clsid
13th November 2016, 22:21
LAV Splitter Source = LAV Splitter combined with its own file source filter
Adding both is fine.
Nintendo Maniac 64
14th November 2016, 02:15
No, thats not possible. Which hardware can handle 720p but not 1080p? and if you decode 1080p in software, why not lower resolutions as well?
That doesn't answer why you wouldn't just decode everything in software then, your CPU is clearly fast enough.
I'm not a fan of adding more options for rare/exotic use-cases.
Sorry for the delayed response; I had email notification set to "weekly".
My reason is simple - as I am on a laptop, I don't want to unnecessarily produce more heat/spin up the fans/consume more power than necessary when on battery.
In other words, I don't want to completely disable DXVA2 and deal with the according reduction in battery life (especially with 60fps 720p videos) just because I want to be able to watch 1080p videos when plugged in to the wall.
VictorLS
14th November 2016, 10:59
In other words, I don't want to completely disable DXVA2 and deal with the according reduction in battery life (especially with 60fps 720p videos) just because I want to be able to watch 1080p videos when plugged in to the wall.
Do your laptop not support 1080p hardware acceleration? Can you provide hardware (model of laptop, CPU, GPU if present) and software (OS and player with renderer you use or tried) configuration? Although in any case you have to manually switch from None to DXVA2 in settings of LAV Video Decoder depending on resolution of played video and on battery/on electrical line.
PS. You are lucky - you have this possibility - many people of the world who see artifacts with DXVA can not switch it of in LAV Video Decoder and they don't know about LAV CUVID Decoder. They have to switch off hardware acceleration because they have no choice (but sometimes with weak CPU it is impossible to decode smooth 1080p without hardware acceleration). I hope for them that nevcairiel will add possibility to switch off DXVA Processing in LAV Video Decoder.
TheShadowRunner
15th November 2016, 13:01
Hi nev, I have a strange subtitle bug when using LAV splitter 0.68.1.
It's certainly related to the fact my htpc is still running XP 32bit, but I hope a fix is possible ^^;
In effect, when using LAV Splitter Source, some subtitles signs are missing:
http://videoff7.free.fr/samplecbbp_LAV.png
http://videoff7.free.fr/samplecbbp_haali.png
sample: http://videoff7.free.fr/samplecbbp.mkv
when using Haali, it displays just fine.
Absolutely everything else in the decoding chain is unchanged, I only alter the splitter source.
Can you make sense of it? I looked/tried everything and couldn't ^^;
Thanks.
LigH
15th November 2016, 14:23
Interesting issue. Apart from the exclamation mark and double quotes being handled like "non-printable characters" and being substituted by empty placeholders (just a kind of space char, with a wider width than the excl.), all other alphanumeric characters appear to be quite identically rendered.
sneaker_ger
15th November 2016, 14:29
How does it play when you remove the attached fonts?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.