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

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st August 2015, 14:10   #321  |  Link
Xebika
Registered User
 
Join Date: May 2014
Location: Denmark
Posts: 50
It worked fine.
Xebika is offline   Reply With Quote
Old 1st September 2015, 11:28   #322  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
v0.6.1 release: https://github.com/Khanattila/KNLMeansCL/releases.

It corrects an error that I had introduced in the previous version.
__________________
github.com
Khanattila is offline   Reply With Quote
Old 2nd September 2015, 15:03   #323  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,579
Quote:
Originally Posted by Khanattila View Post
v0.6.1 release
Even this version doesn't work for me with DGDecNV. It works for every other SW/HW decoder plugin.

Same green screen in preview with message "CUDA ERROR!".
__________________
@turment on Telegram
tormento is online now   Reply With Quote
Old 2nd September 2015, 19:06   #324  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
This version gives me this error:
KNLMeansCL: AviSynthCreate Error (clBuildProgram!)
MysteryX is offline   Reply With Quote
Old 2nd September 2015, 20:16   #325  |  Link
detmek
Registered User
 
Join Date: Aug 2009
Posts: 463
Quote:
Originally Posted by MysteryX View Post
This version gives me this error:
KNLMeansCL: AviSynthCreate Error (clBuildProgram!)
Same here. I use it with StaxRip x64 and Avisynth+. Same error with 0.6.0. Builds up to 0.5.9 work just fine.
__________________
Intel Pentium G3220, Asus H81M-K, 4GB DDR3@1600MHz (1333MHz working), LG W1934S, Windows 8.1 Pro x64
detmek is offline   Reply With Quote
Old 2nd September 2015, 20:24   #326  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
I'm using AviSynth 2.6

Also, KNLMeans is giving me better results than FF3DFilter on most videos, but why is it giving me such bad output on this video? The lines in the background end up being very jerky (I know, the source video is bad quality), but FF3DFilter is doing a MUCH better job in this particular case. In most other videos with similarly bad quality, however, KNLMeans gives a better output.

Here's the video
https://mega.nz/#!CNICBS5S!56wGjk8gt...k4ms8mPXFr0nkY

KNLMeansCL(D=2, A=1, h=3, device_type="GPU")

Last edited by MysteryX; 2nd September 2015 at 21:07.
MysteryX is offline   Reply With Quote
Old 3rd September 2015, 00:41   #327  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Win7 (x64) SP1
GTX 750 ti
GeForce 355.82 (newest; although I don't think much changed as far as video processing goes, mostly just new games)

KNLMeansCL v0.6.1
Code:
SetMemoryMax(512)
LoadPlugin("C:\AVS\dgdecnv2049\DGDecodeNV.dll")
DGSource("E:\Demux\Scream\Scream.dgi", crop_b=140, crop_t=132)
#KNLMeansCL(D=2, A=1, h=3, device_type="GPU", info=true)
"jerky lines in the background"

I don't see "jerky lines" in the sample video.
I grabbed a demux of the poorly mastered BD for Scream, since it's noisy and messy.
(Canadian BD Region A, identical to USA BD)

(all images are "large thumbnail", click to follow to original size (1920x816)
Here's original Frame #7282:
Focus: the white door frame behind Drew


Here's with the settings used by MysteryX:
KNLMeansCL(D=2, A=1, h=3, device_type="GPU", info=true)
Focus: the white door frame behind Drew


Looks it denoises a lot of the main flat areas, but any edges are nearly the same.
When you scan forward, you can see this jerkiness it produces to due to unfiltered edges.
Some frames, the edges are cleaned out right.
And a large portion of (proceeding) frames, the noise varies, giving it a jerky look when played back.
At those setings.

Here's same settings, an earlier frame where the door frame is entirely denoised and clean edges.
Frame #7275:


Frame #7276 is pretty clean too.
From there, it starts to degrade back to a noisy edge.

BUT
I changed parameters and found this:

Frame #7313
KNLMeansCL(D=3, A=0, h=3, device_type="GPU", info=true)

Jerky-ish lines.

Are those the kind of jerky lines you got?
I couldn't get those lines on the sample video with previous settings.
I haven't checked with new settings to see if jerky lines appear.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 3rd September 2015, 04:46   #328  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
Quote:
Originally Posted by Sparktank View Post
Win7 (x64) SP1
GTX 750 ti
GeForce 355.82 (newest; although I don't think much changed as far as video processing goes, mostly just new games)

KNLMeansCL v0.6.1
Code:
SetMemoryMax(512)
LoadPlugin("C:\AVS\dgdecnv2049\DGDecodeNV.dll")
DGSource("E:\Demux\Scream\Scream.dgi", crop_b=140, crop_t=132)
#KNLMeansCL(D=2, A=1, h=3, device_type="GPU", info=true)
"jerky lines in the background"

I don't see "jerky lines" in the sample video.
I grabbed a demux of the poorly mastered BD for Scream, since it's noisy and messy.
(Canadian BD Region A, identical to USA BD)

(all images are "large thumbnail", click to follow to original size (1920x816)
Here's original Frame #7282:
Focus: the white door frame behind Drew


Here's with the settings used by MysteryX:
KNLMeansCL(D=2, A=1, h=3, device_type="GPU", info=true)
Focus: the white door frame behind Drew


Looks it denoises a lot of the main flat areas, but any edges are nearly the same.
When you scan forward, you can see this jerkiness it produces to due to unfiltered edges.
Some frames, the edges are cleaned out right.
And a large portion of (proceeding) frames, the noise varies, giving it a jerky look when played back.
At those setings.

Here's same settings, an earlier frame where the door frame is entirely denoised and clean edges.
Frame #7275:


Frame #7276 is pretty clean too.
From there, it starts to degrade back to a noisy edge.

BUT
I changed parameters and found this:

Frame #7313
KNLMeansCL(D=3, A=0, h=3, device_type="GPU", info=true)

Jerky-ish lines.

Are those the kind of jerky lines you got?
I couldn't get those lines on the sample video with previous settings.
I haven't checked with new settings to see if jerky lines appear.
NLMeans degrades to something like "Motion Flow" (pixel wise motion compensation) by setting A=0 (spatial processing disabled)
and the jerky lines are just common motion flow artifacts
solution: enable spatial processing, pick an A value greater than 0
feisty2 is offline   Reply With Quote
Old 3rd September 2015, 04:49   #329  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
I might as well post images of the video having bad results.

Original


KNLMeansCL(D=2, A=2, h=3, device_type="GPU")


fft3dfilter(sigma=3, bt=5, bw=48, bh=48, ow=24, oh=24, sharpen=0.15)
MysteryX is offline   Reply With Quote
Old 3rd September 2015, 09:44   #330  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
Quote:
Originally Posted by MysteryX View Post
This version gives me this error:
KNLMeansCL: AviSynthCreate Error (clBuildProgram!)
Quote:
Originally Posted by detmek View Post
Same here. I use it with StaxRip x64 and Avisynth+. Same error with 0.6.0. Builds up to 0.5.9 work just fine.
Please report KNLMeansCL.txt.

Each driver has its own OpenCL compiler. I can not test all possible cases.
__________________
github.com
Khanattila is offline   Reply With Quote
Old 3rd September 2015, 10:11   #331  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
Quote:
Originally Posted by feisty2 View Post
NLMeans degrades to something like "Motion Flow" (pixel wise motion compensation) by setting A=0 (spatial processing disabled)
and the jerky lines are just common motion flow artifacts
solution: enable spatial processing, pick an A value greater than 0
__________________
github.com
Khanattila is offline   Reply With Quote
Old 3rd September 2015, 13:04   #332  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
Quote:
Originally Posted by MysteryX View Post
I'm using AviSynth 2.6

Also, KNLMeans is giving me better results than FF3DFilter on most videos, but why is it giving me such bad output on this video? The lines in the background end up being very jerky (I know, the source video is bad quality), but FF3DFilter is doing a MUCH better job in this particular case. In most other videos with similarly bad quality, however, KNLMeans gives a better output.

Here's the video
https://mega.nz/#!CNICBS5S!56wGjk8gt...k4ms8mPXFr0nkY

KNLMeansCL(D=2, A=1, h=3, device_type="GPU")
Quote:
Originally Posted by MysteryX View Post
I might as well post images of the video having bad results.

Original


KNLMeansCL(D=2, A=2, h=3, device_type="GPU")


fft3dfilter(sigma=3, bt=5, bw=48, bh=48, ow=24, oh=24, sharpen=0.15)
KNLMeansCL works with similar patches. If similar patches are noise, output will have more noise.
__________________
github.com
Khanattila is offline   Reply With Quote
Old 3rd September 2015, 22:07   #333  |  Link
YAFU
Registered User
 
Join Date: Aug 2015
Posts: 40
Hello.
With this script by feisty2:
http://forum.doom9.org/showpost.php?...&postcount=234

vsedit shows me the following message:
Code:
Failed to evaluate the script:
Python exception: knlm.KNLMeansCL: VapourSynthCreate error (clBuildProgram)!
Traceback (most recent call last):
  File "vapoursynth.pyx", line 1469, in vapoursynth.vpy_evaluateScript (src/cython/vapoursynth.c:23703)
  File "/media/TEMPORAL/scrypt.vpy", line 60, in <module>
    spt = core.std.CropRel (core.knlm.KNLMeansCL(padding(clp,24,24,24,24), 0, 24, 4, h=3.2),24,24,24,24)
  File "vapoursynth.pyx", line 1368, in vapoursynth.Function.__call__ (src/cython/vapoursynth.c:22272)
vapoursynth.Error: knlm.KNLMeansCL: VapourSynthCreate error (clBuildProgram)!
I use Kubuntu 64 bits. I installed KNLMeansCL from github. I needed to install the "opencl-headres" package to compile in Kubuntu.
My graphics card is a GTX 960, using NVIDIA 355.11 driver. "nvidia_uvm" seems loaded into the kernel. nVidia OpenCL in Blender 3D seems to be working properly.

What could be causing the problem?

EDIT:
I have found that a file "KNLMeansCL.txt" is generated in the same folder as the script:
http://pastebin.com/4Cvep6w8

Another question. I have two devices that can use OpenCL, Nvidia and Intel. How to indicate in the script which device KNLMeansCL should use?

Last edited by YAFU; 3rd September 2015 at 23:34.
YAFU is offline   Reply With Quote
Old 4th September 2015, 00:03   #334  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
Quote:
Originally Posted by YAFU View Post
Hello.
With this script by feisty2:
http://forum.doom9.org/showpost.php?...&postcount=234

vsedit shows me the following message:
Code:
Failed to evaluate the script:
Python exception: knlm.KNLMeansCL: VapourSynthCreate error (clBuildProgram)!
Traceback (most recent call last):
  File "vapoursynth.pyx", line 1469, in vapoursynth.vpy_evaluateScript (src/cython/vapoursynth.c:23703)
  File "/media/TEMPORAL/scrypt.vpy", line 60, in <module>
    spt = core.std.CropRel (core.knlm.KNLMeansCL(padding(clp,24,24,24,24), 0, 24, 4, h=3.2),24,24,24,24)
  File "vapoursynth.pyx", line 1368, in vapoursynth.Function.__call__ (src/cython/vapoursynth.c:22272)
vapoursynth.Error: knlm.KNLMeansCL: VapourSynthCreate error (clBuildProgram)!
I use Kubuntu 64 bits. I installed KNLMeansCL from github. I needed to install the "opencl-headres" package to compile in Kubuntu.
My graphics card is a GTX 960, using NVIDIA 355.11 driver. "nvidia_uvm" seems loaded into the kernel. nVidia OpenCL in Blender 3D seems to be working properly.

What could be causing the problem?

EDIT:
I have found that a file "KNLMeansCL.txt" is generated in the same folder as the script:
http://pastebin.com/4Cvep6w8

Another question. I have two devices that can use OpenCL, Nvidia and Intel. How to indicate in the script which device KNLMeansCL should use?
The plugin use the first device available of type device_type. You can check it with info = true.
Or you can manually set the default opencl device in your system environment.

EDIT. v0.6.2 is required.
Tomorrow I correct everything. Others have had problems.
__________________
github.com

Last edited by Khanattila; 4th September 2015 at 00:12.
Khanattila is offline   Reply With Quote
Old 4th September 2015, 00:31   #335  |  Link
YAFU
Registered User
 
Join Date: Aug 2015
Posts: 40
Ok, I'll be tuned waiting to v0.6.2
Thank you.
YAFU is offline   Reply With Quote
Old 4th September 2015, 18:24   #336  |  Link
Khanattila
Registered User
 
Khanattila's Avatar
 
Join Date: Nov 2014
Posts: 440
https://github.com/Khanattila/KNLMea...ses/tag/v0.6.2

This release should fix all problems.
__________________
github.com
Khanattila is offline   Reply With Quote
Old 4th September 2015, 19:16   #337  |  Link
YAFU
Registered User
 
Join Date: Aug 2015
Posts: 40
Hi.
I updated from git (git pull), compiled and installed (Kubuntu Linux 64 bits, nvidia 355.11 driver)

Still having similar error in vsedit, and this is the log:
http://pastebin.com/eiWtS3ws

I uninstalled intel OpenCL driver, so nvidia is the only OpenCL device.

Last edited by YAFU; 4th September 2015 at 19:19.
YAFU is offline   Reply With Quote
Old 4th September 2015, 19:26   #338  |  Link
sl1pkn07
Pajas Mentales...
 
Join Date: Dec 2004
Location: Spanishtán
Posts: 496
i think is problem by vsedit (have a similar problem)

try:

vspipe -y script.vpy -i -

or

vspipe -y script.vpy - | mpv -

Last edited by sl1pkn07; 4th September 2015 at 19:28.
sl1pkn07 is offline   Reply With Quote
Old 4th September 2015, 19:37   #339  |  Link
YAFU
Registered User
 
Join Date: Aug 2015
Posts: 40
Hey, with these commands my graphics card started making small weird treble sounds (they were no sounds of the fan). I stopped with Ctrl + C. What does that mean? Are there risks to break my card?
YAFU is offline   Reply With Quote
Old 4th September 2015, 19:49   #340  |  Link
sl1pkn07
Pajas Mentales...
 
Join Date: Dec 2004
Location: Spanishtán
Posts: 496
should not. i think

http://wstaw.org/m/2015/09/04/Screen...904_204833.png


maybe is a Coil Whine (?)

Last edited by sl1pkn07; 4th September 2015 at 20:04.
sl1pkn07 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 16:51.


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