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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 8th December 2016, 18:22   #2661  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Daily nightly build: r2337
http://www.mediafire.com/file/h6nlac...splus-r2337.7z

20161208 r2337dev
  • C interface array compatibility vol#2 (zero size arrays) (AvsPMod)
  • Merge, MergeChroma, MergeLuma: AVX2 (planar)
  • Possibly a bit faster text overlay

Could someone with AVX2 processor check please, whether there is a speed gain in the merge functions? I have only AVX, and using the intel sde emulator is 10 times slower, so I cannot profile.

e.g. for weight=0.3 and 0.5 (this is special: averaging)
a = MergeLuma(x,x2,weight=weight)
b = MergeChroma(x,x2,weight=weight)
c = Merge(x,x2,weight=weight)

Thanks.
pinterf is offline  
Old 9th December 2016, 00:41   #2662  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
I think a found another bug in Overlay. Try negative values for y -> y=-20. x is ok.
The mask is not moving in y direction!?

I used the Test.png from above https://www.sendspace.com/file/ad7xdd

Code:
logo = ImageSource("d:\Test.png",pixel_type="rgb32")
overlay(x=60, y=-20, logo, mask=logo.showalpha(), pc_range=true)
Attached Images
 
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database

Last edited by ChaosKing; 9th December 2016 at 00:44.
ChaosKing is offline  
Old 9th December 2016, 10:55   #2663  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,135
Hi,
I'm getting an "Access violation - System Exception" in VDub (on both x86/x64) using xy-vsfilter (3.0.0.306) and "MaskSub" function:

Code:
MaskSub("Subtitle.ass", 1920, 1080, 23.976, 34000)
Tnx.
mp3dom is offline  
Old 9th December 2016, 11:52   #2664  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,309
Code:
Log created with:           AVSMeter 2.4.4 (x64)
Script file:                F:\Pluggin_Tests\TestBench.avs
Command line switches:      -l


[OS/Hardware info]
Operating system:           Windows 7 (x64) Service Pack 1 (Build 7601)
CPU (brand string):         Intel(R) Core(TM) i7-6950X CPU @ 3.00GHz
CPU (code name):            Broadwell-E (Core i7)
CPU clock (measured):       4124 MHz
CPU cores / Logical cores:  10 / 20


[Avisynth core info]
VersionString:              AviSynth+ 0.1 (r2331, MT, x86_64)
VersionNumber:              2.60
File version:               0.1.0.0
Interface Version:          6
Multi-threading support:    Yes
Linker/compiler version:    14.0
Avisynth.dll location:      C:\Windows\System32\AviSynth.dll
Avisynth.dll time stamp:    2016-12-06, 14:42:15 (UTC)
PluginDir+    (HKLM, x64):  C:\Program Files (x86)\AviSynth+\plugins64+
PluginDir2_5  (HKLM, x64):  C:\Program Files (x86)\AviSynth+\plugins64


[Clip info]
Number of frames:                10000
Length (hh:mm:ss.ms):     00:06:40.000
Frame width:                      3840
Frame height:                     2160
Framerate:                      25.000 (25/1)
Colorspace:                       YV12
Audio channels:                    n/a
Audio bits/sample:                 n/a
Audio sample rate:                 n/a
Audio samples:                     n/a


[Runtime info]
Frames processed:               10000 (0 - 9999)
FPS (min | max | average):      519.1 | 646.0 | 633.5
Memory usage (phys | virt):     53 | 49 MiB
Thread count:                   41
CPU usage (average):            5%

Time (elapsed):                 00:00:15.785


[Script]
a=Colorbars(width=1920*2,height=1080*2,pixel_type="yv12").killaudio().assumefps(25,1).trim(0,9999)
Merge(a,a,0.5)
Code:
Log created with:           AVSMeter 2.4.4 (x64)
Script file:                F:\Pluggin_Tests\TestBench.avs
Command line switches:      -l


[OS/Hardware info]
Operating system:           Windows 7 (x64) Service Pack 1 (Build 7601)
CPU (brand string):         Intel(R) Core(TM) i7-6950X CPU @ 3.00GHz
CPU (code name):            Broadwell-E (Core i7)
CPU clock (measured):       4124 MHz
CPU cores / Logical cores:  10 / 20


[Avisynth core info]
VersionString:              AviSynth+ 0.1 (r2337, MT, x86_64)
VersionNumber:              2.60
File version:               0.1.0.0
Interface Version:          6
Multi-threading support:    Yes
Linker/compiler version:    14.0
Avisynth.dll location:      C:\Windows\System32\AviSynth.dll
Avisynth.dll time stamp:    2016-12-08, 14:45:04 (UTC)
PluginDir+    (HKLM, x64):  C:\Program Files (x86)\AviSynth+\plugins64+
PluginDir2_5  (HKLM, x64):  C:\Program Files (x86)\AviSynth+\plugins64


[Clip info]
Number of frames:                10000
Length (hh:mm:ss.ms):     00:06:40.000
Frame width:                      3840
Frame height:                     2160
Framerate:                      25.000 (25/1)
Colorspace:                       YV12
Audio channels:                    n/a
Audio bits/sample:                 n/a
Audio sample rate:                 n/a
Audio samples:                     n/a


[Runtime info]
Frames processed:               10000 (0 - 9999)
FPS (min | max | average):      505.4 | 662.4 | 648.3
Memory usage (phys | virt):     53 | 49 MiB
Thread count:                   41
CPU usage (average):            6%

Time (elapsed):                 00:00:15.424


[Script]
a=Colorbars(width=1920*2,height=1080*2,pixel_type="yv12").killaudio().assumefps(25,1).trim(0,9999)
Merge(a,a,0.5)
If before AVX2 you allready had AVX, i'm not sure if the difference will be huge.
jpsdr is offline  
Old 9th December 2016, 11:55   #2665  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by ChaosKing View Post
I think a found another bug in Overlay. Try negative values for y -> y=-20. x is ok.
The mask is not moving in y direction!?

I used the Test.png from above https://www.sendspace.com/file/ad7xdd

Code:
logo = ImageSource("d:\Test.png",pixel_type="rgb32")
overlay(x=60, y=-20, logo, mask=logo.showalpha(), pc_range=true)
Confirmed, fixed.

Mask is converted to greyscale (Y only, w/o U and V) unless the greymask parameter is set to false.

Internally everything is YUV 4:4:4, and with greymask=true (default) the clip's U and V plane is faked from the Y plane. But only the frame pointers were faked, the pitch of U and V planes (which are zero for a greyscale clip) were still used for y shift calculation (mask_offsetU/V = original_mask_offset + x + y*pitchUV which obviously ignores y when pitchUV is zero)
pinterf is offline  
Old 9th December 2016, 12:52   #2666  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by jpsdr View Post
Code:
[Script]
a=Colorbars(width=1920*2,height=1080*2,pixel_type="yv12").killaudio().assumefps(25,1).trim(0,9999)
Merge(a,a,0.5)
If before AVX2 you already had AVX, i'm not sure if the difference will be huge.
Thanks, could you test it with 0.3, please?

Because 0.5 is a special case: read 2x32 bytes, average them (single command), write 1x32 bytes. It seems, that the memory access is the bottleneck, there is not much difference.

For 0.3 it uses the 0.3 and 0.7 weights for clip1 and clip2 then sums it up, so multiplication and addition takes place.

Regarding AVX, this instruction set has only float (single) 256 bit support. From AVX2 we have integer routines like in SSE2 with double (256 bit e.g. 32 bytes) data width. The original version used SSE2.
pinterf is offline  
Old 9th December 2016, 16:32   #2667  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,309
Quote:
Originally Posted by pinterf View Post
Thanks, could you test it with 0.3, please?
Results are indeed more interesting.

Code:
Log created with:           AVSMeter 2.4.4 (x64)
Script file:                F:\Pluggin_Tests\TestBench.avs
Command line switches:      -l


[OS/Hardware info]
Operating system:           Windows 7 (x64) Service Pack 1 (Build 7601)
CPU (brand string):         Intel(R) Core(TM) i7-6950X CPU @ 3.00GHz
CPU (code name):            Broadwell-E (Core i7)
CPU clock (measured):       4124 MHz
CPU cores / Logical cores:  10 / 20


[Avisynth core info]
VersionString:              AviSynth+ 0.1 (r2331, MT, x86_64)
VersionNumber:              2.60
File version:               0.1.0.0
Interface Version:          6
Multi-threading support:    Yes
Linker/compiler version:    14.0
Avisynth.dll location:      C:\Windows\System32\AviSynth.dll
Avisynth.dll time stamp:    2016-12-06, 14:42:15 (UTC)
PluginDir+    (HKLM, x64):  C:\Program Files (x86)\AviSynth+\plugins64+
PluginDir2_5  (HKLM, x64):  C:\Program Files (x86)\AviSynth+\plugins64


[Clip info]
Number of frames:                10000
Length (hh:mm:ss.ms):     00:06:40.000
Frame width:                      3840
Frame height:                     2160
Framerate:                      25.000 (25/1)
Colorspace:                       YV12
Audio channels:                    n/a
Audio bits/sample:                 n/a
Audio sample rate:                 n/a
Audio samples:                     n/a


[Runtime info]
Frames processed:               10000 (0 - 9999)
FPS (min | max | average):      252.5 | 390.1 | 384.1
Memory usage (phys | virt):     53 | 50 MiB
Thread count:                   41
CPU usage (average):            5%

Time (elapsed):                 00:00:26.033


[Script]
a=Colorbars(width=1920*2,height=1080*2,pixel_type="yv12").killaudio().assumefps(25,1).trim(0,9999)
Merge(a,a,0.3)
Code:
Log created with:           AVSMeter 2.4.4 (x64)
Script file:                F:\Pluggin_Tests\TestBench.avs
Command line switches:      -l


[OS/Hardware info]
Operating system:           Windows 7 (x64) Service Pack 1 (Build 7601)
CPU (brand string):         Intel(R) Core(TM) i7-6950X CPU @ 3.00GHz
CPU (code name):            Broadwell-E (Core i7)
CPU clock (measured):       4124 MHz
CPU cores / Logical cores:  10 / 20


[Avisynth core info]
VersionString:              AviSynth+ 0.1 (r2337, MT, x86_64)
VersionNumber:              2.60
File version:               0.1.0.0
Interface Version:          6
Multi-threading support:    Yes
Linker/compiler version:    14.0
Avisynth.dll location:      C:\Windows\System32\AviSynth.dll
Avisynth.dll time stamp:    2016-12-08, 14:45:04 (UTC)
PluginDir+    (HKLM, x64):  C:\Program Files (x86)\AviSynth+\plugins64+
PluginDir2_5  (HKLM, x64):  C:\Program Files (x86)\AviSynth+\plugins64


[Clip info]
Number of frames:                10000
Length (hh:mm:ss.ms):     00:06:40.000
Frame width:                      3840
Frame height:                     2160
Framerate:                      25.000 (25/1)
Colorspace:                       YV12
Audio channels:                    n/a
Audio bits/sample:                 n/a
Audio sample rate:                 n/a
Audio samples:                     n/a


[Runtime info]
Frames processed:               10000 (0 - 9999)
FPS (min | max | average):      420.9 | 546.9 | 536.8
Memory usage (phys | virt):     53 | 49 MiB
Thread count:                   41
CPU usage (average):            6%

Time (elapsed):                 00:00:18.630


[Script]
a=Colorbars(width=1920*2,height=1080*2,pixel_type="yv12").killaudio().assumefps(25,1).trim(0,9999)
Merge(a,a,0.3)
jpsdr is offline  
Old 10th December 2016, 00:56   #2668  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
hi pinterf

I check to see if this bug http://forum.doom9.org/showpost.php?...3&postcount=55 still in avs+ after all this work on avs+ then I see it's still not fixed

beside the Dither_convert_rgb_to_yuv(cplace ="dv",interlaced=true) I made this for YV16 to test

Code:
Function do_PAL_dv (c)
{
c
assert(isyv16(), "only yv16 is allowed.") 
SeparateFields()
y=last
B=UToY8()
R=VToY8()

YToUV(b.BicubicResize(b.Width(), Height()/2, src_top= 0.5),r.BicubicResize(r.Width(), Height()/2, src_top=-0.5),y)
Weave()
}
__________________
See My Avisynth Stuff
real.finder is offline  
Old 10th December 2016, 09:22   #2669  |  Link
fAy01
Registered User
 
Join Date: Jun 2010
Posts: 91
Quote:
Originally Posted by pinterf View Post
Daily nightly build: r2337
http://www.mediafire.com/file/h6nlac...splus-r2337.7z

20161208 r2337dev
  • C interface array compatibility vol#2 (zero size arrays) (AvsPMod)
  • Merge, MergeChroma, MergeLuma: AVX2 (planar)
  • Possibly a bit faster text overlay

Could someone with AVX2 processor check please, whether there is a speed gain in the merge functions? I have only AVX, and using the intel sde emulator is 10 times slower, so I cannot profile.

e.g. for weight=0.3 and 0.5 (this is special: averaging)
a = MergeLuma(x,x2,weight=weight)
b = MergeChroma(x,x2,weight=weight)
c = Merge(x,x2,weight=weight)

Thanks.
Try opening an h264 stream with ffms2. It won't display.

Last edited by fAy01; 11th December 2016 at 02:10.
fAy01 is offline  
Old 11th December 2016, 07:42   #2670  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Chroma placement things and interlaced parameter are not valid for yv16 now. Interlaced is silently set to false if source is not 4:2:0. This may be too strict.
For yv12 test in the link: how do you know which is the correct one?
pinterf is offline  
Old 11th December 2016, 11:55   #2671  |  Link
ajp_anton
Registered User
 
ajp_anton's Avatar
 
Join Date: Aug 2006
Location: Stockholm/Helsinki
Posts: 805
Do you have any plans on Layer/Overlay? Would it be possible to add colorspaces to Layer, to be able to use it without the forced conversions of Overlay?
ajp_anton is offline  
Old 11th December 2016, 13:33   #2672  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
@pinterf, the bug real.finder is pointing to is fixed in the csv tree of regular AviSynth.
Wilbert is offline  
Old 11th December 2016, 16:24   #2673  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by Wilbert View Post
@pinterf, the bug real.finder is pointing to is fixed in the csv tree of regular AviSynth.
Thanks, I asked it (how can we know which one is wrong - avs or dither tools?), because yes, I can see the visual difference between Dither tools conversion and avisynth conversion, for dv target chroma placement. And I also checked the 2.6.1 source and there was no difference in constants between avs+ and 2.6.1. (I checked convert_planar.cpp Aug.01, 2015). Is there any other place I should check against?

edit: found it

Last edited by pinterf; 11th December 2016 at 18:25.
pinterf is offline  
Old 11th December 2016, 16:45   #2674  |  Link
Sm3n
Registered User
 
Join Date: Jul 2012
Posts: 94
Sorry if it's not the right place to talk about that. Dunno if the source of my issue is avisynth+.

About a week now that my x264 encoding process does crazy stuff. After hours of encoding in the middle of a process my cpu which reach most of the time the 100% falls about 20-30%.
I tried to run my avs script directly into x264, using avs4x26x, or piping it using avs2yuv_x64. Same result.
My logic would say it's due to a bad script which makes process to fail (I wonder why because it appears with no reason):

Code:
SetMemoryMax(1600)
DGSource("Test1.dgi",fieldop=0,deinterlace=0)
QTGMC(preset="Medium", FPSDivisor=2, DftThreads = 1, EdiThreads = 1)
#crop(2, 2, -2, -2)
Spline36Resize(1280,720)
prefetch(4)
I tried avs+ 2172 and the last mod found here. Here are my avsmeter logs x86 & x64:

Code:
AVSMeter 2.3.8 (x86) - Copyright (c) 2012-2016, Groucho2004

[OS/Hardware info]
Operating system:           Windows 8.1 (x64) (Build 9600)
CPU:                        Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
                            Ivy Bridge (Core i7)
CPU clock (measured):       4346 MHz
CPU cores / Logical cores:  4 / 8

VersionString:              AviSynth+ 0.1 (r2337, MT, i386)
VersionNumber:              2.60
File version:               0.1.0.0
Interface Version:          6
Multi-threading support:    Yes
Linker/compiler version:    14.0
Avisynth.dll location:      C:\Windows\SysWOW64\AviSynth.dll
Avisynth.dll time stamp:    2016-12-08, 18:02:40
PluginDir+    (HKLM, x86):  C:\Program Files (x86)\AviSynth+\plugins+
PluginDir2_5  (HKLM, x86):  C:\Program Files (x86)\AviSynth+\plugins


[Avisynth CPP 2.6 plugins]
C:\Program Files (x86)\AviSynth+\plugins+\ConvertStacked.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins+\DirectShowSource.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins+\ImageSeq.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins+\Shibatch.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins+\TimeStretch.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins+\VDubFilter.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins+\yadifmod2.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins+\yadifmod2_avx2.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\avss_26.dll  (2.0.0.13)
C:\Program Files (x86)\AviSynth+\plugins\DGDecodeNV.dll  (0.0.0.2052)
C:\Program Files (x86)\AviSynth+\plugins\DirectShowSource.dll  (2.6.1.0)
C:\Program Files (x86)\AviSynth+\plugins\ffms2.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\masktools2.dll  (2.1.0.0)
C:\Program Files (x86)\AviSynth+\plugins\MSharpen.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\mvtools2.dll  (2.7.0.22)
C:\Program Files (x86)\AviSynth+\plugins\nnedi3.dll  (0.9.4.32)
C:\Program Files (x86)\AviSynth+\plugins\RgTools.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\TCPDeliver.dll  (2.6.1.0)


[Avisynth CPP 2.5 plugins]
C:\Program Files (x86)\AviSynth+\plugins+\flash3kyuu_deband.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\AddGrainC.dll  (1.5.2.0)
C:\Program Files (x86)\AviSynth+\plugins\AudioLimiter.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\avss.dll  (2.0.0.13)
C:\Program Files (x86)\AviSynth+\plugins\avstp.dll  (1.0.3.0)
C:\Program Files (x86)\AviSynth+\plugins\aWarpSharp.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\BassAudio.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\ColorMatrix.dll  (2.5.0.0)
C:\Program Files (x86)\AviSynth+\plugins\Convolution3DYV12.dll  (1.0.0.5)
C:\Program Files (x86)\AviSynth+\plugins\DctFilter.dll  (0.0.1.4)
C:\Program Files (x86)\AviSynth+\plugins\deblock.dll  (1.2.0.0)
C:\Program Files (x86)\AviSynth+\plugins\Decomb.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\dfttest.dll  (1.9.4.0)
C:\Program Files (x86)\AviSynth+\plugins\DGDecode.dll  (1.5.8.0)
C:\Program Files (x86)\AviSynth+\plugins\dither.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\EEDI2.dll  (0.9.2.0)
C:\Program Files (x86)\AviSynth+\plugins\EEDI2.dll_back  (0.9.2.0)
C:\Program Files (x86)\AviSynth+\plugins\eedi3.dll  (0.9.1.0)
C:\Program Files (x86)\AviSynth+\plugins\FFT3DFilter.dll  (2.1.1.0)
C:\Program Files (x86)\AviSynth+\plugins\FFT3dGPU.dll  (0.8.2.0)
C:\Program Files (x86)\AviSynth+\plugins\FillMargins.dll  (1.0.2.0)
C:\Program Files (x86)\AviSynth+\plugins\FluxSmooth.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\gradfun2db.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\GRunT.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\LeakKernelDeint.dll  (1.5.4.0)
C:\Program Files (x86)\AviSynth+\plugins\MDeblock.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\MDeblockS.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\NicAudio.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\nnedi.dll  (1.3.0.0)
C:\Program Files (x86)\AviSynth+\plugins\nnedi2.dll  (1.6.0.0)
C:\Program Files (x86)\AviSynth+\plugins\RemoveGrainSSE2.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\RemoveGrainSSE3.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\RemoveGrainSSE3.dll_back  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\RepairSSE2.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\RepairSSE3.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\Rotate.dll  (1.3.4.0)
C:\Program Files (x86)\AviSynth+\plugins\SSE2Tools.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\TDeint.dll  (1.1.0.0)
C:\Program Files (x86)\AviSynth+\plugins\TDeint.dll_back  (1.1.0.0)
C:\Program Files (x86)\AviSynth+\plugins\TIVTC.dll  (1.0.5.0)
C:\Program Files (x86)\AviSynth+\plugins\TomsMoComp.dll  (0.0.1.8)
C:\Program Files (x86)\AviSynth+\plugins\TTempSmooth.dll  (0.9.4.0)
C:\Program Files (x86)\AviSynth+\plugins\UnDot.dll  (0.0.1.1)
C:\Program Files (x86)\AviSynth+\plugins\unsharpHQ_v05_x86.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\VariableBlur.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\VerticalCleanerSSE2.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins\VSFilter.dll  (3.0.0.306)
C:\Program Files (x86)\AviSynth+\plugins\warpsharp.dll  (n/a)


[Avisynth C 2.5 plugins]
C:\Program Files (x86)\AviSynth+\plugins\yadif.dll  (1.7.0.0)
C:\Program Files (x86)\AviSynth+\plugins\yadif.dll_bak  (1.7.0.0)
Code:
AVSMeter 2.3.8 (x64) - Copyright (c) 2012-2016, Groucho2004

[OS/Hardware info]
Operating system:           Windows 8.1 (x64) (Build 9600)
CPU:                        Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
                            Ivy Bridge (Core i7)
CPU clock (measured):       4346 MHz
CPU cores / Logical cores:  4 / 8

VersionString:              AviSynth+ 0.1 (r2337, MT, x86_64)
VersionNumber:              2.60
File version:               0.1.0.0
Interface Version:          6
Multi-threading support:    Yes
Linker/compiler version:    14.0
Avisynth.dll location:      C:\Windows\System32\AviSynth.dll
Avisynth.dll time stamp:    2016-12-08, 15:45:04
PluginDir+    (HKLM, x64):  C:\Program Files (x86)\AviSynth+\plugins64+
PluginDir2_5  (HKLM, x64):  C:\Program Files (x86)\AviSynth+\plugins64


[Avisynth CPP 2.6 plugins]
C:\Program Files (x86)\AviSynth+\plugins64+\ConvertStacked.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins64+\DirectShowSource.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins64+\ImageSeq.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins64+\Shibatch.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins64+\TimeStretch.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins64+\VDubFilter.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins64+\yadifmod2.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins64+\yadifmod2_avx2.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins64\DGDecodeNV.dll  (0.0.0.2052)
C:\Program Files (x86)\AviSynth+\plugins64\masktools2.dll  (2.1.0.0)
C:\Program Files (x86)\AviSynth+\plugins64\msharpen.dll  (n/a)
C:\Program Files (x86)\AviSynth+\plugins64\mvtools2.dll  (2.7.0.22)
C:\Program Files (x86)\AviSynth+\plugins64\nnedi3.dll  (0.9.4.32)
C:\Program Files (x86)\AviSynth+\plugins64\RgTools.dll  (n/a)


[Avisynth CPP 2.5 plugins]
C:\Program Files (x86)\AviSynth+\plugins64\TIVTC.dll  (1.0.5.0)


[Avisynth CPP 2.0 plugins]
C:\Program Files (x86)\AviSynth+\plugins64\VSFilter.dll  (3.0.0.306)


[Plugin errors]
---------------------------------------------------------------------------

Error loading "C:\Program Files (x86)\AviSynth+\plugins64\DGDecode.dll"
Cannot load 32 bit DLL with 64 bit Avisynth

---------------------------------------------------------------------------

"C:\Program Files (x86)\AviSynth+\plugins64\mvtools2.dll"

Dependencies that couldn't be loaded:
  libfftw3f-3.dll

Note: libfftw3f-3.dll can be downloaded here:
      http://www.fftw.org/install/windows.html
Could it be a hardware failure? (RAM) Or a too high settings for SetMemoryMax and prefetch?

I really need to understand for fixing it. I'd love to have your help.

Last edited by Sm3n; 11th December 2016 at 16:46. Reason: layout
Sm3n is offline  
Old 11th December 2016, 16:53   #2675  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by mp3dom View Post
Hi,
I'm getting an "Access violation - System Exception" in VDub (on both x86/x64) using xy-vsfilter (3.0.0.306) and "MaskSub" function:

Code:
MaskSub("Subtitle.ass", 1920, 1080, 23.976, 34000)
Tnx.
It turned out that it is a filter using avisynth 2.5 plugin interface.

I'm not happy, now I have a deeper clue about the caveats of keeping the backward compatibility with that what is called "baked code".

In its current form I am not able to keep the compatibility between avisynth 2.5 interface and my new AVSValue handling schema. The problem affects arrays (and such, the filter parameter passing). Although the array creation is transparent when 2.6 interface is used and automatically uses the new mechanism for creating and copying AVSValue types, but plugins using "baked code" avs 2.5 interface are not knowing about the feature and use the array creation codes hardcoded in the 2.5 interface.

And since I simply not able to check, what kind of interface made a call to ScriptEnvironment::Invoke, I have to revert that array feature. O.K. having script arrays are only a nice addition to the language but there was quite a bit of work with this feature.

So it seems that I have to revert my nice new array mechanism, even from the dev version of my builds. As there are still some plugins out there with the 2.5 interface, I cannot make avs+ incompatible with them and cause users inconveniance.

Last edited by pinterf; 11th December 2016 at 17:03.
pinterf is offline  
Old 11th December 2016, 17:00   #2676  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by Sm3n View Post
Sorry if it's not the right place to talk about that. Dunno if the source of my issue is avisynth+.

About a week now that my x264 encoding process does crazy stuff. After hours of encoding in the middle of a process my cpu which reach most of the time the 100% falls about 20-30%.
I tried to run my avs script directly into x264, using avs4x26x, or piping it using avs2yuv_x64. Same result.
My logic would say it's due to a bad script which makes process to fail (I wonder why because it appears with no reason)
[...]

Could it be a hardware failure? (RAM) Or a too high settings for SetMemoryMax and prefetch?

I really need to understand for fixing it. I'd love to have your help.
There was a topic some month ago on such a mysterious case.
The solution was that the processor got too hot after a while, and an automatic thermal throttle was kicking in. Try monitoring the processor, and check the heatsink and fan.

Last edited by pinterf; 11th December 2016 at 17:02.
pinterf is offline  
Old 11th December 2016, 18:14   #2677  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Or there is memory leak somewhere but it needs running your script with avsmeter, perhaps with logging enabled to see whether the slowdown occurs after a specific frame count or memory consumption.
pinterf is offline  
Old 11th December 2016, 21:57   #2678  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
New week, new build, new adventures.
This time I had to remove the script array feature that has caused me and you headaches.
http://www.mediafire.com/file/gbpdu5...splus-r2343.7z

20161211 r2343dev
  • Overlay: use y offset when greymask=true (fix)
  • Fix DV chroma positioning (UV swapped), interlaced parameter check for 4:2:0
    (fix by IanB in classic Avisynth)
  • BitBlt in 32 bit Avisynth:
    for processors with AVX or better ignore tricky isse memcpy replacement, trust in memcpy (test)
    (x64 is O.K., it always used memcpy)
  • Merge: use stream_load for AVX2
  • VDubFilter.dll (now bundled):
    convert 'd' double and 'l' long typed parameters to 'f' float and 'i' int for poor AviSynth, thus allowing the usage of such virtualdub filters
  • remove script array (new AVSValue schema) feature, cannot make it compatible with Invoke from v2.5 plugins until I figure out a workaround or such plugins would slowly distinct. <sniff> <sniff>

Last edited by pinterf; 11th December 2016 at 22:05. Reason: Typo: r2343 is the right version
pinterf is offline  
Old 11th December 2016, 22:02   #2679  |  Link
Sm3n
Registered User
 
Join Date: Jul 2012
Posts: 94
Quote:
Originally Posted by pinterf View Post
There was a topic some month ago on such a mysterious case.
The solution was that the processor got too hot after a while, and an automatic thermal throttle was kicking in. Try monitoring the processor, and check the heatsink and fan.
Quote:
Originally Posted by pinterf View Post
Or there is memory leak somewhere but it needs running your script with avsmeter, perhaps with logging enabled to see whether the slowdown occurs after a specific frame count or memory consumption.
I'll look into it and post you the log if needed.
Sm3n is offline  
Old 11th December 2016, 22:04   #2680  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,309
Quote:
Originally Posted by jpsdr View Post
Results are indeed more interesting.

Code:
[OS/Hardware info]
Operating system:           Windows 7 (x64) Service Pack 1 (Build 7601)
CPU (brand string):         Intel(R) Core(TM) i7-6950X CPU @ 3.00GHz
CPU (code name):            Broadwell-E (Core i7)
CPU clock (measured):       4124 MHz
CPU cores / Logical cores:  10 / 20

VersionString:              AviSynth+ 0.1 (r2331, MT, x86_64)
FPS (min | max | average):      252.5 | 390.1 | 384.1

VersionString:              AviSynth+ 0.1 (r2337, MT, x86_64)
FPS (min | max | average):      420.9 | 546.9 | 536.8

[Script]
a=Colorbars(width=1920*2,height=1080*2,pixel_type="yv12").killaudio().assumefps(25,1).trim(0,9999)
Merge(a,a,0.3)
Thanks for the test. That is spectacular difference, I wish every script has tons of Merge
One last request: could you repeat this test with the r2343?
pinterf is offline  
Closed Thread

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 20:06.


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