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.
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_flutterAlternatives
Packages that do the same job and could replace video_editor.
- video_editor_2
A Flutter video editor widget package supporting crop, trim, rotation, and cover selection.
45Compare - video_player_android
Android implementation of the video_player plugin
88Compare - video_player_avfoundation
iOS and macOS implementation of the video_player plugin
86Compare - video_trimmer
Trim videos in Flutter on Android, iOS, macOS, and the web
83Compare
Works with
Packages commonly used together with video_editor: ones it builds on, ones built on it, and its own family.
- path_providervideo_editor depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- video_playervideo_editor depends on itFlutter plugin for displaying inline video on Android, iOS, macOS, and web.
- video_thumbnailvideo_editor depends on itGenerates image thumbnails from local video files or URLs on Android and iOS.
- transparent_imagevideo_editor depends on itA transparent image in Dart code, represented as a Uint8List.