Skip to content

Il

Video Single output Transform

Deinterleave or interleave fields.

FFmpeg filter: il — the official reference.

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

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

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

$result = $video->apply(new Il(…));

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
luma_modeIlLumaModenonenone, interleave, deinterleaveselect luma mode
chroma_modeIlChromaModenonenone, interleave, deinterleaveselect chroma mode
alpha_modeIlAlphaModenonenone, interleave, deinterleaveselect alpha mode
luma_swapboolfalse—swap luma fields
chroma_swapboolfalse—swap chroma fields
alpha_swapboolfalse—swap alpha fields

FFmpeg also names these options (use the parameter shown above): l → luma_mode, c → chroma_mode, a → alpha_mode, ls → luma_swap, cs → chroma_swap, as → alpha_swap.


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