flutter_video_compress

A flutter plugin, compress video in a new path, delete or not. get media thumbnail by unit8list, you can select quality.

pub version license github stars

Methods

FunctionParameterDescriptionReturn
getThumbnailString path, int qualityReturn a thumbnail of the video from the input file uriUint8List bitmap
compressVideoString path, bool deleteOriginCompress the video file and return a new pathString path

Usage

Creating instance.

FlutterVideoCompress _flutterVideoCompress = FlutterVideoCompress();

Get a video file thumbnail

final Uint8List _image = await _flutterVideoCompress
  .getThumbnail(path: file.path, quality: 50)

Compress a Video

final String newPath = await _flutterVideoCompress
  .compressVideo(path: file.path, deleteOrigin: true);
  
print(newPath);

Libraries

flutter_video_compress