Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th October 2020, 13:39   #1  |  Link
Slogra
Registered User
 
Join Date: Oct 2001
Location: Region 2
Posts: 427
GPU noise filters for avisynth 64bit

Right now i'm using the 10 year old FFT3dGPU 64bit (FFT3DGPU_3-15-2010.rar from this page https://github.com/pinterf/FFT3dGPU).

KNLMeansCL just doesn't seem to work well on my AMD Radeon cards. It either does not work at all, uses way to much GPU power or even crashes my pc.


Do you know any other GPU noise filters, besides KNLMeansCL and FFT3dGPU?
Slogra is offline   Reply With Quote
Old 25th October 2020, 13:50   #2  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
There is DGDenoise, part of DGDecNV (requires small donation). May not work for you though because it requires an nVidia GPU.
videoh is offline   Reply With Quote
Old 25th October 2020, 15:13   #3  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
yes there are some problems in KNLMeansCL https://forum.doom9.org/showthread.p...37#post1925937

let's hope it will be fixed soon
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 25th October 2020, 15:51   #4  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Deathray and GPUBilateral are also gpu based denoise filter for Avisynth, but it's been ages since I tried to use them,... (so no clue if they actually still work)
-> not sure there's a 64bi version of those,..
__________________
Hybrid here in the forum, homepage

Last edited by Selur; 25th October 2020 at 15:54.
Selur is offline   Reply With Quote
Old 25th October 2020, 16:15   #5  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by Selur View Post
-> not sure there's a 64bi version of those,..
there are

https://github.com/JawedAshraf/Death...l/Deathray.dll

but no HBD, only yv12, if you use any other you will get bad output
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 25th October 2020, 16:35   #6  |  Link
Slogra
Registered User
 
Join Date: Oct 2001
Location: Region 2
Posts: 427
KNLMeansCL has never worked properly on AMD Radeon cards, so i don't think it will be fixed anytime soon (or ever).

I believe Deathray and GPUBilateral are indeed only 32bit. I'll have to try them. And they might be even older than FFT3dGPU.

I was hoping for something newer and better, but so far it looks like FFT3dGPU is my only option.


Edit: thanks real.finder, i'll try Deathray 64bits

Last edited by Slogra; 25th October 2020 at 16:43.
Slogra is offline   Reply With Quote
Old 26th October 2020, 13:48   #7  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,815
Knlmeanscl works fine on my rx570 4GB. Btw. Why do you use prefetch for filter which already saturate GPU at 100%?
Atak_Snajpera is offline   Reply With Quote
Old 26th October 2020, 14:49   #8  |  Link
Slogra
Registered User
 
Join Date: Oct 2001
Location: Region 2
Posts: 427
Who is using prefetch?

If i use the standard settings for Knlmeancl in ripbot264, it does not work. Does that use prefetch?
I had that problem with my rx480 4gb for years and then also with my vega 64. So i presume it's an amd radeon issue.


I have to say FFT3dGPU still works really well. Stable and fast. And the video image is quite good. I'd say slightly better than Knlmeanscl.

I encode 1080p at around 29fps using x265 crf20 with 100% cpu and 20% gpu for FFT3dGPU.
Slogra is offline   Reply With Quote
Old 26th October 2020, 15:42   #9  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,815
Quote:
Originally Posted by Slogra View Post
Who is using prefetch?

If i use the standard settings for Knlmeancl in ripbot264, it does not work. Does that use prefetch?
I had that problem with my rx480 4gb for years and then also with my vega 64. So i presume it's an amd radeon issue.


I have to say FFT3dGPU still works really well. Stable and fast. And the video image is quite good. I'd say slightly better than Knlmeanscl.

I encode 1080p at around 29fps using x265 crf20 with 100% cpu and 20% gpu for FFT3dGPU.
Problem?

Last edited by Atak_Snajpera; 26th October 2020 at 15:50.
Atak_Snajpera is offline   Reply With Quote
Old 26th October 2020, 15:48   #10  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Knlmeancl has problems even without prefetch https://forum.doom9.org/showthread.p...95#post1926495, but prefetch make it worst
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 30th October 2020, 18:25   #11  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Slogra, can you test this? https://drive.google.com/uc?export=d...b7v3qAhUkMlROw it has fix by pinterf and seems work fine with mt (prefetch), see if it crash for you or not
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 1st November 2020, 15:00   #12  |  Link
Slogra
Registered User
 
Join Date: Oct 2001
Location: Region 2
Posts: 427
I'm not sure if we are having the exact same problems.

I get a very dark image when i use the default settings in Ripbot264 v1.26.0 and original KNLMeansCL.dll. I load the video with batch converter, then edit the job and selected KNLMeansCL with mono noise 2 setting.

When i replace the original KNLMeansCL.dll with the new one i get the same dark image.

I can fix this issue by changing the size of the video before applying the filter. Strange issue and strange solution .


Right now, i do not have any other issues with the KNLMeansCL.
Looks like some KNLMeansCL changes were done in the last few versions of Ripbot264 though, which might have fixed some of my issues. It could also be resolved by a driver update though.

Other issues i had which seems to be resolved are:
- very high GPU usage
- Crash of my pc (probably due the above?). The deadlock you are experiencing?
Slogra is offline   Reply With Quote
Old 1st November 2020, 15:54   #13  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
so you still get a problem with this update or not? or it's already fixed? high GPU usage is normal I think since it's not easy algorithm (you can see how slow it is in TNLMeans which using only cpu)

and after another test, pinterf test build seems also fix this too https://forum.doom9.org/showthread.p...95#post1926495

Quote:
I can fix this issue by changing the size of the video before applying the filter. Strange issue and strange solution .
can you post a simple script using ColorBars that show the problem?

edit: I find https://forum.doom9.org/showthread.p...rk#post1873988 and https://github.com/Khanattila/KNLMeansCL/issues/26 and https://forum.doom9.org/showthread.p...rk#post1922856
__________________
See My Avisynth Stuff

Last edited by real.finder; 18th December 2020 at 18:38.
real.finder is offline   Reply With Quote
Old 2nd November 2020, 20:32   #14  |  Link
Slogra
Registered User
 
Join Date: Oct 2001
Location: Region 2
Posts: 427
Yes, i still have the issue with a dark image even with the newest version "KNLMeansCL v1.1.1c - 20201028-pfmod".

It looks the same as the top image on: https://imgur.com/a/N1y9OwH

Edit: attached Colorbars screenshot

Edit2:
The Ripbot264 script looks like this:

#MT
Import("E:\Utils\DVDrip\ripbot264\Tools\AviSynth plugins\Scripts\MTmodes.avs")
#PREFETCH_LIMIT=0

#VideoSource
LoadPlugin("E:\Utils\DVDrip\ripbot264\Tools\AviSynth plugins\lsmash\LSMASHSource.dll")
video=LWLibavVideoSource("F:\DVDrip\HD Color Bars and Test Tone - NTSC_1080p.mp4",cachefile="E:\Temp\RipBot264temp\job26\HD Color Bars and Test Tone - NTSC_1080p.mp4.lwi")

#Resize
LoadPlugin("E:\Utils\DVDrip\ripbot264\Tools\AviSynth plugins\Plugins_JPSDR\Plugins_JPSDR.dll")
video=Spline36ResizeMT(video,1920,1080)

#Prefetch
video=Prefetch(video,6)

#After_Prefetch_Denoise
LoadPlugin("E:\Utils\DVDrip\ripbot264\Tools\AviSynth plugins\KNLMeansCL\KNLMeansCL.dll")
video=KNLMeansCL(video,d=1, a=2, s=4, h=2, device_type="GPU", device_id=0)

#AudioSource
Import("E:\Temp\RipBot264temp\job26\job26_a1.avs")
Attached Images
 

Last edited by Slogra; 2nd November 2020 at 20:43.
Slogra is offline   Reply With Quote
Old 2nd November 2020, 21:15   #15  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
I mean as

Code:
colorbars()
converttoyv12
KNLMeansCL
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 17:41.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.