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 Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th December 2018, 17:44   #1  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 999
AviSynth+ (nekopanda fork)

I have tested the Neo (nekopanda) version of Avisynth+. KTGMC (QTGMC) with Cuda is awesome, though unfortunately a few things are not okay.

Code:
video=LWLibavVideoSource(SourceFile, cache=False)
audio=LWLibavAudioSource(SourceFile, cache=False)
audioDub(video, audio)
OnCPU(4)
KTGMC(Preset="slow", FPSDivisor=2) # Cuda version of QTGMC
OnCuda(2)
MCTemporalDenoise(settings="low", sigma=6, tovershoot=1, GPU=false)
Spline36Resize(1920, 1080)
NonlinUSM(z=3.0, pow=1.2, str=0.4, rad=2.0)
Source clip is 720x480, QTGMC and MCTemporalDenoise together and the whole thing runs at 21 fps. I've never had that before.

The problems:
MP_Pipline I do not get to run for my older scripts.
After OnCuda() statement some filters will not work anymore. For example, I can not use HDRAGC after OnCUDA.

Too bad. Does anyone know advice?
__________________
Live and let live

Last edited by gispos; 12th December 2018 at 17:47.
gispos is offline   Reply With Quote
Old 13th December 2018, 09:12   #2  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
If you have enough space, just use lossless intermediate files.
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Old 15th December 2018, 19:27   #3  |  Link
gispos
Registered User
 
Join Date: Oct 2018
Location: Germany
Posts: 999
I played around a bit more.
MP_Pipeline + HDRAGC after Cuda I got to run, but if Cuda and HDRAGC are used together or MP_Pipeline and Cuda, two scripts are needed.
For MP_Pipeline, return last has to be added.
Everything a little bit elaborate, I have not found any other way.

But the results are just WOW!

Source script with QTGMC Cuda prozess. 64bit Avisynth
Code:
video=LWLibavVideoSource(SourceFile, cache=False)
audio=LWLibavAudioSource(SourceFile, cache=False)
audioDub(video, audio)

Import("D:\Tools\AviSynth\plugins64+\KTGMC\KTGMC.avs")

OnCPU(8)
KTGMC(Preset="Slower", Sharpness=1.0, FPSDivisor=2, ShowSettings=False)
OnCuda(3)
Filter script
Code:
# helper function in an automatically loaded script 
function hdr2(clip clp, clip clp_hdragc, float "weight") {
     weight= default(weight, 0.5)
     merge(clp, clp_hdragc, weight=weight)
}

MP_Pipeline("""
### platform: Win64
AviSource("E:\Ablage\SourceCuda.avs") # import source with KTGMC (QTGMC) Cuda process
#Import("E:\Ablage\SourceCuda.avs") # mp_pipeline crashes

### prefetch: 32, 16
### ###
### platform: Win32
v=HDRAGC(coef_gain=1.0, max_gain=3.0,min_gain=1.0,coef_sat=1.0,max_sat=9.0,min_sat=0.0,avg_lum=128,avg_window=24,corrector=1.0,
\reducer=0.0,response=100,protect=2,mode=2,passes=4,black_clip=0.0,shift=0,shift_u=0,shift_v=0,freezer=-1,shadows=true,debug=0)
hdr2(v, 0.4) # see above

### prefetch: 32, 16
### ###
### platform: Win64
return last
""")

MCTemporalDenoise(settings="low", sigma=6, strength=100, tovershoot=1, GPU=false)
prefetch(4)
Spline36Resize(1920, 1080)
NonlinUSM(z=3, str=1.0, rad=0.6)
QTGMC(preset="slower") + HDRAGC + MCTemporalDenoise + resize + sharpen with over 22 fps is not bad.
And the low memory requirement between 480 and 580 MB is remarkable.

prefetch(4)
Attached Images
  
__________________
Live and let live

Last edited by gispos; 15th December 2018 at 20:52. Reason: Code corrections
gispos 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:43.


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