Skip to content
pubscout

ffmpeg_kit_flutter_new

4.7.2, released 3 days ago by antonkarpenko.com

Run FFmpeg and FFprobe commands from Dart on Android, iOS, macOS, Windows and Linux.

Rock solid
$ flutter pub add ffmpeg_kit_flutter_new
Source repository

What it does

Provides a Dart API to execute FFmpeg/FFprobe commands across all major desktop and mobile platforms. Includes pre‑built native libraries with full codec support, including GPL codecs, and offers hardware‑accelerated encoding/decoding where available.

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

Use it when

  • You need to transcode, filter or analyze media files within a Flutter app.
  • You require GPL‑licensed codecs (e.g., x264, x265) or hardware acceleration on iOS/macOS.

Skip it when

  • App size must be minimal and you can’t afford the large native binaries.
  • Your project cannot use GPL‑licensed code due to licensing constraints.

Strengths

  • Full codec set including GPL codecs
  • Pre‑built native libraries – no manual compilation
  • Cross‑platform support (Android, iOS, macOS, Windows, Linux)
  • Hardware‑accelerated video processing on Apple platforms

Weaknesses

  • Large binary size due to bundled libraries
  • GPL license may be incompatible with some commercial projects

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:ffmpeg_kit_flutter_new/ffmpeg_kit.dart';

final session = await FFmpegKit.execute('-i input.mp4 -c:v mpeg4 output.mp4');
final returnCode = await session.getReturnCode();
if (ReturnCode.isSuccess(returnCode)) {
  // Success
} else if (ReturnCode.isCancel(returnCode)) {
  // Cancelled
} else {
  // Failed: inspect await session.getLogs()
}

Alternatives

Packages that do the same job and could replace ffmpeg_kit_flutter_new.

Works with

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