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 up to 3 integers for 3 planes
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=10, blksize=8, overlap=4, dct=SADMode.ADAPTIVE_SATD_DCT, truemotion=MotionMode.COHERENCE)
dn = mv.degrain(dn, clip, tr=2, thsad=18)
Release files for vapoursynth-cdef 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vapoursynth_cdef-1.0.0.tar.gz | 12.6 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| vapoursynth_cdef-1.0.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| vapoursynth_cdef-1.0.0-py3-none-manylinux_2_24_x86_64.whl | Python 3 | none | Linux glibc 2.24+ x86-64 | Details |
| vapoursynth_cdef-1.0.0-py3-none-macosx_12_0_x86_64.whl | Python 3 | none | macOS 12.0+ x86-64 | Details |
| vapoursynth_cdef-1.0.0-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.tar.gz
| Download URL | vapoursynth_cdef-1.0.0.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ebcbe3413c5c662e5d6f2a1c33bbaf27df5922179ea981dd495fce70cbb944a
|
|
BLAKE2b-256 checksum How to use checksums |
27923685bd570d7dadc98b00d4634a84dd87d8024560ba055b9d7fa431beed7f
|
| 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 13, 2026.
Transparency logRelease files / vapoursynth_cdef-1.0.0-py3-none-win_amd64.whl
| Download URL | vapoursynth_cdef-1.0.0-py3-none-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4d78ef7a01ac320c01009832bc65f25eaadebdf935738852c66c3916ea7b9b81
|
|
BLAKE2b-256 checksum How to use checksums |
4c862b88d474697a5e7e3ed8f187de2dac856bab8bd120956afbe2463f56c077
|
| 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 13, 2026.
Transparency logRelease files / vapoursynth_cdef-1.0.0-py3-none-manylinux_2_24_x86_64.whl
| Download URL | vapoursynth_cdef-1.0.0-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 |
32526dbfeb8ba01cb33a71e2501794bbeae6e144427f09893ef5200e93540911
|
|
BLAKE2b-256 checksum How to use checksums |
bb70dfc914d598faa0b6532477c570c5ce7f88e90b4ab20ffbbc4bbaecdea0da
|
| 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 13, 2026.
Transparency logRelease files / vapoursynth_cdef-1.0.0-py3-none-macosx_12_0_x86_64.whl
| Download URL | vapoursynth_cdef-1.0.0-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 |
b9532596ec0d16b1c653ff887781eab9bfd34410e2a0b4e383c6934a21829dfd
|
|
BLAKE2b-256 checksum How to use checksums |
858a81eb6c65abf4f3a3f2ada772121b2992ebfd4bde313bc7f7be5879ee5ea6
|
| 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 13, 2026.
Transparency logRelease files / vapoursynth_cdef-1.0.0-py3-none-macosx_12_0_arm64.whl
| Download URL | vapoursynth_cdef-1.0.0-py3-none-macosx_12_0_arm64.whl |
|---|---|
| Size | 869.9 kB |
| Tags | Python 3 macOS 12.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e086a77c88b4e0bdbbc2077df734e19f276ef531e407501b11fc8e348dcf415e
|
|
BLAKE2b-256 checksum How to use checksums |
c52caa9d8af1ed7ce4970731c7c019f75cba8473931e4977502259f8089771ab
|
| 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 13, 2026.
Transparency log