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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

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

Reply
 
Thread Tools Search this Thread
Old 7th December 2024, 17:50   #1581  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,758
Quote:
Originally Posted by pinterf View Post
Hint: with
Code:
info=true
you can display the actual driver config.
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 7th December 2024, 22:32   #1582  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,558
Same for me, except that I have 750. And the driver is a bit older, 32.0.101.6078.
Anyway, I narrowed down the problem, which is in one or more of the opencl program kernel functions which do the actual horizontal and vertical processing. Seems that next week(s) I'm going to entertain myself with the millions of trial and error modifications.
You have to wait a bit further, I will only appear when I'm ready.
pinterf is offline   Reply With Quote
Old 27th January 2025, 04:53   #1583  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,758
Quote:
Originally Posted by pinterf View Post
Same for me, except that I have 750. And the driver is a bit older, 32.0.101.6078.
Anyway, I narrowed down the problem, which is in one or more of the opencl program kernel functions which do the actual horizontal and vertical processing. Seems that next week(s) I'm going to entertain myself with the millions of trial and error modifications.
You have to wait a bit further, I will only appear when I'm ready.
no news since months, forgotten?
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 27th January 2025, 06:37   #1584  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,558
Quote:
Originally Posted by real.finder View Post
no news since months, forgotten?
It's just not finalized. Most possibly a driver error, on the 4th crazy day and after the fifth possible workaround, I got it. I have almost finished and assembled a meaningful bug report (the smallest possible code which still presents the bug), then the holidays came then a huge pile of Avisynth and other plugin related stuffs. And I had to arrange and nicely commit the modifications I've done to KNL since 2020. So please wait a little bit more I hope not that much.
pinterf is offline   Reply With Quote
Old 27th January 2025, 11:52   #1585  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 3,129
I find BM3D to be superior to KNLMeansCL almost in every aspect.

Is there any niche application where it could shine?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 7th March 2025, 10:00   #1586  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,558
Bug reported to Intel. At least I consider it a bug:

https://community.intel.com/t5/GPU-C.../1673206#M1764
EDIT: Intel (or Intel's bot) almost instantly categorized my bug report as spam, causing it to disappear from the flow of posts. I mentioned this to the moderator... We'll see what happens. It's not easy to communicate with them.

There may be a possible workaround: manually specifying parameters ocl_x and ocl_y to 16.
Report back if it works.

Last edited by pinterf; 7th March 2025 at 13:17. Reason: They put my report to spam.
pinterf is offline   Reply With Quote
Old 7th March 2025, 15:02   #1587  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 3,129
Quote:
Originally Posted by pinterf View Post
Bug reported to Intel. At least I consider it a bug
The link you posted brings to:

The message you are trying to access is not available.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 7th March 2025, 19:55   #1588  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,758
Quote:
Originally Posted by pinterf View Post
Bug reported to Intel. At least I consider it a bug:

https://community.intel.com/t5/GPU-C.../1673206#M1764
EDIT: Intel (or Intel's bot) almost instantly categorized my bug report as spam, causing it to disappear from the flow of posts. I mentioned this to the moderator... We'll see what happens. It's not easy to communicate with them.

There may be a possible workaround: manually specifying parameters ocl_x and ocl_y to 16.
Report back if it works.
KNLMeansCL(info=true, ocl_x=16, ocl_y = 16, ocl_r=16)
seems work, dont know if it act like KNLMeansCL(info=true) with other non bugged gpu drivers
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 7th March 2025, 21:10   #1589  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,558
Quote:
Originally Posted by real.finder View Post
KNLMeansCL(info=true, ocl_x=16, ocl_y = 16, ocl_r=16)
seems work, dont know if it act like KNLMeansCL(info=true) with other non bugged gpu drivers
Probably, the 32x8 configuration was chosen for performance reasons on Intel GPUs (I'm not sure if this was based on tests or manufacturer recommendations). The 16x16 configuration should work as well. Anyway, a lot of time has passed since these values were established in the code, and the optimal setting may have changed since then.
pinterf is offline   Reply With Quote
Old 16th April 2025, 23:26   #1590  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,134
Has anyone compiled a version of this that doesn't rely on external DLL bullshit? Visual C++ 2013 isn't installing on one of my computers for some stupid bullshit reason or another and I think that's screwing up a bunch of my filters.

UPDATE: I was able to find slightly older versions (12.0.30501) of Visual C++ 2013, and they installed correctly, but KNLmeansCL and two other filters are still whining about a missing DLL file.

Dynamic linking is one of the worst ideas in computing history.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.

Last edited by Katie Boundary; 16th April 2025 at 23:42.
Katie Boundary is offline   Reply With Quote
Old 17th April 2025, 05:31   #1591  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 986
I have a statically linked library using gcc/mingw.
https://github.com/FFmpeg/FFmpeg/com...220c4595f6a33c
https://github.com/AviSynth/AviSynth...900b0997749207
https://github.com/HomeOfAviSynthPlu...7c9c971cd626d9
https://github.com/Khanattila/KNLMea...ba0d1e76ed7850
https://github.com/KhronosGroup/Open...ebfa4d7568c0de
https://github.com/KhronosGroup/Open...7391b3e23efa81

LibavSource2("input.avi",fpsnum=30000,fpsden=1001)
KNLMeansCL(device_type="gpu",device_id=0,info=true)

https://www.sendspace.com/file/k2xj7v

Edit:
I will only add that all add-ons should be for ffms2 and not ffmpeg. If we want to use ffmpeg, the library should be modified, e.g. for l-smash. There aren't modifications for the latest avisynth.c 3.7.4.
https://github.com/HomeOfAviSynthPlu...?author=qyot27

Last edited by Jamaika; 17th April 2025 at 07:50.
Jamaika is offline   Reply With Quote
Old 17th April 2025, 06:36   #1592  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,134
Okay... which of those 20 or 30 links is it?

EDIT: after a little bit of digging, it turns out that version 0.6.11 was compiled with Visual C++ 2013 instead of 2015, and therefore does not require UCRT. It was kept around for compatibility with older versions of OpenCL, but XP compatibility was an accidental side effect. I can use this for now.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.

Last edited by Katie Boundary; 17th April 2025 at 06:43.
Katie Boundary is offline   Reply With Quote
Old 20th June 2025, 13:51   #1593  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 441
Quote:
Originally Posted by pinterf View Post
Bug reported to Intel. At least I consider it a bug:

https://community.intel.com/t5/GPU-C.../1673206#M1764
EDIT: Intel (or Intel's bot) almost instantly categorized my bug report as spam, causing it to disappear from the flow of posts. I mentioned this to the moderator... We'll see what happens. It's not easy to communicate with them.

There may be a possible workaround: manually specifying parameters ocl_x and ocl_y to 16.
Report back if it works.
Great job with the bug report.

Quote:
Originally Posted by pinterf View Post
Probably, the 32x8 configuration was chosen for performance reasons on Intel GPUs (I'm not sure if this was based on tests or manufacturer recommendations). The 16x16 configuration should work as well. Anyway, a lot of time has passed since these values were established in the code, and the optimal setting may have changed since then.
Testing, and a general understanding of how the Intel integrated GPU architecture was designed (memory alignment, cache size, compute units per group). Those values obviously depend on the architecture and are not optimal forever.
__________________
github.com
Khanattila is offline   Reply With Quote
Old 20th June 2025, 14:56   #1594  |  Link
GeoffreyA
.
 
Join Date: Jun 2024
Location: South Africa
Posts: 841
Not related, but I recently discovered a slight performance loss with KNLMeansCL on the Arc B580's recent drivers versus one from January.

https://github.com/IGCIT/Intel-GPU-C...IT/issues/1134
GeoffreyA is offline   Reply With Quote
Old 18th October 2025, 01:00   #1595  |  Link
takla
Registered User
 
Join Date: May 2018
Posts: 242
FFMPEG has merged a rewrite of nlmeans vulkan, which offers increased processing speed.

Newest FFMPEG download

Usage example:
Code:
ffmpeg -y -benchmark -init_hw_device vulkan -i INPUT.mkv -vf "format=nv12,hwupload,nlmeans_vulkan,hwdownload,format=nv12" -c:v libx264 OUTPUT.mkv
On my system (Ryzen 7600X, RTX 5070 Ti) I get 39.2 FPS with 1920x1080 BluRay footage.
Edit: And 44.4 FPS with +300/+3000 core/memory overclock on the GPU.

Last edited by takla; 18th October 2025 at 01:48.
takla is offline   Reply With Quote
Old 18th October 2025, 08:51   #1596  |  Link
GeoffreyA
.
 
Join Date: Jun 2024
Location: South Africa
Posts: 841
Quote:
Originally Posted by takla View Post
FFMPEG has merged a rewrite of nlmeans vulkan, which offers increased processing speed.

Newest FFMPEG download

Usage example:
Code:
ffmpeg -y -benchmark -init_hw_device vulkan -i INPUT.mkv -vf "format=nv12,hwupload,nlmeans_vulkan,hwdownload,format=nv12" -c:v libx264 OUTPUT.mkv
On my system (Ryzen 7600X, RTX 5070 Ti) I get 39.2 FPS with 1920x1080 BluRay footage.
Edit: And 44.4 FPS with +300/+3000 core/memory overclock on the GPU.
On the 4600G and B580, I get 12 fps on an old build, and 14 fps on the new one. Notably, though, is that the pervasive artefacts are gone.
GeoffreyA is offline   Reply With Quote
Old 18th October 2025, 10:12   #1597  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 3,129
Now we just need to wait (and hope) that someone will port that to AVS+.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 19th October 2025, 04:33   #1598  |  Link
takla
Registered User
 
Join Date: May 2018
Posts: 242
Quote:
Originally Posted by GeoffreyA View Post
On the 4600G and B580, I get 12 fps on an old build, and 14 fps on the new one. Notably, though, is that the pervasive artefacts are gone.
Thats a 16.6% speedup, nice.
takla 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 20:32.


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