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-detectInputs
| Field | Type | Required | Description |
|---|---|---|---|
| video_a_base64 | string | No | 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 | string | No | Public http(s) URL of the the first video (at most 10 MiB; private, local and reserved addresses are refused). |
| video_b_base64 | string | No | 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 | string | No | Public http(s) URL of the the second video (at most 10 MiB; private, local and reserved addresses are refused). |
| sample_fps | number | No | Samples per second taken from each video. |
| max_hamming | integer | No | Highest number of differing hash bits (of 64) for two samples to match. |
| min_overlap_s | number | No | Shortest 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."
}
}
}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
- Tonwerk0.01 USDC
accessible transcript html
POSThttps://ton.halowerk.com/v1/accessible-transcript-htmlParses SRT or WebVTT (voice tags <v Name>, "NAME:" prefixes and ">>" speaker changes) or a segments array, merges consecutive cues of the same speaker into turns (a new paragraph after a pause longer than paragraph_gap_s), and writes semant
- Tonwerk0.01 USDC
ad disclosure audio
POSThttps://ton.halowerk.com/v1/ad-disclosure-audioDecodes the complete supplied clip to mono 16 kHz using resource-limited ffmpeg, checks for speech with Silero VAD v6.2 (MIT), and transcribes locally with the pinned Whisper base ONNX model (MIT / Apache-2.0). Conservative English phrase r
- Tonwerk0.005 USDC
ad insertion markers
POSThttps://ton.halowerk.com/v1/ad-insertion-markersRuns ffmpeg 6.1 silencedetect on the episode audio (base64 or URL, at most 10 MiB) and builds mid-roll candidates from internal silences and from Podcasting 2.0 chapter boundaries (a boundary inside a silence or snapped to the nearest silen