Measures the audio-to-video offset (lip-sync error) of a clip with sync events s...
https://ton.halowerk.com/v1/av-sync-offsetOverview
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 peak −20 dB after at least 60 ms below peak −30 dB).