Skip to content

Amovie

Audio Multiple outputs Source

Read audio from a movie source.

FFmpeg filter: amovie — the official reference.

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

$audio = \FFmpeg\AudioStream::generate(new Amovie());

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
filenamestring
format_namestringset format name
stream_indexint-1-1set stream index
seek_pointfloat00set seekpoint (seconds)
streamsstringset streams
loopint10set loop count
discontinuityint00set discontinuity threshold
dec_threadsint00set the number of threads for decoding
format_optsstringset format options for the opened file

FFmpeg also names these options (use the parameter shown above): fformat_name, sistream_index, spseek_point, sstreams.


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