Skip to content
pubscout

v_video_compressor

3.0.1, released 10 days ago by vchatsdk.com

Flutter plugin for video compression and thumbnail generation using native APIs.

WASM-ready
$ flutter pub add v_video_compressor
Source repository

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.

Works with

Packages commonly used together with v_video_compressor: ones it builds on, ones built on it, and its own family.