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.0.tar.gz (20.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_iscombed-2.0-py3-none-win_amd64.whl (242.2 kB view details)

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

vapoursynth_iscombed-2.0-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.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (175.4 kB view details)

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

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

Uploaded Python 3macOS 11.0+ ARM64

vapoursynth_iscombed-2.0-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.0.tar.gz.

File metadata

  • Download URL: vapoursynth_iscombed-2.0.tar.gz
  • Upload date:
  • Size: 20.3 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.0.tar.gz
Algorithm Hash digest
SHA256 419a83e316e22813f94c8dd76009081fc319dacb5c7de6adac48ba167b11397b
MD5 2b1f540cb606226480034bc87b3804d5
BLAKE2b-256 6b93ccf6b76ef8233a4dca1931f67fa2ec614ed448cad1fd3b270990cc75ad6a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1856a1e336fc7a628f878403eae0e2a805344e72c12c3c1a54c4ca6e7e15b0ce
MD5 ee4a486db522b0dc01def06c962b9e02
BLAKE2b-256 ac0d2c0b70167082f938b4e143fcd1ef72f1cca19d3f6d5cee3c4d15dd543f3d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0ac0da0057d9bf26e758d4d621f75f4a309ffa6d2d4e55da98dc5b8e5f0fe780
MD5 72d9faa9aa127599cb7b4014e42bad12
BLAKE2b-256 b4329a9048f8ebfdb0778ccb79ef5b18a287e64e33207da14688498d029a3019

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 92430ab116cb039e995517244d559448393137f147724c558aa37070c04acdee
MD5 99cdde0d433cde288f9c565a163f2918
BLAKE2b-256 5142aca6605891d2b914616b072d5f5c6f998c1b071c104d5aaba143d0b02215

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2836b75843233cadc3e2465404aa176387a5e11699542bdef7982e1f2e910869
MD5 2a94ae37126b67278b78d03c2204ebe4
BLAKE2b-256 b83f45f8cd090f9867a32bef92aaca44219371984c05f6764a6948a40cbe833d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.0-py3-none-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ad92436c0ebecadceac6590557be8f73f4551ba73764cc0cb3d54eae2cde912d
MD5 9e0aea6818e543745b76482cf3862386
BLAKE2b-256 63ab43771ae35defdd8beb176d66754db6def16aa8c460a1683ddb54c68b0acd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2efc2fc1e7c35d84712f0e7e33772907f946d8303d38ef944be5b6b3b7b7f370
MD5 21c7481e7a57983b5e5e7516e145e400
BLAKE2b-256 8735ee5033c2bbd4a5b038127fba897ef919fcd42f1a5a06e5deca6e4543833e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for vapoursynth_iscombed-2.0-py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 23661793491f0aa6cb75b8de6de7700a3b47e33059db54bfee91e556e54b8c9a
MD5 9c7640f7c7425e0c61be6dc3dd15dca4
BLAKE2b-256 8bec5471b4c6d5cff965c8b11b0a040329dd392a235066c039a77786fca50af2

See more details on using hashes here.

Provenance

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