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_namestring——set format name
stream_indexint-1≥ -1set stream index
seek_pointfloat0≥ 0set seekpoint (seconds)
streamsstring——set streams
loopint1≥ 0set loop count
discontinuityint0≥ 0set discontinuity threshold
dec_threadsint0≥ 0set the number of threads for decoding
format_optsstring——set format options for the opened file

FFmpeg also names these options (use the parameter shown above): f → format_name, si → stream_index, sp → seek_point, s → streams.


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.