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. |
|
|
Thread Tools | Search this Thread | Display Modes |
25th February 2018, 17:52 | #1321 | Link |
Registered User
Join Date: Nov 2014
Posts: 440
|
I never used vseditor, but I suspect it could slow things down.
RX 480 8GB (1330MHz / 2000MHz) ~1,29 FPS with 90-100% GPU Load. script.vpy Code:
import vapoursynth as vs core = vs.get_core() clip = core.lsmas.LWLibavSource("Sample.mkv", format="YUV420P8") # 1920x1080 clip from a Blu-ray. clip = core.knlm.KNLMeansCL(clip, d=3, a=6, channels="Y", device_type = "GPU") clip = core.knlm.KNLMeansCL(clip, d=3, a=6, channels="UV", device_type = "GPU") clip.set_output() Code:
vspipe script.vpy NUL -p You should use a blank clip rather: Code:
core.std.BlankClip(width=1920, height=1080, format=vs.YUV420P8, length=1000)
__________________
github.com Last edited by Khanattila; 25th February 2018 at 22:34. |
26th February 2018, 07:47 | #1322 | Link | |
Registered User
Join Date: Dec 2017
Posts: 8
|
Quote:
I record a short video here https://youtu.be/yvW8pOkl2_I I have use a BlankClip in the video,you can see the GPU load change after I close and reopen the chrome . Last edited by fadedmaple; 26th February 2018 at 07:50. |
|
26th April 2018, 13:07 | #1325 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,782
|
In general, a hardware accelerated OpenCL driver should be part of a current graphic card driver (not knowing AMD, but nVidia drivers do install OpenCL.dll and additional hardware specific DLL files in the system director{y/ies}).
|
26th April 2018, 13:49 | #1326 | Link |
RipBot264 author
Join Date: May 2006
Location: Poland
Posts: 7,815
|
OpenCL is a part of AMD GPU driver.
__________________
Windows 7 Image Updater - SkyLake\KabyLake\CoffeLake\Ryzen Threadripper |
21st November 2018, 09:54 | #1329 | Link |
Registered User
Join Date: Nov 2003
Posts: 12
|
I'm seeing some weird frame order issues that appear to be happening with KNLMeansCL for me. I'm not sure for how long it has been happening because I only noticed recently with some UHD encodes. It may go back a few months.
1. Without KNLMeansCL frames seem to be fine in the output. 2. With d=0 and some values vor s, a and h sometimes a frame is skipped and later on another frame is repeated. 3. With d>0 and particularly with some UHD sources I occasionally but repeatedly get jumbled frames. E.g. for frames 1, 2, 3, 4, 5, 6 I'd get 1, 2, 3, 2, 5, 6 or something like that. I didn't have time for more tests yet, but wanted to ask if this is a known problem or if anyone knows why this could be happening? Maybe something with the GPU or some buffer? I'm using a Geforce 1060, currently updating drivers. Here's a sample script from staxrip: Code:
import os import sys ScriptPath = 'D:/stax/staxrip/Apps/Plugins/VS/Scripts' sys.path.append(os.path.abspath(ScriptPath)) import vapoursynth as vs core = vs.get_core() core.std.LoadPlugin(r"D:\stax\staxrip\Apps\Plugins\both\ffms2\ffms2.dll") core.std.LoadPlugin(r"D:\stax\staxrip\Apps\Plugins\vs\fmtconv\fmtconv.dll") core.std.LoadPlugin(r"D:\stax\staxrip\Apps\Plugins\both\KNLMeansCL\KNLMeansCL.dll") clip = core.ffms2.Source(r"D:\clip.mkv", cachefile = r"D:\clip_temp\clip.ffindex") clip = core.fmtc.bitdepth(clip, bits=16) clip = core.knlm.KNLMeansCL(clip, d = 2, s = 4, a = 4, h = 0.5) clip.set_output() Last edited by Arhu; 21st November 2018 at 10:30. |
21st November 2018, 13:34 | #1330 | Link | |
RipBot264 author
Join Date: May 2006
Location: Poland
Posts: 7,815
|
Quote:
__________________
Windows 7 Image Updater - SkyLake\KabyLake\CoffeLake\Ryzen Threadripper |
|
21st November 2018, 14:30 | #1331 | Link | |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Quote:
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
|
21st November 2018, 16:14 | #1332 | Link | ||
Registered User
Join Date: Nov 2003
Posts: 12
|
Quote:
Quote:
Bummer. I suppose I won't have to redo all of my earlier encodes as most of them look fine. It's just a select few that suffer from relatively obvious jerkiness where isolated frames weren't just repeated or skipped but came out in the wrong order. Anyway, thanks for the quick help. |
||
22nd November 2018, 00:20 | #1333 | Link | |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Quote:
You literary just need to extract it and drag&drop your video file onto the bat file.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 22nd November 2018 at 00:26. |
|
15th February 2019, 03:24 | #1334 | Link |
Registered User
Join Date: Jan 2015
Posts: 1,056
|
I just gave this a spin. What's interesting is that it delivers extremely uneven results from one frame to the next. On most, it'll deliver stronger denoising than blur(1.0) without the actual blurring, but on some frames (maybe 20 or 25%?), it seems to do nothing at all.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers. Last edited by Katie Boundary; 15th February 2019 at 03:31. |
19th February 2019, 15:43 | #1335 | Link | |
Registered User
Join Date: Feb 2017
Posts: 135
|
Quote:
|
|
24th February 2019, 15:30 | #1336 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Small question for clarification: What color spaces are supported when using Vapoursynth?
Because when loading an 8bit 4:2:0 source, I get no problem, but when loading a 10bit 4:2:0 source I get 'only YUV444P10 and RGB30 are supported!' So does KNLMeansCL only support 4:2:0 when using 8bit? script I used: Code:
import vapoursynth as vs core = vs.get_core() # Loading Plugins core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/DenoiseFilter/KNLMeansCL/KNLMeansCL.dll") core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll") # Loading E:\Output\10bitTest.mkv using LWLibavSource clip = core.lsmas.LWLibavSource(source="E:/Output/10BITT~1.MKV", format="YUV420P10", cache=0) # making sure input color matrix is set as 470bg clip = core.resize.Point(clip, matrix_in_s="470bg",range_s="limited") # making sure frame rate is set to 25/1 clip = core.std.AssumeFPS(clip, fpsnum=25, fpsden=1) # Setting color range to TV (limited) range. clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1) # denoising using KNLMeansCL clip = core.knlm.KNLMeansCL(clip=clip, device_type="gpu", device_id=0) # adjusting output color from: YUV420P10 to YUV420P8 for x264Model (i420) clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, range_s="limited") # Output clip.set_output() Code:
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P10, range_s="limited") Code:
# Imports import vapoursynth as vs core = vs.get_core() # Loading Plugins core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/DenoiseFilter/KNLMeansCL/KNLMeansCL.dll") core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll") # Loading E:\Output\10bitTest.mkv using LWLibavSource clip = core.lsmas.LWLibavSource(source="E:/Output/10BITT~1.MKV", format="YUV420P10", cache=0) # making sure input color matrix is set as 470bg clip = core.resize.Point(clip, matrix_in_s="470bg",range_s="limited") # making sure frame rate is set to 25/1 clip = core.std.AssumeFPS(clip, fpsnum=25, fpsden=1) # Setting color range to TV (limited) range. clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1) # denoising using KNLMeansCL (bit depth: 10) clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P10, range_s="limited") clip = core.knlm.KNLMeansCL(clip=clip, device_type="gpu", device_id=0) # adjusting output color from: YUV444P10 to YUV420P8 for x264Model (i420) clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, range_s="limited") # Output clip.set_output() Code:
Python exception: knlm.KNLMeansCL: only YUV444P10 and RGB30 are supported! Code:
clip = core.resize.Bicubic(clip=clip, format=vs.RGB30, matrix_in_s="470bg", range_s="limited") Cu Selur Last edited by Selur; 24th February 2019 at 16:04. |
26th February 2019, 12:21 | #1338 | Link |
Registered User
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
|
Tried with rtx2070 and I don't see any artifacts besides lost details from denoising: https://slowpics.org/comparison/ed6f...f-0a5f18a34bff
|
26th February 2019, 12:38 | #1339 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Khanattila Last Activity: 26th October 2018 19:54
@selur maybe it would be better to open a github issue.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
5th March 2019, 21:01 | #1340 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
@ChaosKing: Thanks for the heads-up.
-> https://github.com/Khanattila/KNLMeansCL/issues/42 |
|
|