All Projects → HomeOfVapourSynthEvolution → VapourSynth-AddGrain

HomeOfVapourSynthEvolution / VapourSynth-AddGrain

Licence: GPL-3.0 license
AddGrain filter for VapourSynth

Programming Languages

C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to VapourSynth-AddGrain

havsfunc
Holy's ported AviSynth functions for VapourSynth
Stars: ✭ 87 (+357.89%)
Mutual labels:  vapoursynth
VapourSynth-TCanny
TCanny filter for VapourSynth
Stars: ✭ 24 (+26.32%)
Mutual labels:  vapoursynth
vs-mlrt
Efficient ML Filter Runtimes for VapourSynth (with built-in support for waifu2x, DPIR, RealESRGANv2, and Real-CUGAN)
Stars: ✭ 34 (+78.95%)
Mutual labels:  vapoursynth
MPV lazy
🔄 mpv player 播放器折腾记录 windows conf ; 中文注释配置 快速帮助萌新入门 ; mpv-lazy 懒人包 win10 x64
Stars: ✭ 615 (+3136.84%)
Mutual labels:  vapoursynth
vs-realesrgan
Real-ESRGAN function for VapourSynth
Stars: ✭ 27 (+42.11%)
Mutual labels:  vapoursynth
lvsfunc
lvsfunc, a collection of LightArrowsEXE's VapourSynth functions and wrappers
Stars: ✭ 51 (+168.42%)
Mutual labels:  vapoursynth
x265-encoder
x265EncoderGUI
Stars: ✭ 36 (+89.47%)
Mutual labels:  vapoursynth
encode-scripts
Scripts of our encodes
Stars: ✭ 69 (+263.16%)
Mutual labels:  vapoursynth
vapoursynth-preview
Preview for VapourSynth scripts
Stars: ✭ 68 (+257.89%)
Mutual labels:  vapoursynth
vs-dpir
DPIR function for VapourSynth
Stars: ✭ 26 (+36.84%)
Mutual labels:  vapoursynth
vs-basicvsrpp
BasicVSR++ function for VapourSynth
Stars: ✭ 33 (+73.68%)
Mutual labels:  vapoursynth
vapoursynth-portable-FATPACK
A (beginners) bundle with nearly all plugins, many usefull scripts and multiple editors. 64Bit only!
Stars: ✭ 74 (+289.47%)
Mutual labels:  vapoursynth
qvs
A simple GUI program for using VapourSynth/Avisynth Script previewed and encoded.
Stars: ✭ 34 (+78.95%)
Mutual labels:  vapoursynth
encode-scripts
Various scripts I use regarding encoding and stuff
Stars: ✭ 37 (+94.74%)
Mutual labels:  vapoursynth
yuuno
Yuuno = VapourSynth + Jupyter
Stars: ✭ 39 (+105.26%)
Mutual labels:  vapoursynth
kagefunc
A collection of Vapoursynth functions. kagefunc.py is the only relevant file for users
Stars: ✭ 44 (+131.58%)
Mutual labels:  vapoursynth
VSGAN
VapourSynth Single Image Super-Resolution Generative Adversarial Network (GAN)
Stars: ✭ 124 (+552.63%)
Mutual labels:  vapoursynth
VapourSynth-Super-Resolution-Helper
Setup scripts for ESRGAN/MXNet image/video upscaling in VapourSynth
Stars: ✭ 63 (+231.58%)
Mutual labels:  vapoursynth
staxrip
StaxRip is a video encoding app for Windows with a unrivaled feature set and usability.
Stars: ✭ 132 (+594.74%)
Mutual labels:  vapoursynth

AddGrain

AddGrain generates film like grain or other effects (like rain) by adding random noise to a video clip. This noise may optionally be horizontally or vertically correlated to cause streaking.

Ported from AviSynth plugin http://forum.doom9.org/showthread.php?t=111849

Usage

grain.Add(vnode clip[, float var=1.0, float uvar=0.0, float hcorr=0.0, float vcorr=0.0, int seed=-1, bint constant=False, int opt=0])
  • clip: Clip to process. Any format with either integer sample type of 8-16 bit depth or float sample type of 32 bit depth is supported.

  • var, uvar: The variance (strength) of the luma and chroma noise, 0 is disabled. uvar does nothing for GRAY and RGB formats.

  • hcorr, vcorr: Horizontal and vertical correlation, which causes a nifty streaking effect. Range 0.0-1.0.

  • seed: Specifies a repeatable grain sequence. Set to at least 0 to use.

  • constant: Specifies a constant grain pattern on every frame.

  • opt: Sets which cpu optimizations to use.

    • 0 = auto detect
    • 1 = use c
    • 2 = use sse2
    • 3 = use avx2
    • 4 = use avx512

The correlation factors are actually just implemented as exponential smoothing which give a weird side affect that I did not attempt to adjust. But this means that as you increase either corr factor you will have to also increase the stddev (grain amount) in order to get the same visible amount of grain, since it is being smooth out a bit.

Increase both corr factors can somewhat give clumps, or larger grain size.

And there is an interesting effect with, say, grain.Add(var=800, vcorr=0.9) or any huge amount of strongly vertical grain. It can make a scene look like it is raining.

Compilation

meson build
ninja -C build
ninja -C build install
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].