Skip to content

Signature

Video Single output Transform

Calculate the MPEG-7 video signature

FFmpeg filter: signature — the official reference.

Add it to a graph. The explicit form works for every filter — bind it to its inputs and read the result from outputs():

$node = $video->addFilter(new Signature(…), [$other]);
$result = $node->outputs()[0];

Shorthand. Single-output filters can skip the node — apply() returns the result stream directly:

$result = $video->apply(new Signature(…), $other);

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
detectmodeSignatureModeoffoff, full, fastset the detectmode
nb_inputsint1≥ 1number of inputs
filenamestring——filename for output files
formatSignatureFormatbinarybinary, xmlset output format
th_dint9000≥ 1threshold to detect one word as similar
th_dcint60000≥ 1threshold to detect all words as similar
th_xhint116≥ 1threshold to detect frames as similar
th_diint0≥ 0minimum length of matching sequence in frames
th_itfloat0.50–1threshold for relation of good to all frames

Maps to FFmpeg’s signature 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.