script
Mpeg2Source("I:\VIDEO_TS.d2v", CPU2="ooooxx")
return
\ fa.Trim(0, 16785)
\ + fb.Trim(16786, 16817)
\ + fa.Trim(16818, 17384)
\ + fb.Trim(17385, 17469)
\ + fa.Trim(17470, 17563)
\ + fb.Trim(17564, 17596)
\ + fa.Trim(17597, 18849)
\ + fb.Trim(18850, 18964)
\ + fa.Trim(18965, 19189)
\ + fb.Trim(19190, 19288)
\ + fa.Trim(19289, 21519)
\ + fb.Trim(21520, 21606)
\ + fa.Trim(21607, 22061)
\ + fb.Trim(22062, 22195)
\ + fa.Trim(22196, 27773)
\ + fb.Trim(27774, 27797)
\ + fa.Trim(27798, 29724)
\ + fb.Trim(29725, 29733)
\ + fa.Trim(29734, 30767)
\ + fb.Trim(30768, 30931)
\ + fa.Trim(30932, 32137)
\ + fb.Trim(32138, 32378)
\ + fa.Trim(32378, 32875)
\ + fb.Trim(32876, 33032)
\ + fa.Trim(33033, 33930)
\ + fb.Trim(33931, 33979)
\ + fa.Trim(33980, 37811)
function fa(clip C)
{
C
TFM()
TDecimate(Mode=1)
ColorMatrix(mode="rec.601->rec.709")
ColorYUV(cont_y=5, cont_u=-40, cont_v=8, gamma_y=-15)
Crop(4,0,-0,-0)
McTemporalDenoise(settings="Low")
nnedi3_rpow2(2, cshift="spline36resize", fwidth=1280, fheight=720)
Sharpen(0.7)
McTemporalDenoise(settings="Medium")
Hysteria(strength=3.6, maxchg=26,lowthresh=12)
Dehalo_alpha(rx=3, ry=3, darkstr=0.3, brightstr=0.3)
Blur(0.8)
return Last
}
function fb(clip C)
{
C
QTGMC(FPSDivisor=2)
TDecimate(Mode=1)
ColorMatrix(mode="rec.601->rec.709")
ColorYUV(cont_y=5, cont_u=-40, cont_v=8, gamma_y=-15)
Crop(4,0,-0,-0)
McTemporalDenoise(settings="Medium")
nnedi3_rpow2(2, cshift="spline36resize", fwidth=1280, fheight=720)
Sharpen(0.7)
Hysteria(strength=3.6, maxchg=26,lowthresh=12)
Dehalo_alpha(rx=3, ry=3, darkstr=0.3, brightstr=0.3)
Blur(0.8)
return Last
}
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 14 of 14
Thread
-
-
Did you really mean to call MCTD twice in fa()? You may be running out of memory.
-
-
Using a random DVD MPEG2 video your script crashed on my computer too. But not after modifying it to use ReplaceFramesSimple():
Code:Mpeg2Source(I:\VIDEO_TS.d2v", CPU2="ooooxx") va = fa() vb = fb() ReplaceFramesSimple(va, vb, mappings=" [16786 16817][17385 17469][17564 17596][18850 18964][19190 19288] [21520 21606][22062 22195][27774 27797][29725 29733][30768 30931] [32138 32378][32876 33032][33931 33979][33980 37811]") Trim(0,37811) # in case va is longer than 37812 frames. return(last) function fa(clip C) { C TFM() TDecimate(Mode=1) ColorMatrix(mode="rec.601->rec.709") ColorYUV(cont_y=5, cont_u=-40, cont_v=8, gamma_y=-15) Crop(4,0,-0,-0) McTemporalDenoise(settings="Low") nnedi3_rpow2(2, cshift="spline36resize", fwidth=1280, fheight=720) Sharpen(0.7) McTemporalDenoise(settings="Medium") Hysteria(strength=3.6, maxchg=26,lowthresh=12) Dehalo_alpha(rx=3, ry=3, darkstr=0.3, brightstr=0.3) Blur(0.8) return Last } function fb(clip C) { C QTGMC(FPSDivisor=2) TDecimate(Mode=1) ColorMatrix(mode="rec.601->rec.709") ColorYUV(cont_y=5, cont_u=-40, cont_v=8, gamma_y=-15) Crop(4,0,-0,-0) McTemporalDenoise(settings="Medium") nnedi3_rpow2(2, cshift="spline36resize", fwidth=1280, fheight=720) Sharpen(0.7) Hysteria(strength=3.6, maxchg=26,lowthresh=12) Dehalo_alpha(rx=3, ry=3, darkstr=0.3, brightstr=0.3) Blur(0.8) return Last }
-
-
I think AviSynth creates a new video stream with each of your calls to fa() and fb(), 27 different streams, each calling memory intensive filters like MCTD and QTGMC. I'm my version fa() and fb() are called only once, so only two streams are created. If you modified your code to do something like:
Code:Mpeg2Source("I:\VIDEO_TS.d2v", CPU2="ooooxx") va = fa() vb = fb() return(va.Trim(0, 16785) \ + vb.Trim(16786, 16817) \ + va.Trim(16818, 17384)...
Last edited by jagabo; 7th Apr 2017 at 18:42.
-
Last edited by zanzar; 7th Apr 2017 at 19:05.
-
Why don't you just check it and find out?
Last edited by jagabo; 7th Apr 2017 at 20:24.
-
I had some time so I double checked my script in post 5. The last segment in ReplaceFramesSimple, [33980 37811], should be removed. The script in post 7 is obviously just a fragment -- you should be able to figure out the rest.
-
-
-
-
what would be the downside by using something like this ?
Code:LWLibavVideoSource("I:1.mkv") # "1" is the encoded video with the missing parts vb = fb() ReplaceFramesSimple(vb, mappings="[28819 28879][26199 26421]") return(last) function fb(clip C) { C Mpeg2Source("I:\VIDEO_TS.d2v", CPU2="ooooxx") QTGMC(FPSDivisor=2) TDecimate(Mode=1) ColorMatrix(mode="rec.601->rec.709") ColorYUV(cont_y=5, cont_u=-10, cont_v=8, gamma_y=-15) Crop(4,0,-0,-0) McTemporalDenoise(settings="Medium") nnedi3_rpow2(2, cshift="spline36resize", fwidth=1280, fheight=720) Sharpen(0.7) Hysteria(strength=3.6, maxchg=26,lowthresh=12) Dehalo_alpha(rx=3, ry=3, darkstr=0.3, brightstr=0.3) Blur(0.8) return Last }
Similar Threads
-
Exact audio copy 1.3 crashes -access error violation unhandled exception
By str8arrow in forum AudioReplies: 7Last Post: 7th Jan 2017, 07:25 -
Virtualdub 'out-of-bounds memory access(access violation) when hardsubbing'
By luisppk in forum Video ConversionReplies: 6Last Post: 3rd Oct 2016, 22:47 -
"403 Client error: Access denied" problem
By ekekezz in forum Video Streaming DownloadingReplies: 2Last Post: 31st Jul 2015, 18:28 -
AvsPomd: Script error: there is no function named "ffinfo"? pls help?
By mrdodoubler in forum Newbie / General discussionsReplies: 4Last Post: 28th Jul 2014, 05:17 -
Access Violation error with MKVExtractGUI2...
By Lathe in forum Newbie / General discussionsReplies: 2Last Post: 19th Jan 2013, 12:41