Skip to main content

vapoursynth-cdef

VapourSynth port of Constrained Directional Enhancement Filter.

Usage

from vscdef import cdef

clip = cdef(clip)

Reference

The Python wrapper vscdef.cdef provides exactly the same features as the VapourSynth plugin core.cdef.CDEF.
However, the VapourSynth plugin requires 12-bit or 10-bit integer input, and requires mod8 input. The Python wrapper converts it for you.

cdef(
    clip:         vs.VideoNode,

    # All these parameters accept 1 integer for all planes, 2 integers for luma and chroma, or 3 integers for Y, U, and V.
    pri_strength: int | Sequence[int] = [3, 1],
    sec_strength: int | Sequence[int] = [1, 0],
    pri_damping:  int | Sequence[int] = 2,
    sec_damping:  int | Sequence[int] = 1,
    # If the default is too strong, try disabling secondary filtering by setting `sec_strength` to `0` first.  
    # If the default is too weak, try increasing `pri_strength` (of the Y plane) first.  

    planes:       PlanesT             = [0, 1, 2]
)

For each parameters, check:

Note that even though the AV1 codec only supports certain value ranges, the implementation itself supports a much wider range of values.

Examples

On a bad source with heavy mosquito noise, this might be useful.
Note that on newer versions of vs-jetpack with MVUtensils, unfortunately the support for SADMode.ADAPTIVE_SATD_DCT is dropped. You can either modify it to do a different search, or rewrite it using raw MVTools calls if your setup doesn't support it.

from vsdenoise import MotionMode, MVTools, Prefilter, SADMode
from vscdef import cdef

dn = cdef(clip)

mv = MVTools(clip, search_clip=Prefilter.DFTTEST)

mv.analyze(tr=2, blksize=32, overlap=16, truemotion=MotionMode.COHERENCE, divide=2)
mv.recalculate(thsad=14, blksize=8, overlap=4, dct=SADMode.ADAPTIVE_SATD_DCT, truemotion=MotionMode.COHERENCE)

dn = mv.degrain(dn, clip, tr=2, thsad=24)

Release files for vapoursynth-cdef 1.0.0.post1

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-cdef 1.0.0.post1
File Size Uploaded
vapoursynth_cdef-1.0.0.post1.tar.gz 12.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for vapoursynth-cdef 1.0.0.post1
File
vapoursynth_cdef-1.0.0.post1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
vapoursynth_cdef-1.0.0.post1-py3-none-manylinux_2_24_x86_64.whl Python 3 none Linux glibc 2.24+ x86-64 Details
vapoursynth_cdef-1.0.0.post1-py3-none-macosx_12_0_x86_64.whl Python 3 none macOS 12.0+ x86-64 Details
vapoursynth_cdef-1.0.0.post1-py3-none-macosx_12_0_arm64.whl Python 3 none macOS 12.0+ ARM64 Details

Total release size: 5.9 MB

Release files / vapoursynth_cdef-1.0.0.post1.tar.gz

Download URL vapoursynth_cdef-1.0.0.post1.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2c869978f8b7115ad7031f06ccc8250c894add8084b111b0a14978957847af2c
BLAKE2b-256 checksum
How to use checksums
66c41ac362ce50d3c63af86ffa8d4f529501484cb559278c7b34ca93b68914f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 15, 2026.

Transparency log

Release files / vapoursynth_cdef-1.0.0.post1-py3-none-win_amd64.whl

Download URL vapoursynth_cdef-1.0.0.post1-py3-none-win_amd64.whl
Size 1.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a269818154d72b77d90efce1f01dd72ab8e077166f4e4624497fc0c6456da4ce
BLAKE2b-256 checksum
How to use checksums
cecf1ab9937babd41d3326b2f54efb86392c8e184531a82a1b9808cf07fd7528
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 15, 2026.

Transparency log

Release files / vapoursynth_cdef-1.0.0.post1-py3-none-manylinux_2_24_x86_64.whl

Download URL vapoursynth_cdef-1.0.0.post1-py3-none-manylinux_2_24_x86_64.whl
Size 1.7 MB
Tags Linux glibc 2.24+ x86-64 Python 3
SHA-256 checksum
How to use checksums
615e3247e20acd3b5526db70d72acd7dfa8cd0bfa350d615e380103fa7d9adb9
BLAKE2b-256 checksum
How to use checksums
b069c156edc82c3d62177aaea0243e3f90e78653557a83ef0cc362a55fe81222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 15, 2026.

Transparency log

Release files / vapoursynth_cdef-1.0.0.post1-py3-none-macosx_12_0_x86_64.whl

Download URL vapoursynth_cdef-1.0.0.post1-py3-none-macosx_12_0_x86_64.whl
Size 1.6 MB
Tags Python 3 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
8188a4483fc2906f97d163d96aa5deb9b242ce7fea1e420229bb4c85e6dbc204
BLAKE2b-256 checksum
How to use checksums
5d0ecebdc48a04b12b94dad6db551ccd61f71771173d9638ff8789fba773ba21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 15, 2026.

Transparency log

Release files / vapoursynth_cdef-1.0.0.post1-py3-none-macosx_12_0_arm64.whl

Download URL vapoursynth_cdef-1.0.0.post1-py3-none-macosx_12_0_arm64.whl
Size 869.7 kB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
6c75b02ea3646b112eceb29d33b21a6aa5faf3c19e42da675661448147d66e1c
BLAKE2b-256 checksum
How to use checksums
062b1f263cdbc668064504a0c02a5091abca605b7450255b79768947733c63ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0.post1 This release

5 release files

1.0.0

5 release files

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