FfmpegCommand class
FFMPEG CLI command.
The ffmpeg
CLI command is the primary CLI tool for FFMPEG. This class
is a Dart wrapper around that command.
inputs
should include all video, audio, image, and other assets
that are referenced in the desired command.
args
should include all CLI arguments for the desired command.
filterGraph
describes how the assets should be composed to form the
final video.
outputFilepath
is the path to where the final video should be stored
Constructors
-
FfmpegCommand.complex({String? ffmpegPath, List<
FfmpegInput> inputs = const [], List<CliArg> args = const [], required FilterGraph? filterGraph, required String outputFilepath}) -
const
-
FfmpegCommand.simple({String? ffmpegPath, List<
FfmpegInput> inputs = const [], List<CliArg> args = const [], required String outputFilepath}) -
const
Properties
-
args
→ List<
CliArg> -
All non-input arguments for the FFMPEG command, such as "map".
final
- ffmpegPath → String?
-
The path of the
ffmpeg
cli executable.final - filterGraph → FilterGraph?
-
The graph of filters that produce the final video.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputs
→ List<
FfmpegInput> -
FFMPEG command inputs, such as assets and virtual devices.
final
- outputFilepath → String
-
The file path for the rendered video.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
expectedCliInput(
) → String -
Returns a string that represents what this command is expected to
look like when run by a
Process
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCli(
) → CliCommand -
Converts this command to a series of CLI arguments, which can be
passed to a
Process
for execution. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited