Skip to content
Fourohtwo

ton.halowerk.com/v1/av-sync-offset

Measures the audio-to-video offset (lip-sync error) of a clip with sync events such as a flash-and-beep test pattern, a clapperboard or a camera flash, rates it against ITU-R BT.1359 and returns the ffmpeg correction. Decodes every frame at 64 px width and finds visual events as sudden rises of mean luma (a flash or white frame); finds audio events as onsets in a 1 ms energy envelope (rise above p

BaseAnswering
POSThttps://ton.halowerk.com/v1/av-sync-offset

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://ton.halowerk.com/v1/av-sync-offset", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_offset_ms":400,"video_base64":"GkXfo6NChoEBQveBAULygQRC84EIQoKIbWF0cm9za2FCh4EEQoWBAhhTgGcBAAAAAAAJ3BFNm3TAv4RCKIveTbuLU6uEFUmpZlOsgaFNu4tTq4QWVK5rU6yBzE27jFOrhBJUw2dTrIIBzU27jFOrhBxTu2tTrIIJmuwBAAAAAAAAUwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFUmpZqa/hJvI5qoq17GDD0JATYCETGF2ZldBhExhdmZEiYhAoUAAAAAAABZUrmtA+7+E2ZgxFK4BAAA),
});
console.log(await res.json());

Example input

{"max_offset_ms":400,"video_base64":"GkXfo6NChoEBQveBAULygQRC84EIQoKIbWF0cm9za2FCh4EEQoWBAhhTgGcBAAAAAAAJ3BFNm3TAv4RCKIveTbuLU6uEFUmpZlOsgaFNu4tTq4QWVK5rU6yBzE27jFOrhBJUw2dTrIIBzU27jFOrhBxTu2tTrIIJmuwBAAAAAAAAUwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFUmpZqa/hJvI5qoq17GDD0JATYCETGF2ZldBhExhdmZEiYhAoUAAAAAAABZUrmtA+7+E2ZgxFK4BAAA