FfmpegRunner class abstract interface

An FFmpeg runtime that can probe its version and run one encode from a pre-built argument array.

Two implementations exist: ProcessFfmpegRunner spawns a native binary (desktop/CI) and WasmFfmpegRunner drives ffmpeg.wasm in a browser. All argument planning happens upstream in FfmpegArgsBuilder, so both runtimes execute the identical, fully-validated plan — a provider never composes or rewrites arguments.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode({required List<String> args, required Directory sandbox}) Future<void>
Runs one encode with exactly args, resolving every relative file name against sandbox (the per-render temp directory that confines all inputs and the output).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
probeVersion() Future<FfmpegVersion?>
The runtime's FFmpeg version, or null for an embedded runtime that has no honest banner to parse (ffmpeg.wasm ships a pinned build).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited