Get media information # final info = await VideoCompress.getMediaInfo(videopath)
Get File thumbnail from VideoPath # final thumbnailFile = await VideoCompress.getFileThumbnail( Get memory thumbnail from VideoPath # final uint8list = await VideoCompress.getByteThumbnail( Video compression # MediaInfo mediaInfo = await pressVideo(ĭeleteOrigin: false, // It's false by defaultĬheck compress state # VideoQuality.isCompressing
How to use # Imports # import 'package:video_compress/video_compress.dart' Now in your Dart code, you can use: import 'package:video_compress/video_compress.dart' You can install packages from the command line: Compress videos, remove audio, manipulate thumbnails, and make your video compatible with all platforms through this lightweight and efficient library. Table of Contents #Īdd this to your package's pubspec.yaml file: dependencies:
Works on ANDROID, IOS and desktop (just MacOS for now). In addition, google chrome uses VP8/VP9, safari uses h264, and most of the time, it is necessary to encode the video in two formats, but not with this library.Īll video files are encoded in an MP4 container with AAC audio that allows 100% compatibility with safari, mozila, chrome, android and iOS. Compress videos, remove audio, manipulate thumbnails, and make your video compatible with all platforms through this lightweight and efficient library.ġ00% native code was used, we do not use FFMPEG as it is very slow, bloated and the GNU license is an obstacle for commercial applications.