video_compress
3.1.4, released 2 years ago by getx.site
Compress videos, remove audio, generate thumbnails in Flutter
Quiet but busy
What it does
A lightweight library that compresses videos, optionally removes audio, and creates thumbnails. All output is MP4 with AAC audio for maximum compatibility.
AI-written summary of version 3.1.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to reduce video size before upload or storage
- You want a quick thumbnail for a video file
- You need a cross‑platform solution without FFMPEG
Skip it when
- You require advanced video editing (trim, merge, filters)
- You need a full media player or streaming support
- You need to support Android 9 or lower
Strengths
- Native implementation, no FFMPEG dependency
- Supports Android, iOS and macOS
- Simple API, no extra code generation
- Produces universally compatible MP4/AAC output
Weaknesses
- No trim or advanced editing features
- Cancel compression only on Android (iOS cancel fixed but limited)
- Limited to MP4 container
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add dependency, run pub get, no special permissions required
import 'package:video_compress/video_compress.dart';
MediaInfo info = await VideoCompress.compressVideo(
path,
quality: VideoQuality.DefaultQuality,
deleteOrigin: false,
);Alternatives
Packages that do the same job and could replace video_compress.
- fc_native_video_thumbnail
Generate video thumbnails using native platform APIs
80Compare - video_player_android
Android implementation of the video_player plugin
88Compare - video_player_avfoundation
iOS and macOS implementation of the video_player plugin
86Compare - native_video_player
A Flutter widget to play videos on iOS and Android using a native implementation.
67Compare