VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Ive been using John Meyers 2024 restoration script which utilizes gammac for color correction I've been using 64 bit and for the most part the cleaning part works but I want to play around with gammac as well but when I try and run the script it says "no function named GMx" if someone has gammac working for 64 bit could send me their plugin folder which I believe is the issue that would be much appreciated
    Quote Quote  
  2. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Gammac to you too! This for 64bit AVISynth+.
    Image Attached Files
    Quote Quote  
  3. I can't remember what I posted back then, but these are the current GamMac values that I start with:

    Code:
    #COLOR AND LEVELS PARAMATERS
    #----------------------------------------------------------------------------------------------------------------------------
    saturation = 1.0                                  #for all outputs
    gamma      = 1.0                                  #for all outputs 
    
    #GamMac Parameters
    LockChan   = 1                                     #(0=red channel)
    LockVal    = 128.0                                 #default 128 -- Used when LockChan = -1 (for flicker)
    Scale      = 2                                     #Fred recommended 2 instead of 1
    RedMul     = 1.0
    GrnMul     = 1.0
    BluMul     = 1.0
    Th         = 0.1
    GMx        = 0
    GMy        = 0
    GMw        = 0
    GMh        = 0
    LOTH = 0.2
    HITH = 0.2
    OMIN =   0                                         #limiting the output a little bit makes it a little 'softer' to look at
    OMAX = 255
    Al2  =  20
    autolev_bord1 = 50
    borderV=10 borderH=10
    As you know, it was StainlessS over in doom9.org who created the GamMac script. There is at least one very long thread about it over there, and there are other threads as well. You may get some good ideas by reading and/or posting in those threads.

    The LockChan parameter is the one you want to play around with because color shifts in film are often caused by one of the three color layers fading faster than the others. If you try to lock onto something that is barely there, you may get pretty bad results.

    I still do most of my color correcting manually, using the color corrector in Vegas. This is because, without something like artificial intelligence, you often cannot fully recover the original color balance and you therefore have to resort to using your own judgment as you fiddle with each channel level. However, sometimes you still can't get a pleasing result and, in these cases, I sometimes find that GamMac can get a little closer to a pleasing result by applying it to footage I have already manually color corrected. However, if you just use it on its own, you often get some weird results.

    The following shows a typical result using manual color balancing. As you can see, there is no magic, and the colors are not lifelike and vivid, but it sure is a lot better than the original faded film. This is a long clip, but I've queued it up so it will start playing at the example where color correction is the main restoration feature (as opposed to motion compensation, dirt removal, sharpening, etc.):

    John Meyer Restoration Example
    Quote Quote  
  4. Originally Posted by johnmeyer View Post
    I can't remember what I posted back then, but these are the current GamMac values that I start with:

    Code:
    #COLOR AND LEVELS PARAMATERS
    #----------------------------------------------------------------------------------------------------------------------------
    saturation = 1.0                                  #for all outputs
    gamma      = 1.0                                  #for all outputs 
    
    #GamMac Parameters
    LockChan   = 1                                     #(0=red channel)
    LockVal    = 128.0                                 #default 128 -- Used when LockChan = -1 (for flicker)
    Scale      = 2                                     #Fred recommended 2 instead of 1
    RedMul     = 1.0
    GrnMul     = 1.0
    BluMul     = 1.0
    Th         = 0.1
    GMx        = 0
    GMy        = 0
    GMw        = 0
    GMh        = 0
    LOTH = 0.2
    HITH = 0.2
    OMIN =   0                                         #limiting the output a little bit makes it a little 'softer' to look at
    OMAX = 255
    Al2  =  20
    autolev_bord1 = 50
    borderV=10 borderH=10
    As you know, it was StainlessS over in doom9.org who created the GamMac script. There is at least one very long thread about it over there, and there are other threads as well. You may get some good ideas by reading and/or posting in those threads.

    The LockChan parameter is the one you want to play around with because color shifts in film are often caused by one of the three color layers fading faster than the others. If you try to lock onto something that is barely there, you may get pretty bad results.

    I still do most of my color correcting manually, using the color corrector in Vegas. This is because, without something like artificial intelligence, you often cannot fully recover the original color balance and you therefore have to resort to using your own judgment as you fiddle with each channel level. However, sometimes you still can't get a pleasing result and, in these cases, I sometimes find that GamMac can get a little closer to a pleasing result by applying it to footage I have already manually color corrected. However, if you just use it on its own, you often get some weird results.

    The following shows a typical result using manual color balancing. As you can see, there is no magic, and the colors are not lifelike and vivid, but it sure is a lot better than the original faded film. This is a long clip, but I've queued it up so it will start playing at the example where color correction is the main restoration feature (as opposed to motion compensation, dirt removal, sharpening, etc.):

    John Meyer Restoration Example
    Appreciate it John!
    I too mostly do manual corrections but it's nice to be able to even if it's only 50% of the time get good results automatically!
    if you're curious this is the script I'm using whenever I'm not using yours, it's not as multipurpose but it does what I need it too and it's relatively simple.

    HTML Code:
    ### input file  -------------------------------------------------------------------------------------------
    input="C:\users\Videos\film.mkv" 
    ### play speed-------------------------------------------------------------------------------------------
    play_speed="ntsc_film"                                                    
    #    "ntsc_film" 23.976                                                                                                                 
    #    "film" 24.0 
    #    "pal_film" 25.0 
    ### cleaning Parameters ---------------------------------------------------------------------------
    do_sharpen	= false
    Rgr				= true
    Rgr_val1		= 10         
    Rgr_val2		= 20        
    BlkSz			= 8         
    OLap				= 4         
    Pel				= 2
    Tm				= true
    Bblur			= 0.6
    ThSAD			= 10000
    ThSAD2			= 10000
    RadT				= 1
    edgemask_binarize	= 52
    darkmask_binarize	= 5
    dark2Brt			=	0.85
    dark2BrtLimit  	=	0.86 
    ### GamMac Parameters---------------------------------------------------------------------------
    Show   = False
    LockChan  = 1                                     #(0=red channel)
    LockVal    = 128.0                                 #default 128 -- Used when LockChan = -1 (for flicker)
    Scale       = 1                                        #Fred recommended 2 instead of 1
    RedMul    = 1
    GrnMul    = 1
    BluMul     = 1
    Th           = 0.1
    GMx        = 0
    GMy        = 0
    GMw       = 0
    GMh        = 0
    LOTH = 0.20
    HITH = 0.20
    OMIN = 0                                         #limiting the output a little bit makes it a little 'softer' to look at
    OMAX = 255
    Al2  =  20
    autolev_bord1 = 50
    borderV=10 borderH=10
    ### clip----------------------------------------------------------------------------------------------------
    clip=LibavSource2(input).KillAudio().AssumeFPS(play_speed)
    ### cleaning---------------------------------------------------------------------------------------------
    clean=clip.ConvertToYV12().SDR_Spotless_DeltaRestore(\
        do_sharpen=do_sharpen,\
        Rgr=Rgr,\
        Rgr_val1=Rgr_val1,\
        Rgr_val2=Rgr_val2,\
        BlkSz=BlkSz,\
        OLap=OLap,\
        Pel=Pel,\
        Tm=Tm,\
        Bblur=Bblur,\
        ThSAD=ThSAD,\
        ThSAD2=ThSAD2,\
        RadT=RadT,\
        edgemask_binarize=edgemask_binarize,\
        darkmask_binarize=darkmask_binarize,\
        dark2Brt=dark2Brt,\
        dark2BrtLimit=dark2BrtLimit\
    )
    ### GamMac--------------------------------------------------------------------------------------------
    colcor=clip.ConvertToRGB24().GamMac(\
        verbosity=4,\
        Show=Show,\
        LockChan=LockChan,\
        Th=Th,\
        LockVal=LockVal,\
        Scale=Scale,\
        RedMul=RedMul,\
        GrnMul=GrnMul,\
        BluMul=BluMul,\
        loTh=LOTH,\
        hiTh=HITH,\
        oMin=OMIN,\
        oMax=OMAX,\
        x=GMx,\
        y=GMy,\
        w=GMw,\
        h=GMh\
    ).converttoYV12()
    ### GamMac,Cleaning-------------------------------------------------------------------------------
    CC=clip.ConvertToYV12().SDR_Spotless_DeltaRestore(\
        do_sharpen=do_sharpen,\
        Rgr=Rgr,\
        Rgr_val1=Rgr_val1,\
        Rgr_val2=Rgr_val2,\
        BlkSz=BlkSz,\
        OLap=OLap,\
        Pel=Pel,\
        Tm=Tm,\
        Bblur=Bblur,\
        ThSAD=ThSAD,\
        ThSAD2=ThSAD2,\
        RadT=RadT,\
        edgemask_binarize=edgemask_binarize,\
        darkmask_binarize=darkmask_binarize,\
        dark2Brt=dark2Brt,\
        dark2BrtLimit=dark2BrtLimit\
    ).ConvertToRGB24().GamMac(\
        verbosity=4,\
        Show=Show,\
        LockChan=LockChan,\
        Th=Th,\
        LockVal=LockVal,\
        Scale=Scale,\
        RedMul=RedMul,\
        GrnMul=GrnMul,\
        BluMul=BluMul,\
        loTh=LOTH,\
        hiTh=HITH,\
        oMin=OMIN,\
        oMax=OMAX,\
        x=GMx,\
        y=GMy,\
        w=GMw,\
        h=GMh\
    ).converttoYV12()
    ### compare---------------------------------------------------------------------------------------------
    comp=StackVertical(clip,colcor,cc)
    
    Return comp
    Last edited by fygk; 14th Nov 2024 at 18:47.
    Quote Quote  



Similar Threads

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