v_video_compressor
3.0.1, released 10 days ago by vchatsdk.com
Flutter plugin for video compression and thumbnail generation using native APIs.
What it does
V Video Compressor compresses video files using native platform APIs (Media3 on Android and AVFoundation on iOS) without relying on FFmpeg. It provides real-time progress tracking, batch processing, thumbnail generation, cancellation support, and advanced configuration parameters like resolution, bitrate, cropping, and trimming.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to compress videos on Android and iOS before uploading or storing them.
- You want native performance and hardware acceleration without bloating app size with FFmpeg.
- You need real-time progress tracking or global progress streams during compression.
Skip it when
- You need to play media back within the app instead of compressing it.
- You need web or desktop support, as this package is limited to Android and iOS.
Strengths
- Uses native APIs (Media3 and AVFoundation) for optimal performance and smaller binary size.
- Provides a strongly typed global progress stream for tracking operations anywhere in the app.
- Offers rich advanced configuration options including custom cropping, trimming, codecs, and batch processing.
Weaknesses
- Limited platform support restricted only to Android and iOS.
- Requires native permission configurations for storage and photo libraries.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Requires adding storage and photo library permissions to AndroidManifest.xml and Info.plist, and targets minimum API 21 for Android and iOS 15 (SwiftPM) or iOS 12 (CocoaPods).
final VVideoCompressor _compressor = VVideoCompressor();
final compressionResult = await _compressor.compressVideo(
videoPath,
const VVideoCompressionConfig.medium(),
onProgress: (progress) {
print('Progress: $progress');
},
);Alternatives
Packages that do the same job and could replace v_video_compressor.
- 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 - light_compressor
A Flutter plugin for video compression on Android, iOS, and macOS.
30Compare
Works with
Packages commonly used together with v_video_compressor: ones it builds on, ones built on it, and its own family.
- plugin_platform_interfacev_video_compressor depends on itReusable base class for platform interfaces of Flutter federated plugins.
- v_story_viewerSame familyA high-performance Flutter story viewer package inspired by Instagram and WhatsApp stories.
- v_chat_voice_playerSame familyVoice message playback widget with animated waveform, speed controls, and user avatars.
- v_chat_mention_controllerSame familyFlutter text editing controller for styled mentions, debounced user search, and markup.
- v_chat_bubblesSame familyA comprehensive Flutter chat bubble library supporting Telegram, WhatsApp, Messenger, and iMessage styles.