VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker or buy a VSO converter software :)
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. Member
    Join Date
    Oct 2016
    Location
    mexico
    Search Comp PM
    hello could help me improve this old anime
    I want to make a dvdrip but the result is disastrous. I'm using MeGUI

    this is a sign of dvds
    https://mega.nz/#!5YE2kQIB!Hs5gS-1FHD9-GaUSFsyvNDkqGvZri9-KqJqw9buzfp4

    someone will have a script to improve
    Thank you .
    Quote Quote  
  2. Originally Posted by fulmanful View Post
    the result is disastrous
    In what way? What do you want to improve?
    Quote Quote  
  3. Member
    Join Date
    Oct 2016
    Location
    mexico
    Search Comp PM
    Originally Posted by jagabo View Post
    Originally Posted by fulmanful View Post
    the result is disastrous
    In what way? What do you want to improve?

    I want to achieve dvdrip like this

    https://mega.nz/#!NAVVwKJI!JrG9n1H-KhdwR1BFoz8G1pvz5iApWEJol8AbxEnCf6c

    I found this on the web dvdrip .. is good ..
    It looks good .. but .. the light appears to flicker,
    it's dark and brightens suddenly
    I want it to look like this but without the light changes.. but I am new to using filters. so I ask for help
    Quote Quote  
  4. I think the noise reduction is way overdone. All the intentional grain is gone and some details have gone with it. But if you really want something like that:

    Code:
    Mpeg2Source("sample.d2v", CPU2="ooooxx", Info=3) 
    
    TFM(d2v="D:\Downloads\sample.d2v") 
    TDecimate() 
    
    # white balance
    ColorYUV(cont_y=60, off_y=15)
    brights = ColorYUV(off_u=10, off_v=-4)
    darks = ColorYUV(off_u=-2, off_v=1)
    Overlay(darks, brights, mask=ColorYUV(cont_y=100))
    
    # convert to HD colors
    ColorMatrix(mode="rec.601->rec.709")
    
    Dehalo_Alpha(rx=1, ry=3) #reduce oversharpening halos on Y axis
    MCTemporalDenoise(settings="high") # reduce noise and grain
    
    #merge duplicate frames
    Dup(threshold=3, blend=true)
    
    # upscale
    aWarpSharp(depth=5)
    Sharpen(0.2)
    nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1280, fheight=960)
    aWarpSharp(depth=5)
    Sharpen(0.3)
    I made some compromise levels adjustments and white balance adjustments. The automatic gain pumping is going to be hard to deal with. You could try ColorYUV(autogain=true) but that's likely to cause more problems than it's going to fix. A little deshaking might help too.
    Quote Quote  
  5. Member
    Join Date
    Oct 2016
    Location
    mexico
    Search Comp PM
    thanks for the help friend , I did not know how to use MCTemporalDenoise
    not how to use .avsi in megui
    replaces it hqdn3d use it well:

    LoadPlugin("C:\...\nnedi3.dll")

    LoadPlugin("C:\..\aWarpSharp.dll")
    LoadPlugin("C:\...\Dup.dll")
    LoadPlugin("C:\...\hqdn3d\hqdn3d.dll")
    LoadPlugin("C:\...\RgTools.dll")
    LoadPlugin("C:\...\mt_masktools.dll")
    LoadPlugin("C:\...\tivtc_20071121\TIVTC\TIVTC.dll" )
    LoadPlugin("D:\...\DGDecode.dll")
    DGDecode_mpeg2source("C:\...\sample.d2v", info=3)
    LoadPlugin("D:\...\avisynth_plugin\ColorMatrix.dll ")
    ColorMatrix(hints=true, threads=0)
    #deinterlace
    #crop
    LanczosResize(656,480) # Lanczos (Sharp)
    #denoise



    TFM(d2v="C:\...\sample.d2v")
    TDecimate()

    # white balance
    ColorYUV(cont_y=60, off_y=15)
    brights = ColorYUV(off_u=10, off_v=-4)
    darks = ColorYUV(off_u=-2, off_v=1)
    Overlay(darks, brights, mask=ColorYUV(cont_y=100))

    # convert to HD colors
    ColorMatrix(mode="rec.601->rec.709")



    function DeHalo_alpha(clip clp, float "rx", float "ry", float "darkstr", float "brightstr", float "lowsens", float "highsens", float "ss")
    {
    rx = default( rx, 2.0 )
    ry = default( ry, 2.0 )
    darkstr = default( darkstr, 1.0 )
    brightstr = default( brightstr, 1.0 )
    lowsens = default( lowsens, 50 )
    highsens = default( highsens, 50 )
    ss = default( ss, 1.5 )

    LOS = string(lowsens)
    HIS = string(highsens/100.0)
    DRK = string(darkstr)
    BRT = string(brightstr)
    ox = clp.width()
    oy = clp.height()
    uv = 1
    uv2 = (uv==3) ? 3 : 2

    halos = clp.bicubicresize(m4(ox/rx),m4(oy/ry)).bicubicresize(ox,oy,1,0)
    are = mt_lutxy(clp.mt_expand(U=uv,V=uv),clp.mt_inpand(U= uv,V=uv),"x y -","x y -","x y -",U=uv,V=uv)
    ugly = mt_lutxy(halos.mt_expand(U=uv,V=uv),halos.mt_inpan d(U=uv,V=uv),"x y -","x y -","x y -",U=uv,V=uv)
    so = mt_lutxy( ugly, are, "y x - y 0.001 + / 255 * "+LOS+" - y 256 + 512 / "+HIS+" + *" )
    lets = mt_merge(halos,clp,so,U=uv,V=uv)
    remove = (ss==1.0) ? clp.repair(lets,1,0)
    \ : clp.lanczosresize(m4(ox*ss),m4(oy*ss))
    \ .mt_logic(lets.mt_expand(U=uv,V=uv).bicubicresize( m4(ox*ss),m4(oy*ss)),"min",U=uv2,V=uv2)
    \ .mt_logic(lets.mt_inpand(U=uv,V=uv).bicubicresize( m4(ox*ss),m4(oy*ss)),"max",U=uv2,V=uv2)
    \ .lanczosresize(ox,oy)
    them = mt_lutxy(clp,remove,"x y < x x y - "+DRK+" * - x x y - "+BRT+" * - ?",U=2,V=2)

    return( them )
    function m4(float x) {return(x<16?16:int(round(x/4.0)*4))}
    Dehalo_Alpha(rx=1, ry=3) #reduce oversharpening halos on Y axis
    }


    hqdn3d(ls=8.0, cs=3.0, lt=6.0, ct=4.5, restart=7)

    #merge duplicate frames
    Dup(threshold=3, blend=true)

    # upscale
    aWarpSharp(depth=5)
    Sharpen(0.2)
    nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1280, fheight=960)
    aWarpSharp(depth=5)
    Sharpen(0.3)



    It is the result
    https://mega.nz/#!xUdxgaQQ!v-j1H7SUqwPDm0iZaD3Ea0fGaOMKyOfZcjxSumoc9_o
    Last edited by fulmanful; 24th Oct 2016 at 13:22.
    Quote Quote  
  6. MCTD does a little better noise reduction than hqdn3d.
    Image Attached Files
    Quote Quote  
  7. Member
    Join Date
    Oct 2016
    Location
    mexico
    Search Comp PM
    Yes thanks . use it well

    LoadPlugin("D:\...\TTempSmooth.dll")
    LoadPlugin("D:\...\mvtools2.dll")
    LoadPlugin("D:\...\gradfun2db.dll")
    LoadPlugin("D:\...\FFT3DFilter.dll")
    LoadPlugin("D:\...\ColorMatrix.dll")

    LoadPlugin("C:\...\nnedi3.dll")

    LoadPlugin("C:\...\aWarpSharp.dll")
    LoadPlugin("C:\...\Dup.dll")

    LoadPlugin("C:\...\RgTools.dll")
    LoadPlugin("C:\...\mt_masktools.dll")
    LoadPlugin("C:\...\TIVTC\TIVTC.dll")
    LoadPlugin("D:\...\DGDecode.dll")



    Import("D:\...\LSFmod.v1.8.avsi")
    Import("D:\...\MCTemporalDenoise.v1.4.20.avsi")

    DGDecode_mpeg2source("C:\...\sample.d2v")
    #deinterlace
    #crop
    LanczosResize(640,480) # Lanczos (Sharp)
    #denoise




    TFM(d2v="C:\Users\mane y ale\Desktop\hukoto no ken 10 bits\sample.d2v")
    TDecimate()

    # white balance
    ColorYUV(cont_y=60, off_y=15)
    brights = ColorYUV(off_u=10, off_v=-4)
    darks = ColorYUV(off_u=-2, off_v=1)
    Overlay(darks, brights, mask=ColorYUV(cont_y=100))

    # convert to HD colors
    ColorMatrix(mode="rec.601->rec.709")

    function DeHalo_alpha(clip clp, float "rx", float "ry", float "darkstr", float "brightstr", float "lowsens", float "highsens", float "ss")
    {
    rx = default( rx, 2.0 )
    ry = default( ry, 2.0 )
    darkstr = default( darkstr, 1.0 )
    brightstr = default( brightstr, 1.0 )
    lowsens = default( lowsens, 50 )
    highsens = default( highsens, 50 )
    ss = default( ss, 1.5 )

    LOS = string(lowsens)
    HIS = string(highsens/100.0)
    DRK = string(darkstr)
    BRT = string(brightstr)
    ox = clp.width()
    oy = clp.height()
    uv = 1
    uv2 = (uv==3) ? 3 : 2

    halos = clp.bicubicresize(m4(ox/rx),m4(oy/ry)).bicubicresize(ox,oy,1,0)
    are = yv12lutxy(clp.expand(U=uv,V=uv),clp.inpand(U=uv,V= uv),"x y -","x y -","x y -",U=uv,V=uv)
    ugly = yv12lutxy(halos.expand(U=uv,V=uv),halos.inpand(U=u v,V=uv),"x y -","x y -","x y -",U=uv,V=uv)
    so = yv12lutxy( ugly, are, "y x - y 0.001 + / 255 * "+LOS+" - y 256 + 512 / "+HIS+" + *" )
    lets = maskedmerge(halos,clp,so,U=uv,V=uv)
    remove = (ss==1.0) ? clp.repair(lets,1,0)
    \ : clp.lanczosresize(m4(ox*ss),m4(oy*ss))
    \ .logic(lets.expand(U=uv,V=uv).bicubicresize(m4(ox* ss),m4(oy*ss)),"min",U=uv2,V=uv2)
    \ .logic(lets.inpand(U=uv,V=uv).bicubicresize(m4(ox* ss),m4(oy*ss)),"max",U=uv2,V=uv2)
    \ .lanczosresize(ox,oy)
    them = yv12lutxy(clp,remove,"x y < x x y - "+DRK+" * - x x y - "+BRT+" * - ?",U=2,V=2)

    return( them )
    Dehalo_Alpha(rx=1, ry=3) #reduce oversharpening halos on Y axis

    }

    function m4(float x) {return(x<16?16:int(round(x/4.0)*4))}


    MCTemporalDenoise(settings="high") # reduce noise and grain

    #merge duplicate frames
    Dup(threshold=3, blend=true)

    # upscale
    aWarpSharp(depth=5)
    Sharpen(0.2)
    nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1280, fheight=960)
    aWarpSharp(depth=5)
    Sharpen(0.3)
    Quote Quote  
  8. Member
    Join Date
    Oct 2016
    Location
    mexico
    Search Comp PM
    one last question . if I use this script with this other dvds edition
    this line mark me error :


    TFM(d2v="...")
    TDecimate()

    the error is this : TFM: d2v frame does not match filter frame count
    Image Attached Files
    Quote Quote  
  9. By the way, there's no reason to resize to 640x480 at the start of the script. Just leave the video at 720x480. Resize only once as each resize may reduce the quality.

    The TFM error may be because you're using the wrong d2v file (I downloaded your new file and got no errors). Use the same d2v file used in Mpeg2Source. You don't really even need to include the d2v parameter. Just use TFM().
    Last edited by jagabo; 24th Oct 2016 at 17:06.
    Quote Quote  
  10. Member
    Join Date
    Oct 2016
    Location
    mexico
    Search Comp PM
    thanks for everything friend
    Quote Quote  



Similar Threads