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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vapoursynth_sangnom-45.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vapoursynth_sangnom-45.0-py3-none-win_amd64.whl (230.9 kB view details)

Uploaded Python 3Windows x86-64

vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_aarch64.whl (999.2 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (195.4 kB view details)

Uploaded Python 3manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (169.1 kB view details)

Uploaded Python 3manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

vapoursynth_sangnom-45.0-py3-none-macosx_11_0_arm64.whl (19.9 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

vapoursynth_sangnom-45.0-py3-none-macosx_10_15_x86_64.whl (33.6 kB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

Details for the file vapoursynth_sangnom-45.0.tar.gz.

File metadata

  • Download URL: vapoursynth_sangnom-45.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for vapoursynth_sangnom-45.0.tar.gz
Algorithm Hash digest
SHA256 0f2ca33dd47e2be6f6c9584f71d2fa266fdcd8f9a9b998d641c04d06505a5f31
MD5 9f0da77d04ad60e4455f17244c730c46
BLAKE2b-256 d15d0ecc051f3f3c6411d704959b58e5d757b0af16685f8bab35bec351f7fa97

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_sangnom-45.0.tar.gz:

Publisher: build.yml on dubhatervapoursynth/vapoursynth-sangnom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_sangnom-45.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for vapoursynth_sangnom-45.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 6bf732ee4a2495767b9bb18b0f1805ac46582d48773ebb024e6675015242b517
MD5 10f6a40bcfd43026634afd7958ac3ef6
BLAKE2b-256 55fd4b5568d7d8265df35b41ff49e79d6d87b69a332f24f6a0cbbc42c6a2835a

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_sangnom-45.0-py3-none-win_amd64.whl:

Publisher: build.yml on dubhatervapoursynth/vapoursynth-sangnom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 493aa5c1553b5eb3b2cb9b07706c8637b67e411578b2b4977b6670dc7797d25e
MD5 92f3b681de76d3c0f16bef03204f5c1d
BLAKE2b-256 291fe37336893e2ca13eb07f3611b35497e48c09040f9c9c27c2937473d12aed

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_x86_64.whl:

Publisher: build.yml on dubhatervapoursynth/vapoursynth-sangnom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 c655018b2086d0a4e4389428cf3a1dd4c6c40935fecec539982b13406208864b
MD5 d0ae5ade2115b6b34c2b37e8dfa44f92
BLAKE2b-256 effba3ab26d900f2e7ebb400f01b78b882f48d1c7d4e7c72f3f53bbfb345799b

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_sangnom-45.0-py3-none-musllinux_1_2_aarch64.whl:

Publisher: build.yml on dubhatervapoursynth/vapoursynth-sangnom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dd71e28fa7d0383101b6ab5e84307be80984f69a43838238686de1480793525d
MD5 c802822d55bc1b015c503c8c479db238
BLAKE2b-256 16ec728a24ac616806a7be2646ba810bbc944865664c972ba35c05f2323f278c

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build.yml on dubhatervapoursynth/vapoursynth-sangnom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4fd6e39bc32aec755853f974936324081223d6b7e082cc38e717c9b8dad0cf6a
MD5 21bacfaed4bfa50f16e95b3ca9427ef2
BLAKE2b-256 0b05c280f00e5c18bc640802c022367ccb7d3f956aa34350c5ac0a13bea503a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_sangnom-45.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build.yml on dubhatervapoursynth/vapoursynth-sangnom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_sangnom-45.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vapoursynth_sangnom-45.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e558c2ffd7d5f6657878e97504c536cdb5e199c558537767b229bd37f8764810
MD5 385e5e0e006f22920c615f8ca51a650b
BLAKE2b-256 9e59e025ece452e43354c358383608761eff5853ac2ae7409a1e0a607dd92b87

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_sangnom-45.0-py3-none-macosx_11_0_arm64.whl:

Publisher: build.yml on dubhatervapoursynth/vapoursynth-sangnom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vapoursynth_sangnom-45.0-py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_sangnom-45.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 cbcb274aa86732d01d4f39ab4058c32d580901163ac372c0219cdb3fa468840d
MD5 6f75f044aa1de3233d34b2deb36753b7
BLAKE2b-256 a43b4732681ff685866a07fcfefc50fc5a95b7764bc274849bc4a173827846ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_sangnom-45.0-py3-none-macosx_10_15_x86_64.whl:

Publisher: build.yml on dubhatervapoursynth/vapoursynth-sangnom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

45.0 This release

8 files

43.0

8 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