Skip to content

Avsynctest

Audio Video Multiple outputs Source

Generate an Audio Video Sync Test.

FFmpeg filter: avsynctest — the official reference.

Generate a stream. Avsynctest is a source — it has no input, so you create a stream from it rather than applying it to one:

$video = \FFmpeg\VideoStream::generate(new Avsynctest(…));

apply() and addFilter() do not apply to source filters (there is nothing to attach them to).

TODO — when this filter shines: what it’s the right tool for, what to reach for instead when it isn’t, and how it composes with neighbouring filters.

TODO — prose: how the filter actually works and what its key parameters mean (the explanation FFmpeg’s terse option help omits).

TODO — runnable PHP, with the equivalent ffmpeg CLI alongside.

TODO

TODO

ParameterTypeDefaultRange / valuesDescription
sizestringhd720—set frame size
frameratestring30—set frame rate
samplerateint441008000–384000set sample rate
amplitudefloat0.70–1set beep amplitude
periodint31–99set beep period
delayint0-30–30set flash delay
cycleboolfalse—set delay cycle
durationint0≥ 0set duration
fgstringwhite—set foreground color
bgstringblack—set background color
agstringgray—set additional color

FFmpeg also names these options (use the parameter shown above): s → size, fr → framerate, sr → samplerate, a → amplitude, p → period, dl → delay, c → cycle, d → duration.


Maps to FFmpeg’s avsynctest filter. Verified against ffmpeg n7.1.1.

An Artisan Build project.

Built on FFmpeg — an independent binding, not affiliated with or endorsed by the FFmpeg project. Support FFmpeg.