Skip to content
pubscout

video_editor

3.0.0, released 3 years ago by legoffmael.dev

A Flutter package for trimming, cropping, rotating, and exporting videos with a customizable UI.

$ flutter pub add video_editor
Source repository

What it does

Provides a controller‑based API to load a video file, adjust trim and crop regions, rotate the clip, and select cover frames. It generates FFmpeg command strings for you to run the actual export yourself.

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

Use it when

  • You need on‑device video editing (trim, crop, rotate) with a flexible UI
  • You want full control over the export command (FFmpeg)
  • Your app targets Android and iOS

Skip it when

  • You require web or desktop video editing support (currently mobile only)
  • You need automatic export handling without writing your own FFmpeg integration

Strengths

  • Highly customizable UI and command generation
  • Supports both video and cover thumbnail selection
  • No native FFmpeg dependency in the package itself

Weaknesses

  • Export must be handled manually with another FFmpeg library
  • Limited to mobile platforms for now

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
5

Add video_editor to pubspec, ensure video_thumbnail and video_player are included, and integrate an FFmpeg runner (e.g., ffmpeg_kit_flutter) for export; requires Android/iOS permissions for file access.

final controller = VideoEditorController.file(File('path/video.mp4'));
await controller.initialize();
final config = VideoFFmpegVideoEditorConfig(controller);
final execute = await config.getExecuteConfig(); // run execute.command with ffmpeg_kit_flutter

Alternatives

Packages that do the same job and could replace video_editor.

Works with

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