The T
31st May 2016, 16:38
Hey all; so I've been having this problem with multiple different types of functions, and I think the issue is something on AviSynth/my computer's end, but I have no idea where or how to troubleshoot it.
Even so, I will give the current example of what is going on.
I am trying to use MorphDups (http://forum.doom9.org/showthread.php?t=164372) to fix an issue, as it is currently the only script of it's type to work how I want it to.
You don't have to look at that though, if you don't want; here is my exact script:
function morph (clip c, int in, int "out", int "blksize")
{
Function fill_loop(string s, int stop, int count)
{
return (stop == 0) ? s : string("tofill.mflowinter(morph_spr,fill_vb,fill_vf,time=" + string(100*(count - stop)/float(count))) + ",thscd1=255,thscd2=255).selectevery(tofill.framecount(),0)," + fill_loop(s,stop-1,count)
}
out=default(out, 0)
blksize=default(blksize,16)
d=c.trim(in,out)# in-1?
numframes=d.framecount-2
tofill=d.selectevery(c.framecount(),0,c.framecount()-1)
global morph_spr=tofill.msuper()
fill_vf=morph_spr.manalyse(truemotion=true,blksize=blksize,isb=false,overlap=blksize/2)
fill_vb=morph_spr.manalyse(truemotion=true,blksize=blksize,isb=true,overlap=blksize/2)
filled=eval("interleave(" + fill_loop("" ,d.framecount()-1,d.framecount()-1) + "tofill.selectevery(tofill.framecount(),tofill.framecount())).assumefps(c.framerate())")
c.trim(0,in-1)++filled++c.trim(out+1,0)
}
import ("morphmydups.avs")
stack=true #true= debug view: small version of source and interpolated are stacked
#1. Open file ..................................................................................
a=FFVideoSource( "2016-03-25 15-22-47.flv" ).trim(4777+9419,0)
a
source=last
#morph function ..................................................................................
morphmydups(source)
and here is the contents of the morphmydups.avs:
# Function that replaces dups by interpolated streams of frames
# generated by MorphDups.avs v0.7, see http://forum.doom9.org/showpost.php?p=1561928&postcount=52
# needs:
# - Mud Funky's Morph function, see http://forum.doom9.org/showpost.php?p=1499620&postcount=2
# - MvTools2
# Example: Morph (19,22) replaces frame 20 and 21 by an interpolation between 19 and 22
# sc_change_thresh=5.100000 morph statements are disabled when YDifferenceToNext is greater
function morphmydups (clip c) {
c #load clip
morph(41,43) # YDiffNext=0.012645, length = 1=
morph(128,130) # YDiffNext=0.015530, length = 1=
morph(3145,3153) # YDiffNext=0.822161, length = 7=======
morph(3162,3165) # YDiffNext=0.000269, length = 2==
morph(3166,3169) # YDiffNext=0.000126, length = 2==
morph(3175,3178) # YDiffNext=0.026987, length = 2==
morph(3179,3182) # YDiffNext=0.014728, length = 2==
morph(3184,3186) # YDiffNext=0.053473, length = 1=
morph(3283,3285) # YDiffNext=0.006955, length = 1=
morph(3287,3289) # YDiffNext=0.007133, length = 1=
morph(3295,3297) # YDiffNext=0.004631, length = 1=
morph(3298,3301) # YDiffNext=0.000604, length = 2==
morph(3366,3368) # YDiffNext=0.000785, length = 1=
morph(3398,3400) # YDiffNext=0.010460, length = 1=
morph(3400,3403) # YDiffNext=0.675673, length = 2==
morph(3472,3475) # YDiffNext=0.000668, length = 2==
morph(3475,3480) # YDiffNext=0.000883, length = 4====
morph(3585,3588) # YDiffNext=0.000400, length = 2==
morph(3588,3592) # YDiffNext=0.000115, length = 3===
morph(3643,3653) # YDiffNext=0.720789, length = 9=========
morph(3662,3665) # YDiffNext=0.000454, length = 2==
morph(3666,3669) # YDiffNext=0.000652, length = 2==
morph(3670,3673) # YDiffNext=0.000754, length = 2==
morph(3781,3787) # YDiffNext=0.000397, length = 5=====
morph(3898,3903) # YDiffNext=0.808815, length = 4====
morph(3925,3928) # YDiffNext=0.021352, length = 2==
morph(3967,3976) # YDiffNext=24.413750, length = 8========
morph(4305,4308) # YDiffNext=0.000309, length = 2==
morph(4308,4313) # YDiffNext=25.234016, length = 4====
morph(4484,4489) # YDiffNext=22.842079, length = 4====
morph(4507,4510) # YDiffNext=22.786436, length = 2==
morph(4646,4653) # YDiffNext=0.943607, length = 6======
morph(4666,4669) # YDiffNext=0.000904, length = 2==
morph(5151,5153) # YDiffNext=0.661709, length = 1=
morph(5215,5218) # YDiffNext=0.031967, length = 2==
morph(5364,5366) # YDiffNext=14.070787, length = 1=
morph(5394,5403) # YDiffNext=25.504187, length = 8========
morph(5510,5512) # YDiffNext=23.039000, length = 1=
morph(5559,5563) # YDiffNext=0.000155, length = 3===
morph(5629,5632) # YDiffNext=0.000712, length = 2==
morph(6262,6265) # YDiffNext=28.583893, length = 2==
morph(6307,6309) # YDiffNext=7.953578, length = 1=
morph(6365,6367) # YDiffNext=23.627563, length = 1=
morph(6385,6388) # YDiffNext=0.019982, length = 2==
morph(6393,6395) # YDiffNext=0.002282, length = 1=
morph(6475,6479) # YDiffNext=0.000470, length = 3===
morph(6479,6483) # YDiffNext=24.389891, length = 3===
} # End of function
The error message is as follows:
Avisynth open failure:
Evaluate: System exception - Access Violation
(S:\LP\Tabletop Simulator\007 - DC Deck-building Game\t.avs, line 19)
(morphmydups.avs, line 34)
(S:\LP\Tabletop Simulator\007 - DC Deck-building Game\t.avs, line 33)
Although if I try to load it multiple times, the line it gives for morphmydups.avs will change.
Is there something I am doing wrong with, I don't know, the memory management of my computer? Some way I can fix this or figure out what the access violation is?
Thanks for any and all help.
Even so, I will give the current example of what is going on.
I am trying to use MorphDups (http://forum.doom9.org/showthread.php?t=164372) to fix an issue, as it is currently the only script of it's type to work how I want it to.
You don't have to look at that though, if you don't want; here is my exact script:
function morph (clip c, int in, int "out", int "blksize")
{
Function fill_loop(string s, int stop, int count)
{
return (stop == 0) ? s : string("tofill.mflowinter(morph_spr,fill_vb,fill_vf,time=" + string(100*(count - stop)/float(count))) + ",thscd1=255,thscd2=255).selectevery(tofill.framecount(),0)," + fill_loop(s,stop-1,count)
}
out=default(out, 0)
blksize=default(blksize,16)
d=c.trim(in,out)# in-1?
numframes=d.framecount-2
tofill=d.selectevery(c.framecount(),0,c.framecount()-1)
global morph_spr=tofill.msuper()
fill_vf=morph_spr.manalyse(truemotion=true,blksize=blksize,isb=false,overlap=blksize/2)
fill_vb=morph_spr.manalyse(truemotion=true,blksize=blksize,isb=true,overlap=blksize/2)
filled=eval("interleave(" + fill_loop("" ,d.framecount()-1,d.framecount()-1) + "tofill.selectevery(tofill.framecount(),tofill.framecount())).assumefps(c.framerate())")
c.trim(0,in-1)++filled++c.trim(out+1,0)
}
import ("morphmydups.avs")
stack=true #true= debug view: small version of source and interpolated are stacked
#1. Open file ..................................................................................
a=FFVideoSource( "2016-03-25 15-22-47.flv" ).trim(4777+9419,0)
a
source=last
#morph function ..................................................................................
morphmydups(source)
and here is the contents of the morphmydups.avs:
# Function that replaces dups by interpolated streams of frames
# generated by MorphDups.avs v0.7, see http://forum.doom9.org/showpost.php?p=1561928&postcount=52
# needs:
# - Mud Funky's Morph function, see http://forum.doom9.org/showpost.php?p=1499620&postcount=2
# - MvTools2
# Example: Morph (19,22) replaces frame 20 and 21 by an interpolation between 19 and 22
# sc_change_thresh=5.100000 morph statements are disabled when YDifferenceToNext is greater
function morphmydups (clip c) {
c #load clip
morph(41,43) # YDiffNext=0.012645, length = 1=
morph(128,130) # YDiffNext=0.015530, length = 1=
morph(3145,3153) # YDiffNext=0.822161, length = 7=======
morph(3162,3165) # YDiffNext=0.000269, length = 2==
morph(3166,3169) # YDiffNext=0.000126, length = 2==
morph(3175,3178) # YDiffNext=0.026987, length = 2==
morph(3179,3182) # YDiffNext=0.014728, length = 2==
morph(3184,3186) # YDiffNext=0.053473, length = 1=
morph(3283,3285) # YDiffNext=0.006955, length = 1=
morph(3287,3289) # YDiffNext=0.007133, length = 1=
morph(3295,3297) # YDiffNext=0.004631, length = 1=
morph(3298,3301) # YDiffNext=0.000604, length = 2==
morph(3366,3368) # YDiffNext=0.000785, length = 1=
morph(3398,3400) # YDiffNext=0.010460, length = 1=
morph(3400,3403) # YDiffNext=0.675673, length = 2==
morph(3472,3475) # YDiffNext=0.000668, length = 2==
morph(3475,3480) # YDiffNext=0.000883, length = 4====
morph(3585,3588) # YDiffNext=0.000400, length = 2==
morph(3588,3592) # YDiffNext=0.000115, length = 3===
morph(3643,3653) # YDiffNext=0.720789, length = 9=========
morph(3662,3665) # YDiffNext=0.000454, length = 2==
morph(3666,3669) # YDiffNext=0.000652, length = 2==
morph(3670,3673) # YDiffNext=0.000754, length = 2==
morph(3781,3787) # YDiffNext=0.000397, length = 5=====
morph(3898,3903) # YDiffNext=0.808815, length = 4====
morph(3925,3928) # YDiffNext=0.021352, length = 2==
morph(3967,3976) # YDiffNext=24.413750, length = 8========
morph(4305,4308) # YDiffNext=0.000309, length = 2==
morph(4308,4313) # YDiffNext=25.234016, length = 4====
morph(4484,4489) # YDiffNext=22.842079, length = 4====
morph(4507,4510) # YDiffNext=22.786436, length = 2==
morph(4646,4653) # YDiffNext=0.943607, length = 6======
morph(4666,4669) # YDiffNext=0.000904, length = 2==
morph(5151,5153) # YDiffNext=0.661709, length = 1=
morph(5215,5218) # YDiffNext=0.031967, length = 2==
morph(5364,5366) # YDiffNext=14.070787, length = 1=
morph(5394,5403) # YDiffNext=25.504187, length = 8========
morph(5510,5512) # YDiffNext=23.039000, length = 1=
morph(5559,5563) # YDiffNext=0.000155, length = 3===
morph(5629,5632) # YDiffNext=0.000712, length = 2==
morph(6262,6265) # YDiffNext=28.583893, length = 2==
morph(6307,6309) # YDiffNext=7.953578, length = 1=
morph(6365,6367) # YDiffNext=23.627563, length = 1=
morph(6385,6388) # YDiffNext=0.019982, length = 2==
morph(6393,6395) # YDiffNext=0.002282, length = 1=
morph(6475,6479) # YDiffNext=0.000470, length = 3===
morph(6479,6483) # YDiffNext=24.389891, length = 3===
} # End of function
The error message is as follows:
Avisynth open failure:
Evaluate: System exception - Access Violation
(S:\LP\Tabletop Simulator\007 - DC Deck-building Game\t.avs, line 19)
(morphmydups.avs, line 34)
(S:\LP\Tabletop Simulator\007 - DC Deck-building Game\t.avs, line 33)
Although if I try to load it multiple times, the line it gives for morphmydups.avs will change.
Is there something I am doing wrong with, I don't know, the memory management of my computer? Some way I can fix this or figure out what the access violation is?
Thanks for any and all help.