Skip to content
HALOWERK

Tonwerk

video dup detect

Both videos (up to 300 s each) are sampled at sample_fps from their start, each sample is reduced to 64×64 grey and hashed with a 64-bit DCT perceptual hash (pHash method; aspect ratio ignored, so rescaling does not matter). Flat samples (standard deviation below 4 grey levels on the 32×32 image) carry no information and are skipped. Every time offset between the two sequences is tried; at each offset a pair of samples matches when their hashes differ in at most max_hamming bits. The offset.

POST https://ton.halowerk.com/v1/video-dup-detect

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
video_a_base64stringNoThe first video as base64 (MP4/MOV, WebM/MKV, AVI, MPEG-TS, MPEG-PS, FLV, Ogg or animated GIF; at most 10 MiB decoded; a data: URL prefix is accepted).
video_a_urlstringNoPublic http(s) URL of the the first video (at most 10 MiB; private, local and reserved addresses are refused).
video_b_base64stringNoThe second video as base64 (MP4/MOV, WebM/MKV, AVI, MPEG-TS, MPEG-PS, FLV, Ogg or animated GIF; at most 10 MiB decoded; a data: URL prefix is accepted).
video_b_urlstringNoPublic http(s) URL of the the second video (at most 10 MiB; private, local and reserved addresses are refused).
sample_fpsnumberNoSamples per second taken from each video.
max_hammingintegerNoHighest number of differing hash bits (of 64) for two samples to match.
min_overlap_snumberNoShortest matching run reported as partial_overlap.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "video_a_base64": {
      "type": "string",
      "minLength": 16,
      "maxLength": 14000000,
      "description": "The first video as base64 (MP4/MOV, WebM/MKV, AVI, MPEG-TS, MPEG-PS, FLV, Ogg or animated GIF; at most 10 MiB decoded; a data: URL prefix is accepted)."
    },
    "video_a_url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https?://",
      "maxLength": 2048,
      "description": "Public http(s) URL of the the first video (at most 10 MiB; private, local and reserved addresses are refused)."
    },
    "video_b_base64": {
      "type": "string",
      "minLength": 16,
      "maxLength": 14000000,
      "description": "The second video as base64 (MP4/MOV, WebM/MKV, AVI, MPEG-TS, MPEG-PS, FLV, Ogg or animated GIF; at most 10 MiB decoded; a data: URL prefix is accepted)."
    },
    "video_b_url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https?://",
      "maxLength": 2048,
      "description": "Public http(s) URL of the the second video (at most 10 MiB; private, local and reserved addresses are refused)."
    },
    "sample_fps": {
      "type": "number",
      "minimum": 0.5,
      "maximum": 4,
      "default": 2,
      "description": "Samples per second taken from each video."
    },
    "max_hamming": {
      "type": "integer",
      "minimum": 2,
      "maximum": 20,
      "default": 10,
      "description": "Highest number of differing hash bits (of 64) for two samples to match."
    },
    "min_overlap_s": {
      "type": "number",
      "minimum": 1,
      "maximum": 60,
      "default": 3,
      "description": "Shortest matching run reported as partial_overlap."
    }
  }
}

Open original schema

Published input example

{
  "video_a_url": "https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif",
  "video_b_url": "https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub →