Skip to content
pubscout

video_compress

3.1.4, released 2 years ago by getx.site

Compress videos, remove audio, generate thumbnails in Flutter

Quiet but busy
$ flutter pub add video_compress
Source repository

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.