Skip to main content

Check whether or not a frame is combed

Project description

IsCombed

Check whether or not a frame is combed and stores the result in the _Combed frame property.

Ported from AviSynth plugin http://bengal.missouri.edu/~kes25c/.

Parameters

iscombed.IsCombed(vnode clip[, int cthresh=6, int blockx=16, int blocky=16, bint chroma=False, int mi=64, int metric=0])
  • clip: Clip to process. Only format with integer sample type of 8-16 bit depth and chroma subsampling 1x-4x is supported.

  • cthresh: Area combing threshold used for combed frame detection. This essentially controls how "strong" or "visible" combing must be to be detected. Good values are from 6 to 12. If you know your source has a lot of combed frames set this towards the low end (6-7). If you know your source has very few combed frames set this higher (10-12). Going much lower than 5 to 6 or much higher than 12 is not recommended.

  • blockx: Specifies the x-axis size of the window used during combed frame detection. This has to do with the size of the area in which mi number of pixels are required to be detected as combed for a frame to be declared combed. See the mi parameter description for more info. Possible values are any number that is a power of 2 starting at 4 and going to 2048 (e.g. 4, 8, 16, 32, ... 2048).

  • blocky: Specifies the y-axis size of the window used during combed frame detection. This has to do with the size of the area in which mi number of pixels are required to be detected as combed for a frame to be declared combed. See the mi parameter description for more info. Possible values are any number that is a power of 2 starting at 4 and going to 2048 (e.g. 4, 8, 16, 32, ... 2048).

  • chroma: Includes chroma combing in the decision about whether a frame is combed. Only use this if you have one of those weird sources where the chroma can be temporally separated from the luma (i.e. the chroma moves but the luma doesn't in a field). Otherwise, it will just help to screw up the decision most of the time.

  • mi: The number of required combed pixels inside any of the blockx by blocky sized blocks on the frame for the frame to be considered combed. While cthresh controls how "visible" or "strong" the combing must be, this setting controls how much combing there must be in any localized area (a blockx by blocky sized window) on the frame. Min setting = 0, max setting = blockx x blocky (at which point no frames will ever be detected as combed).

  • metric: Specifies which spatial combing metric is used to detect combed pixels.

Assume 5 neighboring pixels (a,b,c,d,e) positioned vertically.
    a
    b
    c
    d
    e

0:  d1 = c - b;
    d2 = c - d;
    if ((d1 > cthresh && d2 > cthresh) || (d1 < -cthresh && d2 < -cthresh))
    {
       if (abs(a+4*c+e-3*(b+d)) > cthresh*6) it's combed;
    }

1:  val = (b - c) * (d - c);
    if (val > cthresh*cthresh) it's combed;

Metric 0 is what IsCombedTIVTC used previous to v1.2. Metric 1 is the combing metric used in Donald Graft's FieldDeinterlace()/IsCombed() functions in decomb.dll.

Installation

pip install -U vapoursynth-iscombed

Project details


Download files

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

Source Distribution

vapoursynth_iscombed-1.0.tar.gz (20.6 kB view details)

Uploaded Source

Built Distributions

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

vapoursynth_iscombed-1.0-py3-none-win_amd64.whl (243.4 kB view details)

Uploaded Python 3Windows x86-64

vapoursynth_iscombed-1.0-py3-none-musllinux_1_2_x86_64.whl (1.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

vapoursynth_iscombed-1.0-py3-none-musllinux_1_2_aarch64.whl (1.0 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

vapoursynth_iscombed-1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (188.4 kB view details)

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

vapoursynth_iscombed-1.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (176.7 kB view details)

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

vapoursynth_iscombed-1.0-py3-none-macosx_11_0_arm64.whl (29.4 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

vapoursynth_iscombed-1.0-py3-none-macosx_10_15_x86_64.whl (26.0 kB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

Details for the file vapoursynth_iscombed-1.0.tar.gz.

File metadata

  • Download URL: vapoursynth_iscombed-1.0.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vapoursynth_iscombed-1.0.tar.gz
Algorithm Hash digest
SHA256 0b9fb9e0722dd64ea99139790229b51337fb076cd7ade21a0619befab140024e
MD5 eea5d7bd57791ec1e31d61393ea805e9
BLAKE2b-256 f56c332f7489f9c4d7433f80cd1736bd85fafe85c0e67dda7d42e9b2483b5788

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-1.0.tar.gz:

Publisher: build.yml on HolyWu/VapourSynth-IsCombed

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_iscombed-1.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1054d08355a409811fa8702dcfcda0ece16445be8d00fcfd8791cf29a31ddfd8
MD5 77db195f134c276fc8c4ebdece82e3ec
BLAKE2b-256 a426d87838304751f291234d2bc22a495bf7454401c0e1fac5ae7c0cfbe05ba5

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-1.0-py3-none-win_amd64.whl:

Publisher: build.yml on HolyWu/VapourSynth-IsCombed

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_iscombed-1.0-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-1.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8b28823a6f49ead8f27ee2f2b34faa31231bd9f6f1e598303eae1c19fec0fa8c
MD5 51226032df751d27090715ede6fabeb6
BLAKE2b-256 50925fabd17556adf20c450bd486dafb0f4639fb7448c36a73909c58e8ffe2da

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-1.0-py3-none-musllinux_1_2_x86_64.whl:

Publisher: build.yml on HolyWu/VapourSynth-IsCombed

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_iscombed-1.0-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-1.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 47559b3e1bbd7dae5dc8b3b979ce8a558ddfd24fc26785c80ba06d5511c90101
MD5 3a99fe41bc0539b8c9a1f7f30959c82d
BLAKE2b-256 67319a4e67ba22c6bae74e004d88f5045ef88a834c53ee4a8e6ffbb8e5b24a91

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-1.0-py3-none-musllinux_1_2_aarch64.whl:

Publisher: build.yml on HolyWu/VapourSynth-IsCombed

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_iscombed-1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4909040f7fd31bd7c24fd534488ef382319c9ee0736190367aeef2cf8e5c8572
MD5 b47977ef6f6326847cca95ea97f4ce91
BLAKE2b-256 43453cfa58285ae43d7732a48bbd2660714a999ecec9227681ca8923d9b0fb43

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-1.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build.yml on HolyWu/VapourSynth-IsCombed

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_iscombed-1.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-1.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e2d407719e5e42afaebb2905a051919d4b654a5ed2d1f5d0293cd12f588376a5
MD5 32ba6db2affcc6656a5437f62563dfff
BLAKE2b-256 c0f03b50eb220a06662188856a59ebf1af07d6f3574c8b867cb496dac2dfc378

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-1.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build.yml on HolyWu/VapourSynth-IsCombed

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_iscombed-1.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-1.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 155848fcffdd6c5bb445b845998cb805562dc668b79f072153d2936cad5b1acb
MD5 9c4efcd432382f1da01bfd1644bd36d0
BLAKE2b-256 8709e36b4c8ec6a63e2e85ae86028232880cfa712fa5212f52582c53fd4cc0cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-1.0-py3-none-macosx_11_0_arm64.whl:

Publisher: build.yml on HolyWu/VapourSynth-IsCombed

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_iscombed-1.0-py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-1.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 472b0290bf22a05ba26516a5b0e9e72c3c993f49c97218d9e85212d20692c28f
MD5 b2bb51e22b9ce7d34970429b7442920d
BLAKE2b-256 c72f6549e006ce750f634858099a93fd675f49551db9b73fb30e260ac004b673

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-1.0-py3-none-macosx_10_15_x86_64.whl:

Publisher: build.yml on HolyWu/VapourSynth-IsCombed

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page