how would i add a third section to this script if i want to add a third filter set to replace the last 100 framesCode:Mpeg2Source("I:\VIDEO_TS.d2v", CPU2="ooooxx") va = fa() vb = fb() ReplaceFramesSimple(va, vb, mappings="[33951 34081][34501 34783][35214 35349][35956 36318][39025 39152][40699 40771]") Trim(0,43162) return(last) function fa(clip C) { C TFM() ColorMatrix(mode="rec.601->rec.709") ColorYUV(cont_y=15, cont_u=80, cont_v=35,gamma_y=-35) McTemporalDenoise(settings="Medium") McTemporalDenoise(settings="High") Hysteria(strength=1.0, maxchg=30,lowthresh=4) nnedi3_rpow2(2, cshift="spline36resize", fwidth=1280, fheight=720) Sharpen(0.7) Hysteria(strength=1.0, maxchg=35,lowthresh=2) Dehalo_alpha(rx=3, ry=3, darkstr=0.4, brightstr=0.4) Blur(0.6) aWarpSharp(depth=6) return Last } function fb(clip C) { C QTGMC(FPSDivisor=2) ColorMatrix(mode="rec.601->rec.709") ColorYUV(cont_y=15, cont_u=80, cont_v=35,gamma_y=-35) McTemporalDenoise(settings="High") Hysteria(strength=1.0, maxchg=30,lowthresh=4) nnedi3_rpow2(2, cshift="spline36resize", fwidth=1280, fheight=720) Sharpen(0.7) Hysteria(strength=1.0, maxchg=35,lowthresh=2) Dehalo_alpha(rx=3, ry=3, darkstr=0.4, brightstr=0.4) Blur(0.6) aWarpSharp(depth=6) return Last }
lets say this script
Code:QTGMC(FPSDivisor=2) nnedi3_rpow2(2, cshift="spline36resize", fwidth=1280, fheight=720)
+ Reply to Thread
Results 1 to 5 of 5
-
-
Mpeg2Source("I:\VIDEO_TS.d2v", CPU2="ooooxx")
va = fa()
vb = fb()
ReplaceFramesSimple(va, vb, mappings="[33951 34081][34501 34783][35214 35349][35956 36318][39025 39152][40699 40771]")
#Trim(0,43162)
Trim(0,43062) #100 fewer frames than originally
#return(last)##Comment that out so it doesn't get used
function fa(clip C)
{
C
TFM()
ColorMatrix(mode="rec.601->rec.709")
ColorYUV(cont_y=15, cont_u=80, cont_v=35,gamma_y=-35)
McTemporalDenoise(settings="Medium")
McTemporalDenoise(settings="High")
Hysteria(strength=1.0, maxchg=30,lowthresh=4)
nnedi3_rpow2(2, cshift="spline36resize", fwidth=1280, fheight=720)
Sharpen(0.7)
Hysteria(strength=1.0, maxchg=35,lowthresh=2)
Dehalo_alpha(rx=3, ry=3, darkstr=0.4, brightstr=0.4)
Blur(0.6)
aWarpSharp(depth=6)
return Last
}
function fb(clip C)
{
C
QTGMC(FPSDivisor=2)
ColorMatrix(mode="rec.601->rec.709")
ColorYUV(cont_y=15, cont_u=80, cont_v=35,gamma_y=-35)
McTemporalDenoise(settings="High")
Hysteria(strength=1.0, maxchg=30,lowthresh=4)
nnedi3_rpow2(2, cshift="spline36resize", fwidth=1280, fheight=720)
Sharpen(0.7)
Hysteria(strength=1.0, maxchg=35,lowthresh=2)
Dehalo_alpha(rx=3, ry=3, darkstr=0.4, brightstr=0.4)
Blur(0.6)
aWarpSharp(depth=6)
return Last
}
Y=Last
Z=Whateversource()###MPEG2Source("ThirdSection.d2v ")?
Z=Z.QTGMC(FPSDivisor=2).nnedi3_rpow2(2, cshift="spline36resize", fwidth=1280, fheight=720)
Y+Z
That should be one way, out of several I can think of.Last edited by manono; 22nd May 2017 at 19:00.
-
It's not clear to me what you're asking for. 100 frames before the trim point (43064 to 43163)? 100 frames after the trim point (43164 to 43263)? And with 100 frames taken from where? Maybe this is what you want:
Code:Mpeg2Source("I:\VIDEO_TS.d2v", CPU2="ooooxx") va = fa() vb = fb() vc = fc() ReplaceFramesSimple(va, vb, mappings="[33951 34081][34501 34783][35214 35349][35956 36318][39025 39152][40699 40771]") ReplaceFramesSimple(last, vc, mappings="[43163 43262]") Trim(0,43262) return(last)
-
Oh, right. It really is unclear, isn't it? I was thinking he wanted to remove the last 100 frames of the original video and replace them with something else. Maybe he's just asking how to filter those last 100 frames differently.
I wouldn't ever create a script as convoluted and unintuitive as this one is anyway, so I'll retire. -
Similar Threads
-
How to get list of MP4 track properties / language (by scripting)?
By SergeLivesInGhana in forum MacReplies: 2Last Post: 25th Sep 2016, 17:33 -
[AviSynth] Scripting: how to choose an audio track?
By Freodon in forum Video ConversionReplies: 2Last Post: 11th Dec 2015, 08:06 -
Announcing MovingImages: Scripting video editing for OS X Yosemite
By ktam in forum Latest Video NewsReplies: 1Last Post: 12th Sep 2015, 07:28 -
Vegas Pro Scripting : PNG Image Sequence import problem
By CyberOtter in forum EditingReplies: 20Last Post: 16th Oct 2013, 18:17 -
Scripting options (shell, applescript, etc) for batch conversions
By roboboticus in forum MacReplies: 6Last Post: 19th Oct 2012, 20:20