Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th December 2016, 17:20   #1  |  Link
spoRv
Registered User
 
Join Date: Nov 2016
Posts: 151
GrainPlate function

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) }
To do: add a parameter that let you choose between several available grain plates.

Enjoy it, and Happy New Year to everyone!
spoRv is offline   Reply With Quote
Reply

Tags
grain, grain plate, grainplate, grainplates, grains

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:48.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.