Soichiro's VapourSynth Functions Collection
Project description
soifunc
Vapoursynth scripts that might be useful to someone
Installation
Arch Linux
Install from AUR
Other
First install the required plugins which are not available in pip:
Install from pip:
pip install soifunc
Or the latest git version:
pip install git+https://github.com/shssoichiro/soifunc.git
Usage
Any of the functions will require an import soifunc
prior to where they are used.
good_resize
clip = soifunc.good_resize(clip, 1920, 1080)
Resizes a clip to the specified dimensions using a high quality method.
For upscaling, luma is resized using nnedi3_resample
.
For downscaling, luma is resized using SSIM_downsample
.
Chroma is always resized using Spline36
.
If this filter causes your video to produce a blank output, see this issue: https://github.com/HomeOfVapourSynthEvolution/VapourSynth-TCanny/issues/14
Additional Params:
gpu
: Whether to use the OpenCL version of supported dependencies. Defaults to auto-detect.
retinex_deband
clip = soifunc.retinex_deband(clip, threshold = 16 [, showmask = False])
High quality debanding using a retinex mask, designed to preserve details in both light and dark areas.
threshold
controls debanding strength. 16
is a reasonable starting point. Increase as needed until satisfied.
showmask
is an optional debugging parameter, setting this to True
will output the mask that will be used to preserve edges.
Note that this debander does not automatically add grain.
If you need to add grain before encoding, use vsdeband.AddNoise
.
If you're using AV1 grain synthesis, you do not need to add grain before encoding.
MCDenoise
Applies motion compensation to a denoised clip to improve detail preservation. Credit to Clybius for creating this code.
Example usage:
import soifunc
import dfttest2
import functools # functools is built in to python
denoiser = functools.partial(dfttest2.DFTTest, sigma=1.5, backend=dfttest2.Backend.CPU)
clip = soifunc.MCDenoise(clip, denoiser)
Params:
denoiser
: A function defining how to denoise the motion-compensated frames. Denoiser params can be added usingfunctools.partial
.prefilter
: An optional prefiltered input clip to enable better searching for motion vectors
MagicDenoise
Clybius's magic denoise function.
Uses dark magic to denoise heavy grain from videos. Zero parameters, only magic.
Params:
clip
: The input video to apply deinterlacing togpu
: Whether to use the OpenCL version of supported dependencies.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file soifunc-0.7.0.tar.gz
.
File metadata
- Download URL: soifunc-0.7.0.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.9.3-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a6d8243fdc05ce40343be18fd5e6134ef0bb10eb54768ce22ba974a061c42ee |
|
MD5 | a642700a25a64d29ee167522cdb0b42d |
|
BLAKE2b-256 | 864706ddd9c67632719ec968652eb6e8fc66b35998c73178d6343ab43a4d0760 |
File details
Details for the file soifunc-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: soifunc-0.7.0-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.9.3-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c9d1b6455ffb89acebb6b937ffdb5de014d474ea91fedcc5b11cecd2d594a69 |
|
MD5 | a2f747aed5370581a7b7c830db7876a0 |
|
BLAKE2b-256 | 5c12c4a2cc672241d092e4dfbf75ff2b8af4a31346cc6b61b9f92e5ef9c80bac |