logo Sign In

Post #571455

Author
althor1138
Parent topic
Info: cleaning up dirty frames for scenes
Link to post in topic
https://originaltrilogy.com/post/id/571455/action/topic#571455
Date created
22-Mar-2012, 11:39 AM

3PO Speeder

Blue Milk

Tosche

Luke Biggs

Luke Leia Hoth

PW=OT

Here's the changes to the script that I made.  I'm only posting the parameter variables as the rest of the script shouldn't be messed with except to trim the clip to whatever frames you want to process. Obviously if you want a different resolution for the end product you'll have to change it from 720x576 to whatever you want.

 

 

# film restoration script by videoFred.
# version with frame interpolation
# modified 30 august 2010
# added removedirtMC() as suggested by John Meyer
# cleaning, degraining, resizing, stabilizing, sharpening, auto-levels and auto-white balance.
#=============================================================================================

film="PATH TO FILM" # source clip, please specify the full path here

#PARAMETERS
#----------------------------------------------------------------------------------------------------------------------------
result="results4" # specify the wanted output here

trim_begin=0  play_speed=24  #trim frames and play speed (PAL: 16.6666 or 18.75)

numerator= 24  #numerator for the interpolator (final frame rate)
denumerator= 1 #denumerator  example: 60000/1001= 59.94fps


#COLOR AND LEVELS PARAMATERS
#----------------------------------------------------------------------------------------------------------------------------
saturation=1.2   #for all outputs

gamma= 1.1 # for all outputs

blue= -0  red= -0  #manual color adjustment, when returning result3 or result4. Values can be positive or negative


black_level=0  white_level=255 output_black=0  output_white=255 # manual levels, when returning result4
 

#SIZE, CROP AND BORDERS PARAMETERS
#----------------------------------------------------------------------------------------------------------------------------
CLeft=0  CTop=0  CRight=0  CBottom=0  #crop values after Depan and before final resizing

W=720  H=576  #final size after cropping

bord_left=0  bord_top=0  bord_right=0  bord_bot=0  #720p= borders 150


#STABILISING PARAMETERS
#----------------------------------------------------------------------------------------------------------------------------
maxstabH=0
maxstabV=0 #maximum values for the stabiliser (in pixels) 20 is a good start value

est_left=40   est_top=40  est_right=40  est_bottom=40  est_cont=1.4  #crop and contast values for special Estimate clip


#CLEANING PARAMETERS
#--------------------------------------------------------------------------------------------------------------

dirt_blur= 0.1 # some blur before cleaning to avoid pixel artifacts
dirt_strength=80 # set this lower for clean films.


#DENOISING PARAMETERS
#----------------------------------------------------------------------------------------------------------------------------


denoising_strength= 2000  #denoising level of second denoiser: MVDegrainMulti()
denoising_frames= 3  #number of frames for averaging (forwards and backwards) 3 is a good start value
block_size= 16  #block size of MVDegrainMulti()
block_size_v= 16
block_over= 8  #block overlapping of MVDegrainMulti()




# FOUR STEP SHARPENING PARAMETERS
#--------------------------------------------------------------------------------------------------------------------------------

USM_sharp_ness1= 60   USM_radi_us1= 3  #first sharpening (UnsharpMask) after cleaning with removedirtMC()

USM_sharp_ness2= 30    USM_radi_us2=2   #second harpening (UnsharpMask) after cleaning with removedirtMC()

USM_sharp_ness3= 20    USM_radi_us3=1   #third sharpening (UnsharpMask) after degraining with MVDegrainMulti()


last_sharp= 0.4 #final sharpening step after interpolation

last_blur= 0.2 #this smooths out the heavy sharpening effects



#AUTO LEVELS PARAMETER
#--------------------------------------------------------------------------------------------------------------------------------
X=2   # X is a special parameter for reducing the autolevels effect on the whites
X2=2  # X2 is a special parameter for reducing the autolevels effect on the blacks




# END VARIABLES, BEGIN SCRIPT
#=================================================================================================================================