video_editor_2
3.1.1, released 2 years ago by an unverified publisher
A Flutter video editor widget package supporting crop, trim, rotation, and cover selection.
What it does
Provides a customizable UI and a controller to edit videos in Flutter. It allows users to trim video durations, crop frames, rotate views, and pick cover images, generating configurations that can be exported using libraries like FFmpeg.
AI-written summary of version 3.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to build a video editing screen with custom UI in Flutter.
- Your app requires video trimming, cropping, rotation, and thumbnail selection capabilities.
Skip it when
- You only need basic video playback without editing features.
- You require an out-of-the-box native export pipeline bundled directly in the package without configuring external FFmpeg packages.
Strengths
- Highly flexible and customizable UI components for editing.
- Supports crop, trim, rotation, and cover selection out of the box.
- Platform-agnostic export configurations supporting platforms like web via FFmpeg.
Weaknesses
- Exporting requires manual integration with external libraries like FFmpeg.
- Has breaking changes in recent major versions regarding export methods.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Requires adding the dependency to pubspec.yaml and integrating a separate FFmpeg package (such as ffmpeg_kit_flutter) if video/cover file exporting is needed.
final VideoEditorController _controller = VideoEditorController.file(
XFile('/path/to/video.mp4'),
minDuration: const Duration(seconds: 1),
maxDuration: const Duration(seconds: 10),
);
@override
void initState() {
super.initState();
_controller.initialize().then((_) => setState(() {}));
}
@override
void dispose() {
_controller.dispose();
super.dispose();
}Alternatives
Packages that do the same job and could replace video_editor_2.
- video_editor
A Flutter package for trimming, cropping, rotating, and exporting videos with a customizable UI.
50Compare - 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_2: ones it builds on, ones built on it, and its own family.
- video_playervideo_editor_2 depends on itFlutter plugin for displaying inline video on Android, iOS, macOS, and web.
- cross_filevideo_editor_2 depends on itAn abstraction to allow working with files across multiple platforms.
- transparent_imagevideo_editor_2 depends on itA transparent image in Dart code, represented as a Uint8List.
- get_thumbnail_videovideo_editor_2 depends on itGenerates image thumbnails from local video files, URLs, or assets.