VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Code:
    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
    }
    how would i add a third section to this script if i want to add a third filter set to replace the last 100 frames

    lets say this script

    Code:
    QTGMC(FPSDivisor=2)
    nnedi3_rpow2(2, cshift="spline36resize", fwidth=1280, fheight=720)
    Quote Quote  
  2. 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.
    Quote Quote  
  3. 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)
    Quote Quote  
  4. 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.
    Quote Quote  
  5. Originally Posted by jagabo View Post
    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)
    There are credits after the trimmed part
    That need interlacing fix so lets say 100 frames after the rrimmed part
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!