Thread: Avisynth+
View Single Post
Old 5th September 2017, 15:20   #3579  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,806
Source: 3840x2160 AVC
CPU: E5-2690 (8C/16T)
RAM: 64 GiB
OS: Win7 x64
Avisynth+: r2508 x86
Code:
#MT
Import("C:\Users\Dave\Documents\Delphi_Projects\RipBot264\_Compiled\Tools\AviSynth plugins\Scripts\MTmodes.avs")

#VideoSource
video=DirectShowSource("E:\_Video_Samples\mp4\UHD_0035.MP4",audio=false).ConvertToYV12(matrix="rec709")

#Resize
video=Spline36Resize(video,1920,1080).Sharpen(0.2)

#Denoise
Loadplugin("C:\Users\Dave\Documents\Delphi_Projects\RipBot264\_Compiled\Tools\AviSynth plugins\mvtools\mvtools2.dll")
super=MSuper(video,pel=2)
fv1=MAnalyse(super,isb=false,delta=1,overlap=4)
bv1=MAnalyse(super,isb=true,delta=1,overlap=4)
fv2=MAnalyse(super,isb=false,delta=2,overlap=4)
bv2=MAnalyse(super,isb=true,delta=2,overlap=4)
video=MDegrain2(video,super,bv1,fv1,bv2,fv2,thSAD=400)

#Prefetch
video=Prefetch(video,X)

#Return
return video
I wonder why performance drops so heavily when process uses more than 2000 MiB of memory?

Code:
8 Threads
AVSMeter 2.2.6 (x86)
AviSynth+ 0.1 (r2508, MT, i386) (0.1.0.0)
Loading script...

Number of frames:                  420
Length (hh:mm:ss.ms):     00:00:14.014
Frame width:                      1920
Frame height:                     1080
Framerate:                      29.970 (5000000/166833)
Colorspace:                       YV12

Frames processed:               420 (0 - 419)
FPS (min | max | average):      0.581 | 472300 | 10.53
Memory usage (phys | virt):     1609 | 1800 MiB
Thread count:                   45
CPU usage (average):            52%

Time (elapsed):                 00:00:39.880
-------------------------------------------------------
14 Threads
AVSMeter 2.2.6 (x86)
AviSynth+ 0.1 (r2508, MT, i386) (0.1.0.0)
Loading script...

Number of frames:                  420
Length (hh:mm:ss.ms):     00:00:14.014
Frame width:                      1920
Frame height:                     1080
Framerate:                      29.970 (5000000/166833)
Colorspace:                       YV12

Frames processed:               420 (0 - 419)
FPS (min | max | average):      0.181 | 566759 | 12.38
Memory usage (phys | virt):     1784 | 1984 MiB
Thread count:                   51
CPU usage (average):            89%

Time (elapsed):                 00:00:33.925
-------------------------------------------------------
15 Threads
AVSMeter 2.2.6 (x86)
AviSynth+ 0.1 (r2508, MT, i386) (0.1.0.0)
Loading script...

Number of frames:                  420
Length (hh:mm:ss.ms):     00:00:14.014
Frame width:                      1920
Frame height:                     1080
Framerate:                      29.970 (5000000/166833)
Colorspace:                       YV12

Frames processed:               420 (0 - 419)
FPS (min | max | average):      0.196 | 472300 | 7.495
Memory usage (phys | virt):     1826 | 2016 MiB
Thread count:                   52
CPU usage (average):            57%

Time (elapsed):                 00:00:56.034
-------------------------------------------------------
16 Threads
AVSMeter 2.2.6 (x86)
AviSynth+ 0.1 (r2508, MT, i386) (0.1.0.0)
Loading script...

Number of frames:                  420
Length (hh:mm:ss.ms):     00:00:14.014
Frame width:                      1920
Frame height:                     1080
Framerate:                      29.970 (5000000/166833)
Colorspace:                       YV12

Frames processed:               420 (0 - 419)
FPS (min | max | average):      0.170 | 566760 | 6.253
Memory usage (phys | virt):     1850 | 2045 MiB
Thread count:                   53
CPU usage (average):            39%

Time (elapsed):                 00:01:07.169
Atak_Snajpera is offline