2016-12-31, 12:31 AM
Code:
############################################################################################
### GrainPlate 1.0: add real grains to your clip! ###
### ###
### Usage: GrainPlate(clip, strenght) ###
### where strenght range goes from 0 (clip untouched) to 1 (max strenght) ###
### ###
### Just add your own grain plate, there are many free to download over the web. ###
### Hints: NEVER upscale/downscale a grain plate; choose one with the same size of your ###
### clip, or bigger; choose only REAL film grain, and not recreated. ###
### ###
### AviSynth script made by spoRv (http://blog.sporv.com) - Created: 2014-06-18 ###
### Updated: 2016-12-29 ###
### ###
### Creative Commons 4,0 - Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ###
### Link to the licence page: https://creativecommons.org/licenses/by-sa/4.0/ ###
############################################################################################
function grainplate (clip clip, "strength") {
strength = default( strength, 0.25)
grain=avisource("putyourowngrainplatefilehere.avi")\
.crop(0,0,clip.width,clip.height).loop.trim(0,clip.framecount-1)
return overlay(clip.tweak(bright=1),grain,mode="softlight",opacity=strength) }
Warning: check the brightness settings with the grain plate you decide to use; it must be raised to be the same of the source without grain plate applied!