VideoHelp Forum
+ Reply to Thread
Results 1 to 1 of 1
Thread
  1. Hello, and Happy Saturday . I'm wanting to upscale my Speed Racer DVD's and was looking for help to improve the encodes' sharpness. Using an updated version of the script I finally settled on for my Simpsons DVD's, this is my current script:

    Code:
    DGDecode_mpeg2source("Path")
    ### Deinterlace-Match Fields-Decimate ###
    Function FieldMatch(Clip C) {
        PP = C.DuplicateFrame(0)
        CC = C
        NN = C.DeleteFrame(0)
        P2 = PP.SeparateFields
        C2 = CC.SeparateFields
        N2 = NN.SeparateFields
        PC = Interleave(P2.SelectEven,C2.SelectOdd).Weave
        CP = Interleave(C2.SelectEven,P2.SelectOdd).Weave
        CN = Interleave(C2.SelectEven,N2.SelectOdd).Weave
        NC = Interleave(N2.SelectEven,C2.SelectOdd).Weave
        Deint = CC.QTGMC.SelectEven
        SSS="""
            \   !CC.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? CC
            \ : !NN.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? NN
            \ : !CN.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? CN
            \ : !NC.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? NC
            \ : !PP.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? PP
            \ : !CP.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? CP
            \ : !PC.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? PC
            \ : Deint
        """
        Args="CC,NN,CN,NC,PP,CP,PC,Deint"
        Return CC.GScriptClip(SSS,Args=Args,Local=True)
    }
    TFM(Order=-1,Mode=5,PP=2,Clip2=FieldMatch(),Slow=2,MChroma=False,UBSCO=False,CThresh=12,Chroma=True)
    TDecimate(Mode=1)
    ### Fix Line-Doubled Fields ###
    NNEDI3(Field=-2)
    Merge(SelectEven(),SelectOdd())
    ### Color Conversion ###
    ColorMatrix(Mode="Rec.601->Rec.709")
    ### Color Adjustment ###
    MergeChroma(aWarpSharp2(Depth=16))
    ### Crop ###
    Crop(8,0,-8,0)
    ### Gibbs Noise Block ###
    Edge=MT_Edge("prewitt",ThY1=20,ThY2=40).RemoveGrain(17)
    Mask=MT_Logic(Edge.MT_Expand().MT_Expand().MT_Expand().MT_Expand(),Edge.MT_Inflate().MT_Inpand(),"xor").Blur(1.0)
    MT_Merge(Minblur(),Mask,Luma=True)
    ### Deblock ###
    vsDeblockPP7()
    ### Overall Temporal Denoise ###
    ConvertToYUV444.ConvertBits(32)
    Anime4KCPP(ACNet=True,HDN=True,HDNLevel=2)
    ConvertToYUV420.ConvertBits(16)
    ### Resize ###
    NNEDI3_RPow2(2,CShift="Spline36Resize",FWidth=960,FHeight=720)
    aWarpSharp2(Depth=5)
    Sharpen(0.2)
    ### Darken-Thin Lines ###
    FastLineDarkenPlus(Strength=24,Prot=6)
    aWarpSharp2(Blur=4,Type=1,Depth=8,Chroma=2)
    ### Deband ###
    Neo_F3KDB(Y=100,Cb=100,Cr=100,GrainY=0,GrainC=0)
    Given the source, I find the results surprisingly OK but was hoping for some help making the final output slightly sharper (it looks a bit too blurry to my eyes). I fiddled about with the ### Darken-Thin Lines ### section of the script, trying various settings, but I couldn't find a better combination. I'd certainly be open to a different line sharpener-darkener, and would appreciate any other suggestions for improvement, too. Thanks. Here's a test clip.
    Last edited by LouieChuckyMerry; 27th Jul 2024 at 20:34. Reason: [/code], Not [code/]; Fixed Typing Errors
    Quote Quote  



Similar Threads

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