Skip to main content

No project description provided

Project description

AddNoise

AddNoise generates film like noise 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.

Original https://github.com/HomeOfVapourSynthEvolution/VapourSynth-AddGrain ported from AviSynth plugin http://forum.doom9.org/showthread.php?t=111849

ref type=0 type=1 type=2 type=3 type=4

Installation

pip install vsnoise

Or Releases for Windows builds

Then it can be used normally

import vapoursynth as vs
vs.core.noise.Add(...)

Usage

noise.Add(vnode clip[, int type=0, float var=1.0, float uvar=0.0, float hcorr=0.0, float vcorr=0.0, float xsize = 2.0, float ysize = 2.0, int seed=-1, int constant=False, int every=1, 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.

  • type: Type of noise.

    • 0 = Gaussian
    • 1 = Perlin
    • 2 = Simplex
    • 3 = Fractional Brownian Motion over simplex
    • 4 = Poisson
      • Use var to control "sensitivity"
      • Should be used for intensity (Y for YUV) or RGB
  • 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. Only for Gaussian noise. Range 0.0-1.0.

  • xsize, ysize: size of Perlin and Simplex noise. Less than 2 for Perlin may generate visible boundaries.

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

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

  • every: Specify the period of frames for each noise pattern.

  • 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 (noise amount) in order to get the same visible amount of noise, since it is being smooth out a bit.

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

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

Compilation

meson build
ninja -C build
ninja -C build install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vsnoise-1.2.1.tar.gz (275.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vsnoise-1.2.1-py3-none-win_amd64.whl (33.4 kB view details)

Uploaded Python 3Windows x86-64

vsnoise-1.2.1-py3-none-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

vsnoise-1.2.1-py3-none-musllinux_1_2_aarch64.whl (1.0 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

vsnoise-1.2.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (198.7 kB view details)

Uploaded Python 3manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

vsnoise-1.2.1-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (183.5 kB view details)

Uploaded Python 3manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

vsnoise-1.2.1-py3-none-macosx_11_0_arm64.whl (32.6 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

vsnoise-1.2.1-py3-none-macosx_10_13_x86_64.whl (36.8 kB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

Details for the file vsnoise-1.2.1.tar.gz.

File metadata

  • Download URL: vsnoise-1.2.1.tar.gz
  • Upload date:
  • Size: 275.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vsnoise-1.2.1.tar.gz
Algorithm Hash digest
SHA256 11e967bf80cb3ef27d72ffef91490726917456ff06ec8136b9ea03b386beb2f5
MD5 3c92ec71ed185c2183dd9f217e6b9c01
BLAKE2b-256 3d0c4d3beef2d8b936776bbcbfd24aafba01147ebd64d4a2413c2e75bf453e9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsnoise-1.2.1.tar.gz:

Publisher: pypipublish.yml on wwww-wwww/vs-noise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vsnoise-1.2.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: vsnoise-1.2.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vsnoise-1.2.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b94177e4b1550dc0b5694a33b57610434142fdb587847be6c687bc67ccd151bb
MD5 467a3ecc9f63c49bf0d6443857017205
BLAKE2b-256 465269c04600285321c33f66d73b13b803d95e954e4b787325cf651deb22be0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsnoise-1.2.1-py3-none-win_amd64.whl:

Publisher: pypipublish.yml on wwww-wwww/vs-noise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vsnoise-1.2.1-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for vsnoise-1.2.1-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 88a5f7384df67e513251cf117a94294a561af9503ac0b9a52c34dc43502e44d4
MD5 1e454bf18da425bf011559965e293006
BLAKE2b-256 6c46beb85c5c7a731767ce13b50ed78a1fbdffe721dbfde08d8eb63efc2ca2f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsnoise-1.2.1-py3-none-musllinux_1_2_x86_64.whl:

Publisher: pypipublish.yml on wwww-wwww/vs-noise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vsnoise-1.2.1-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for vsnoise-1.2.1-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 734f07ff5b4a9af08b9973ed096f2f01c180190898a07ac03d4a701538f01f14
MD5 d2378d93bdf77f289af792c9fc0db189
BLAKE2b-256 3184324036c8b37d1a4e20f814fbcda4d8ecac8e9e06c8d7d68ffdd8fa630d2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsnoise-1.2.1-py3-none-musllinux_1_2_aarch64.whl:

Publisher: pypipublish.yml on wwww-wwww/vs-noise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vsnoise-1.2.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vsnoise-1.2.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9aea4d9dcd5ce0be0952c72d59db849849893badbc9ea8c53ec692915175653c
MD5 994be8024cf5f9533f588975443f529a
BLAKE2b-256 094b1cfe5b86378bcec55636409687f678d6e4bdb2a12d3c43573b1e0e01ef63

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsnoise-1.2.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: pypipublish.yml on wwww-wwww/vs-noise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vsnoise-1.2.1-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for vsnoise-1.2.1-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a6f5a2c9dce26e363c701ff086ad1a6d0baf3df5e2092578f96991fd6a823e1b
MD5 75d756a1cf29f6a67b11764284ad5115
BLAKE2b-256 cfb3ddec7481b9b354c1a4fb2bd4eb52770f18dbaad11efedda9f4343e00454b

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsnoise-1.2.1-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: pypipublish.yml on wwww-wwww/vs-noise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vsnoise-1.2.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vsnoise-1.2.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57c27748ba34f4b4466e747c8fe76a759e402b363748b9cd197b506a01ad3bc7
MD5 dd0891eae6a4a68fae49e743b071e4a9
BLAKE2b-256 536cc7a2245f40b738784d6eb828ddb85f4acf6823c631286e2c3e55b0114ccb

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsnoise-1.2.1-py3-none-macosx_11_0_arm64.whl:

Publisher: pypipublish.yml on wwww-wwww/vs-noise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vsnoise-1.2.1-py3-none-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for vsnoise-1.2.1-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7cf2bb2572fee77eb1387adf2d54433032a61bd2b3b2c0a647759150b1c99f9e
MD5 7fa16f5bae72399bd14bd47088615619
BLAKE2b-256 cb5b41c55a938ab519ae112a36793876a4613e8f8c946c450ab8494050b1ed04

See more details on using hashes here.

Provenance

The following attestation bundles were made for vsnoise-1.2.1-py3-none-macosx_10_13_x86_64.whl:

Publisher: pypipublish.yml on wwww-wwww/vs-noise

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page