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-2.1.tar.gz (20.4 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-2.1-py3-none-win_amd64.whl (118.1 kB view details)

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

vapoursynth_iscombed-2.1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (187.7 kB view details)

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

vapoursynth_iscombed-2.1-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (175.5 kB view details)

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

vapoursynth_iscombed-2.1-py3-none-macosx_11_0_arm64.whl (27.2 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

vapoursynth_iscombed-2.1-py3-none-macosx_10_15_x86_64.whl (24.9 kB view details)

Uploaded Python 3macOS 10.15+ x86-64

File details

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

File metadata

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

File hashes

Hashes for vapoursynth_iscombed-2.1.tar.gz
Algorithm Hash digest
SHA256 9730fdb8c8ddbab4646ed12d490e2082f0b88171ccb96a34b8a303ae803d6023
MD5 77948c7427e5ccb681de4f5c1a6337c5
BLAKE2b-256 f592ac49b7238fadf67a3bb1b0a8306ff434c0f9200a09c697a7297a20148707

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-2.1.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-2.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b8aa2fe8efbbd4dae4795435aeb96d9c5a6e73ced3935736193a431de395d930
MD5 52c1cad7a3f952b86983e0cd040b96cd
BLAKE2b-256 101fb3ca885f447e92f3a5b3e0241b83c516392a7fa4cd1d65b5dedcc5f20cdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-2.1-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-2.1-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.1-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 911d37783609a8fb87f7c49e0c39f2f25a12a3f5c86ff6f01bafba716163a763
MD5 339e932725dde306b4987d44b0ee04e4
BLAKE2b-256 639206365e16f1a2a404bcf6a8c95bfdb549d80d7501328af65dcce782acffa8

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-2.1-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-2.1-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.1-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 930ebb5c654f74e8843d70e657c026c38d25e8e0752728a38a34a36703b02237
MD5 8bbe4dd02414a805d90d3809baafa6aa
BLAKE2b-256 f69788f25ce2114e5cac2c93f461e78b1b8f17645b0826d2911ca34cd5d54fba

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-2.1-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-2.1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.1-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1827facb0556cb3e48ad9eefb75a61ea60a6246623a07a59daef6e77b3d87aae
MD5 1052f1c77918327124bc4f56477e593c
BLAKE2b-256 e4f42bf935c03817662d8eebd04745a58b918aeb519dcd950955c966a9d93f57

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-2.1-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-2.1-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.1-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 72797e49c1cfc3ac4365fb72dfcd55bb6b314d85483f6788204619c1d72940f5
MD5 64195575319aba7bd7c534b027ef5ec8
BLAKE2b-256 3b8c25c7079ec75a409c9810e739d4f2b7cf62f0d0384fb651b4d436058bb899

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-2.1-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-2.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8a13cf58b4058ed00a187b48607f9cba59f32b96e7f9945af5cefa0cfe04d64
MD5 ddf421942673c688b3e0f366f586861e
BLAKE2b-256 0ea59a89b681b81aebeac366c022561568e4b37006cc6e0fecde845fd211356c

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-2.1-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-2.1-py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.1-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 0b56a4326f347b7c8187209e0904e245ab72170eee866add4a18cd97de303b10
MD5 7aa30bc9c2ce3500ee6f4d8418fdbcba
BLAKE2b-256 7d2b3470f7cf4e49bcdcf32e30d805835da34d1f1454dc0b6189e7c9ff52f943

See more details on using hashes here.

Provenance

The following attestation bundles were made for vapoursynth_iscombed-2.1-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