Skip to main content

SangNom - VapourSynth Single Field Deinterlacer

  • SangNom is a single field deinterlacer using edge-directed interpolation but nowadays it's mainly used in anti-aliasing scripts.
  • This is a rewrite version of AviSynth SangNom2, and support more formats.

Build

  • compiler with c++17 support
  • -DVS_TARGET_CPU_X86 can enable the SSE2 code path which has a large benefit on performance

./autogen.sh
./configure
make
make install

Or

meson build && cd build
ninja
  • build on linux

g++ src/sangnom.cpp -o libsangnom.dll -std=c++1y -O3 -shared -static -I/path/to/vapoursynth/headers -DVS_TARGET_CPU_X86
  • build on windows

Usage

sangnom.SangNom(src, order=1, aa=48, planes=[0, 1, 2])
  • the default setting, interpolates bottom field for all planes.

sangnom.SangNom(src, order=1, aa=[48, 0, 0], planes=[0, 1, 2])
  • this simulates the default setting of AviSynth SangNom2

Parameter

sangnom.SangNom(clip clip[, int order=1, bint dh=False, int[] aa=[48, 48, 48], int[] planes=[0, 1, 2]])
  • clip: the src clip
    • 8..16 bit integer, 32 bit float support
    • all color family support

  • order: order of deinterlacing
    • default: 1 (int)
      • 0: double frame rate, must call std.SeparateFields().std.DoubleWeave() before processing
      • 1: single frame rate, keep top field
      • 2: single frame rate, keep bottom field

  • dh: doubles the height of the input. each line of the input is copied to every other line of the output and the missing lines are interpolated.
    • default: False (bool)
      • note: if dh=True, it will force all planes to be processed.

  • aa: the strength of anti-aliasing, this value is considered in 8 bit clip
    • default: [48, 48, 48] (int[])
    • range: 0 ... 128
    • note: the value of previous plane will be used if you don't specify it.
    • note: in AviSynth SangNom2, the default is aa=[48, 0, 0]

  • planes: planes which are processed
    • default: [0, 1, 2]
      • note: if dh=True, it will force all planes to be processed.

Frame properties

  • the output is always flagged progressive (_FieldBased = 0) because every output line is either taken from or interpolated from a single field.
  • if dh=True, the _Field property is removed since the output is a full frame and no longer a separated field.

License

SangNom - VapourSynth Single Field Deinterlacer

Copyright (c) 2016 james1201
Copyright (c) 2013 Victor Efimov

This project is licensed under the MIT license. Binaries are GPL v2.

Metadata

Release files for vapoursynth-sangnom 45.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-sangnom 45.0
File Size Uploaded Provenance
vapoursynth_sangnom-45.0.tar.gz 16.3 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for vapoursynth-sangnom 45.0
File
vapoursynth_sangnom-45.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details
vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details
vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details
vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details
vapoursynth_sangnom-45.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
vapoursynth_sangnom-45.0-py3-none-macosx_10_15_x86_64.whl Python 3 none macOS 10.15+ x86-64 Details

Total release size: 2.7 MB

Release files / vapoursynth_sangnom-45.0.tar.gz

Download URL vapoursynth_sangnom-45.0.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0f2ca33dd47e2be6f6c9584f71d2fa266fdcd8f9a9b998d641c04d06505a5f31
BLAKE2b-256 checksum
How to use checksums
d15d0ecc051f3f3c6411d704959b58e5d757b0af16685f8bab35bec351f7fa97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 23, 2026.

Transparency log

Release files / vapoursynth_sangnom-45.0-py3-none-win_amd64.whl

Download URL vapoursynth_sangnom-45.0-py3-none-win_amd64.whl
Size 230.9 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
6bf732ee4a2495767b9bb18b0f1805ac46582d48773ebb024e6675015242b517
BLAKE2b-256 checksum
How to use checksums
55fd4b5568d7d8265df35b41ff49e79d6d87b69a332f24f6a0cbbc42c6a2835a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 23, 2026.

Transparency log

Release files / vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_x86_64.whl

Download URL vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_x86_64.whl
Size 1.1 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
493aa5c1553b5eb3b2cb9b07706c8637b67e411578b2b4977b6670dc7797d25e
BLAKE2b-256 checksum
How to use checksums
291fe37336893e2ca13eb07f3611b35497e48c09040f9c9c27c2937473d12aed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 23, 2026.

Transparency log

Release files / vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_aarch64.whl

Download URL vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_aarch64.whl
Size 999.2 kB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c655018b2086d0a4e4389428cf3a1dd4c6c40935fecec539982b13406208864b
BLAKE2b-256 checksum
How to use checksums
effba3ab26d900f2e7ebb400f01b78b882f48d1c7d4e7c72f3f53bbfb345799b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 23, 2026.

Transparency log

Release files / vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 195.4 kB
Tags Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
dd71e28fa7d0383101b6ab5e84307be80984f69a43838238686de1480793525d
BLAKE2b-256 checksum
How to use checksums
16ec728a24ac616806a7be2646ba810bbc944865664c972ba35c05f2323f278c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 23, 2026.

Transparency log

Release files / vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 169.1 kB
Tags Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
4fd6e39bc32aec755853f974936324081223d6b7e082cc38e717c9b8dad0cf6a
BLAKE2b-256 checksum
How to use checksums
0b05c280f00e5c18bc640802c022367ccb7d3f956aa34350c5ac0a13bea503a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 23, 2026.

Transparency log

Release files / vapoursynth_sangnom-45.0-py3-none-macosx_11_0_arm64.whl

Download URL vapoursynth_sangnom-45.0-py3-none-macosx_11_0_arm64.whl
Size 19.9 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e558c2ffd7d5f6657878e97504c536cdb5e199c558537767b229bd37f8764810
BLAKE2b-256 checksum
How to use checksums
9e59e025ece452e43354c358383608761eff5853ac2ae7409a1e0a607dd92b87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 23, 2026.

Transparency log

Release files / vapoursynth_sangnom-45.0-py3-none-macosx_10_15_x86_64.whl

Download URL vapoursynth_sangnom-45.0-py3-none-macosx_10_15_x86_64.whl
Size 33.6 kB
Tags Python 3 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
cbcb274aa86732d01d4f39ab4058c32d580901163ac372c0219cdb3fa468840d
BLAKE2b-256 checksum
How to use checksums
a43b4732681ff685866a07fcfefc50fc5a95b7764bc274849bc4a173827846ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.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 Jul 23, 2026.

Transparency log

Security for vapoursynth-sangnom 45.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 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for vapoursynth_sangnom-45.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 Jul 23, 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.

Release history Release notifications | RSS feed

This release

45.0 This release

8 release files Full provenance

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