Skip to content
pubscout

ffmpeg_cli

0.3.0, released 3 years ago by flutterbountyhunters.com

Run FFMPEG CLI commands from Dart.

$ flutter pub add ffmpeg_cli
Source repository

What it does

Allows you to configure and execute FFMPEG and FFPROBE CLI commands directly using Dart code. It provides classes to build filter graphs, inputs, outputs, and arguments for audio and video processing.

AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to process audio or video files using FFMPEG within a Dart or Flutter project.
  • You prefer writing structured Dart objects over raw command-line strings for FFMPEG commands.

Skip it when

  • FFMPEG is not installed on the target device or system path.
  • You need comprehensive and complete FFPROBE support for every possible output property immediately.

Strengths

  • Purposefully retains the full complexity of FFMPEG so anything the CLI can do is possible.
  • Structured Dart API for building complex filter graphs and commands.

Weaknesses

  • Requires FFMPEG to be separately installed on the host device.
  • FFPROBE support is partial and properties are added as discovered due to the large scope.

Setup

Kind
Pure Dart
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
3

Make sure that ffmpeg is installed on your device and is available on your system path.

final command = FfmpegCommand(inputs: [FfmpegInput.asset('assets/input.mp4')], outputFilepath: '/my/output/file.mp4');
final process = await Ffmpeg().run(command: command);

Alternatives

Packages that do the same job and could replace ffmpeg_cli.

Works with

Packages commonly used together with ffmpeg_cli: ones it builds on, ones built on it, and its own family.