flutter_native_video_trimmer
1.1.9, released 2 years ago by tuankhoidev.com
A lightweight Flutter plugin for video trimming using platform-native code without FFmpeg.
What it does
Allows developers to load video files, trim them with millisecond precision, and clear cache using native Android Media3 and iOS AVFoundation implementations. It operates locally on the device without relying on heavy FFmpeg libraries.
AI-written summary of version 1.1.9, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to trim videos directly on device without bundling heavy FFmpeg binaries.
- You want lightweight native performance using Media3 on Android and AVFoundation on iOS.
Skip it when
- You need advanced video editing features like merging, cropping, or rotating multiple files.
- You require web or desktop support since only Android and iOS are supported.
Strengths
- No FFmpeg dependency, resulting in smaller app size and faster processing.
- Memory-efficient processing without loading entire files into memory.
- Precise millisecond trimming capabilities.
Weaknesses
- Limited only to video trimming; lacks advanced editing tools.
- Supports only Android and iOS platforms.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires minimum Android SDK 21 and minimum iOS 11.0.
final videoTrimmer = VideoTrimmer();
await videoTrimmer.loadVideo('/path/to/video.mp4');
final trimmedPath = await videoTrimmer.trimVideo(
startTimeMs: 0,
endTimeMs: 5000,
includeAudio: true,
);Alternatives
Packages that do the same job and could replace flutter_native_video_trimmer.
- video_player
If you primarily need to play media rather than manipulate and trim video files.
93Compare
Works with
Packages commonly used together with flutter_native_video_trimmer: ones it builds on, ones built on it, and its own family.