Skip to content
pubscout

light_compressor_v2

1.12.0, released 3 days ago by gurf.dev

Native video compression and editing for Flutter without FFmpeg

$ flutter pub add light_compressor_v2
Source repository

What it does

Compresses single or batch videos using platform hardware codecs (MediaCodec, AVFoundation). It supports target file sizes, trimming, rotating, colour adjustments, live progress tracking, and cancellation.

AI-written summary of version 1.11.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to reduce video file sizes before uploading or storing them locally.
  • You want native video compression without bundling large FFmpeg binaries.
  • You need live progress monitoring, background compression, or batch processing.

Skip it when

  • You are targeting web, Windows, or Linux platforms.
  • You require complex non-standard media format transcoding that hardware codecs do not support.

Strengths

  • Zero third-party dependencies and no FFmpeg binaries to bloat app size.
  • Hardware-accelerated native compression on Android, iOS, and macOS.
  • Includes batch support, background execution, cancellation, and live progress streams.

Weaknesses

  • Limited platform support (excludes web, Windows, and Linux).
  • Android re-encodes audio at the source sample rate without a resampler.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
0

Requires minimum SDK 24 on Android. Add storage permissions to AndroidManifest.xml and photo library usage description to iOS Info.plist if saving to gallery.

final Result result = await LightCompressor().compressVideo(
  path: '/path/to/source.mp4',
  videoQuality: VideoQuality.medium,
  video: Video(videoName: 'compressed.mp4'),
  android: AndroidConfig(isSharedStorage: true, saveAt: SaveAt.Movies),
  ios: IOSConfig(saveInGallery: true),
);

Alternatives

Packages that do the same job and could replace light_compressor_v2.