Skip to main content

vapoursynth-feel

GPU-accelerated filters in Vulkan for VapourSynth.

Primarily optimized for running on RDNA 3 with the RADV driver on Linux.

VapourSynth R80+ and a Vulkan 1.4 capable GPU are required.

pip install vapoursynth-feel

Performance

Filter Reference u16 f16 f32
Bilateral vszipcl 2626 / 740 (3.55x) 2642 / 754 (3.50x) 2616 / 473 (5.53x)
BM3D bm3dvk2 1096 / --- (0.00x) 1084 / 883 (1.23x) 1088 / 922 (1.18x)
DFTTest vszipcl 2011 / 854 (2.36x) 2019 / --- (0.00x) 1876 / 514 (3.65x)
EEDI3 eedi3vk2 2223 / 339 (6.56x) 2182 / 236 (9.25x) 2140 / 323 (6.62x)
EEDI3 (AA) eedi3vk2 186 / 34 (5.42x) 182 / 19 (9.39x) 139 / 31 (4.48x)
GaussBlur vszipcl 20161 / 1546 (13.04x) 18939 / 1599 (11.85x) 17597 / 948 (18.56x)
NLMeans knlmvk 1197 / 570 (2.10x) 1236 / 570 (2.17x) 1076 / 561 (1.92x)
NNEDI3 nnedi3vk 4666 / 2218 (2.10x) 4862 / 2269 (2.14x) 3967 / 1207 (3.29x)
WNNM vszip 1255 / --- (0.00x) 1247 / --- (0.00x) 1274 / 203 (6.27x)

Output of tools/benchmark.py --filter <filter> --format <u16|f16|f32> on an RX 7900 XTX with 1080p input.

Filters that do not use VapourSynth's GPU API include frame transfer time in their measurements.

Filters

Bilateral

A Bilateral filter is a non-linear, edge-preserving and noise-reducing smoothing filter for images. The intensity value at each pixel in an image is replaced by a weighted average of intensity values from nearby pixels. This weight can be based on a Gaussian distribution.

core.vsfeel.Bilateral(clip clip[,
    float[] sigma_spatial=3.0,      # spatial blur reach; per-plane, chroma default = sigma[0]/sqrt((1<<ssw)*(1<<ssh))
    float[] sigma_color=0.02,       # edge sensitivity: how different pixels may be to blend; depth-normalized
    int[]   radius,                 # per-plane blur window radius; default max(1, round(sigma_spatial*3))
    int     use_shared_memory=1,    # faster on-chip kernel while the window fits; falls back otherwise
    clip    ref,                    # guide clip: weights from ref, values from clip; same format, dimensions and frame count
    int     block_x, int block_y])  # optional keywords: GPU thread-block dims; auto-tuned when unset (32 x 8, x16 when radius > 12)

BM3D

BM3D is a block-matching and 3D collaborative filtering denoiser. Groups of similar blocks (across space and time) are stacked into 3D arrays, denoised together with a hard-thresholded 3D transform, and the overlapping estimates are aggregated into the output.

core.vsfeel.BM3D(clip clip[,
    clip    ref,                    # basic-estimate clip for the Wiener (final) pass
    float[] sigma=3.0,              # denoising strength per-plane; below FLT_EPSILON skips the plane
    int[]   block_step=8,           # per-plane block grid spacing, 1..8; smaller = fewer artifacts, slower
    int[]   bm_range=9,             # per-plane spatial search radius in pixels, 1..8192
    int[]   radius=0,               # per-plane temporal search radius in frames, 0..16 (0 = spatial only)
    int[]   ps_num=2,               # motion-predicted candidates seeding each temporal search, 1..8
    int[]   ps_range=4,             # search radius around each predicted candidate, in pixels, 1..8192
    float   th_mse,                 # matching threshold in 8-bit MSE units; default 400+80*sigma,
                                    #   200+10*sigma with a ref clip; 0 = reference block only
    bool    chroma=False,           # True = one joint 4:4:4 entry, whose groups come from luma
    int     extractor_exp=0,        # aggregation weight bias, 0..127; 0 = off, >= 3 = reproducible output
    int     matrix=2])              # color matrix (VapourSynth enum): 2 = by resolution (SD/HDS/UHD),
                                    #   100 = opponent (forced for RGB input)

chroma=True requires YUV444. The default matrix, 2, selects the color matrix from the clip's resolution (SD: smpte170m, HD: bt709, UHD: bt2020nc); it scales each plane's sigma by that plane's row norm and th_mse by the luma norm. RGB input is converted to the opponent color space internally and converted back on output; matrix is ignored for RGB. BM3Dv2 stays registered as an alias for scripts written against the old name.

Box

Box sampling treats each output pixel as a box over the source image and averages the source pixels inside it with equal weight, so every input pixel contributes. Downscaling with it gives a clean, smooth result, without the ringing or added sharpness a cubic kernel can introduce.

core.vsfeel.Box(clip clip[,
    int width,                      # output width; defaults to the input width
    int height])                    # output height; defaults to the input height

Any downscale ratio is supported. Omitting one dimension leaves that axis unchanged.

DFTTest

DFTTest is a 3D block-wise frequency-domain denoiser. Each 16x16 spatial block is stacked with temporally neighboring frames, transformed to the frequency domain, filtered, and transformed back with overlap-add. It reduces noise while preserving detail, with configurable spatial and temporal windowing and a choice of frequency-domain filter variants.

core.vsfeel.DFTTest(clip clip[,
    int     ftype=0,                # 0 = Wiener: mult by max((psd-sigma)/psd, 0) ** f0beta
                                    # 1 = hard threshold: zero the bin when psd < sigma
                                    # 2 = mult every bin by sigma
                                    # 3 = mult by sigma inside [pmin,pmax], else by sigma2
                                    # 4 = mult by sigma*sqrt(psd*pmax / ((psd+pmin)*(psd+pmax)))
    float   sigma=8.0,              # base denoising strength
    float   sigma2=8.0,             # ftype=3 only: strength outside [pmin,pmax]
    float   pmin=0.0,               # ftype=3/4 only: lower PSD bound
    float   pmax=500.0,             # ftype=3/4 only: upper PSD bound
    int     sbsize=16,              # spatial block size; must be 16 in this backend
    int     sosize=12,              # spatial overlap, 0..15; >50% needs (sbsize-sosize) | sbsize
    int     tbsize=3,               # temporal block size; ODD, 1..7 (1 = spatial only)
    int     swin=0,                 # spatial window, 0..11: 0=hanning 1=hamming 2=blackman
                                    #   3=4-term b-harris 4=kaiser-bessel 5=7-term b-harris
                                    #   6=flat top 7=rectangular 8=bartlett 9=bartlett-hann
                                    #   10=nuttall 11=blackman-nuttall
    int     twin=7,                 # temporal window, the same 0..11 set; default 7=rectangular
    float   sbeta=2.5,              # kaiser-bessel beta (swin=4 only)
    float   tbeta=2.5,              # kaiser-bessel beta (twin=4 only)
    int     zmean=1,                # subtract the windowed mean before filtering
    float   f0beta=1.0,             # ftype=0 exponent, > 0 (1.0 = Wiener, 0.5 = sqrt)
    int     ssystem=0,              # slocation scale: 0 = relative to block size, 1 = absolute
    float[] slocation,              # frequency-dependent sigma: [freq, sigma, freq, sigma, ...]
    float[] ssx,                    # slocation along the X axis only
    float[] ssy,                    # slocation along the Y axis only
    float[] sst,                    # slocation along time only
    int[]   planes])                # planes to process; default: all

EEDI3

EEDI3 is an edge-directed interpolator for deinterlacing, upscaling, and antialiasing. For each missing pixel it searches candidate connection angles between the neighboring lines, picks the one minimizing a cost functional over local neighborhoods, and interpolates along that direction so edges stay sharp instead of stair-stepping.

core.vsfeel.EEDI3(clip clip, int field[,   # and EEDI3H, same args, horizontal
    int     dh=False,               # double the interpolated axis (height for EEDI3, width for
                                    #   EEDI3H), keeping every source line
    int[]   planes,                 # planes to process; default: all
    float   alpha=0.2,              # 0..1 (alpha+beta <= 1): weight given to connecting similar
                                    #   neighborhoods. Larger = more lines/edges connected
    float   beta=0.25,              # 0..1: weight given to the vertical difference created by
                                    #   the interpolation. Larger = fewer edges connected
                                    #   (1.0 = no edge directedness at all)
    float   gamma=20.0,             # >= 0: penalizes changes in interpolation direction.
                                    #   Larger = smoother interpolation field
    int     nrad=2,                 # radius used for neighborhood similarity, 0..3
    int     mdis=20,                # max connection radius, 1..40; larger connects shallower
                                    #   lines, but costs speed and risks artifacts
    int     hp=0,                   # 1 = also search half-pel connections (slower, usually sharper)
    int     vcheck=2,               # 0..3: strength of the vertical-consistency check
    float   vthresh0=32.0,          # vcheck thresholds; all must be > 0 when vcheck > 0
    float   vthresh1=64.0,
    float   vthresh2=4.0,
    clip    sclip,                  # source for the vcheck comparison
    clip    mclip])                 # edge mask; fully-masked spans are skipped

field 2/3 are the double-rate variants (not allowed with dh=True).

GaussBlur

Gaussian blur is a smoothing filter that blends each pixel with its neighbors, weighting nearby pixels more heavily than distant ones according to a bell-shaped (Gaussian) curve. It is commonly used to soften an image or reduce noise.

core.vsfeel.GaussBlur(clip clip[,
    float[] sigma=0.5])             # blur strength; per-plane, chroma default = sigma[0]/sqrt((1<<ssw)*(1<<ssh))

NLMeans

Non-local means is a denoising filter that replaces every pixel with a weighted average of pixels across a search window, weighting them by the similarity of their surrounding patches. Searching across space and time suppresses noise while preserving detail.

core.vsfeel.NLMeans(clip clip[,
    int     d=1,                    # temporal radius; 0 = spatial only
    int     a=2,                    # search-window radius, 1..64
    int     s=4,                    # patch radius, 0..8
    float   h=1.2,                  # > 0: filtering strength
    int     wmode=0,                # weighting function of the patch distance x, 0..3:
                                    #   0 = exp(-x) | 1 = max(1-x, 0)
                                    #   2 = max(1-x, 0)**2 | 3 = max(1-x, 0)**8
    float   wref=1.0,               # >= 0: weight of the pixel itself
    string  channels="auto",        # planes to process, jointly for YUV/RGB; auto picks by format
    clip    rclip])                 # weights computed from rclip, values from clip

channels="YUV" requires 4:4:4 so on subsampled clips run a "Y" pass and a "UV" pass instead.

NNEDI3

NNEDI3 is a neural-network edge-directed interpolator for deinterlacing and upscaling. A small neural network predicts each missing pixel from its local neighborhood, while a prescreener network skips pixels that simple cubic interpolation already handles.

core.vsfeel.NNEDI3(clip clip, int field[,
    int     dh=False,               # double-height output keeping every source line (no field extracted)
    int[]   planes,                 # planes to process; default: all
    int     nsize=6,                # predictor neighborhood, 0..6: 0=8x6 1=16x6 2=32x6
                                    #   3=48x6 4=8x4 5=16x4 6=32x4
    int     nns=1,                  # predictor neurons, 0..4: 0=16 1=32 2=64 3=128 4=256
    int     qual=1,                 # 1 or 2: number of predictor passes averaged
    int     etype=0,                # 0 = weights trained on absolute error, 1 = squared error
    int     pscrn=2])               # prescreener, 0..4: 0=off (predict every pixel)
                                    #   1=original, 2..4=new levels 0..2 (higher = fewer pixels
                                    #   left to cubic interpolation: slower, slightly better)

field 2/3 are the double-rate variants (not allowed with dh=True).

WNNM

Weighted nuclear norm minimization is a non-local patch denoiser. Similar blocks of the clip are grouped (optionally across neighboring frames), the group's patch matrix is low-rank denoised by singular-value shrinkage, and the per-group estimates are aggregated.

core.vsfeel.WNNM(clip clip[,
    float[] sigma=3.0,              # denoising strength per-plane, 0..255 scale; below FLT_EPSILON skips the plane
    int     block_size=8,           # patch size, 1..64; min(block_size^2, group_size) must be <= 32
    int     block_step,             # block lattice spacing, 1..block_size (default block_size)
    int     group_size=8,           # patches per collaborative group, 1..64
    int     bm_range=7,             # spatial search radius in pixels, 0..4096
    int[]   radius=0,               # temporal search radius in frames per-plane, 0..15 (0 = spatial only)
    int     ps_num=2,               # motion-predicted candidates seeding each temporal search, 1..64
    int     ps_range=4,             # search radius around each predicted candidate, in pixels, 0..4096
    int     residual=0,             # keep the group's mean patch (do not shrink the largest singular value)
    int     adaptive_aggregation=1, # weight each group by 1/kept components
    clip    rclip])                 # optional guide clip for block matching

vs-jetpack integration

The wheel ships a small Python module alongside the plugin that adds vsfeel as a backend for the vs-jetpack wrappers.

vsjetpack is an optional dependency, only needed at runtime when you use these backends.

from vsrgtools import bilateral, gauss_blur
from vsdenoise import bm3d, DFTTest, nl_means

import vsfeel

# Bilateral
blurred = bilateral(clip, ref, 3.0, 0.02, backend=vsfeel.Backend)

# BM3D
denoised = bm3d(clip, 0.7, tr=2, profile=bm3d.Profile.NORMAL, ref=ref, planes=0, backend=vsfeel.Backend)

# DFTTest
dft = DFTTest(clip, backend=vsfeel.Backend).denoise({0.0: 16.0, 0.5: 8.0, 1.0: 0.0}, tr=1)

# GaussBlur
smooth = gauss_blur(clip, 1.5, backend=vsfeel.Backend)

# NLMeans
denoised = nl_means(clip, h=0.2, tr=2, a=2, s=4, ref=ref, planes=[1, 2], backend=vsfeel.Backend)

To also route the internal filters vs-jetpack calls on its own (e.g. the bilateral postfilter inside vsaa.based_aa), use the backend as a context manager:

from vsaa import based_aa

with vsfeel.Backend():
    based = based_aa(clip, antialiaser=vsfeel.EEDI3())

Manual Compilation

Full Python Package

pip install .

Plugin-Only

cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
cmake --build build --config Release
cmake --install build

Metadata

Release files for vapoursynth-feel 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vapoursynth-feel 1.4.0
File Size Uploaded Provenance Actions
vapoursynth_feel-1.4.0.tar.gz 23.4 MB With provenance Details for vapoursynth_feel-1.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for vapoursynth-feel 1.4.0
File Actions
vapoursynth_feel-1.4.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for vapoursynth_feel-1.4.0-py3-none-win_amd64.whl
vapoursynth_feel-1.4.0-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details for vapoursynth_feel-1.4.0-py3-none-manylinux_2_34_x86_64.whl
vapoursynth_feel-1.4.0-py3-none-manylinux_2_34_aarch64.whl Python 3 none Linux glibc 2.34+ ARM64 Details for vapoursynth_feel-1.4.0-py3-none-manylinux_2_34_aarch64.whl
vapoursynth_feel-1.4.0-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for vapoursynth_feel-1.4.0-py3-none-macosx_13_0_x86_64.whl
vapoursynth_feel-1.4.0-py3-none-macosx_13_0_arm64.whl Python 3 none macOS 13.0+ ARM64 Details for vapoursynth_feel-1.4.0-py3-none-macosx_13_0_arm64.whl

Total release size: 108.4 MB

Release files / vapoursynth_feel-1.4.0.tar.gz

Download URL vapoursynth_feel-1.4.0.tar.gz
Size 23.4 MB
Tags Source
SHA-256 checksum
How to use checksums
56223f54f44adfad1fa4644d51285b369c332779cfba8866b3ee561441a97432
BLAKE2b-256 checksum
How to use checksums
7a5804346aa4a53317e43b326b41ba300902f896f5e819e0af520c41231bdd2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / vapoursynth_feel-1.4.0-py3-none-win_amd64.whl

Download URL vapoursynth_feel-1.4.0-py3-none-win_amd64.whl
Size 17.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
4de8951d80c60ec1572eedac979ab768d7af100dd22a303d775ba23940b36a91
BLAKE2b-256 checksum
How to use checksums
886f9be368b71bbaead25de400ac24a5929b8538180a35db7144ffd91f236ff9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / vapoursynth_feel-1.4.0-py3-none-manylinux_2_34_x86_64.whl

Download URL vapoursynth_feel-1.4.0-py3-none-manylinux_2_34_x86_64.whl
Size 16.9 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a08ab45e1847640f09aea6a95313428a35c1780ac7bf082ff5c4dd5d90374be9
BLAKE2b-256 checksum
How to use checksums
69c369252e3a4fa256a9de39f24cf13eef805bb30c15faf9ddff07655e71844f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / vapoursynth_feel-1.4.0-py3-none-manylinux_2_34_aarch64.whl

Download URL vapoursynth_feel-1.4.0-py3-none-manylinux_2_34_aarch64.whl
Size 16.9 MB
Tags Linux glibc 2.34+ ARM64 Python 3
SHA-256 checksum
How to use checksums
4b2dc3faa51b223f396bcc1cad233aae5526cda7e6912a884f00cb6e83d580ff
BLAKE2b-256 checksum
How to use checksums
75bcf7dd6fd67780d8b39bddf6f79e8e36c9474cebf0007129178294077eaf3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / vapoursynth_feel-1.4.0-py3-none-macosx_13_0_x86_64.whl

Download URL vapoursynth_feel-1.4.0-py3-none-macosx_13_0_x86_64.whl
Size 16.8 MB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
04671a676866d60009800f5c3089115b78667202a22649bf88cb10f02062c9e8
BLAKE2b-256 checksum
How to use checksums
346b4b7cf06f0f8cdcbf7ee682672c602930b6bb071eb8df7659cbbaee8db41c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / vapoursynth_feel-1.4.0-py3-none-macosx_13_0_arm64.whl

Download URL vapoursynth_feel-1.4.0-py3-none-macosx_13_0_arm64.whl
Size 17.0 MB
Tags Python 3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
f9e03d250fca1754afde6d590554ae5970ae54858334a1236c425836426749de
BLAKE2b-256 checksum
How to use checksums
b322d1433faeb4e85fa43f3f0231350c5eb4031e085e6230ba45a85e1f83f2fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for vapoursynth-feel 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for vapoursynth_feel-1.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page