Menu

Tree [ecadba] master /
 History

HTTPS access


File Date Author Commit
 android 2024-10-31 Yaakov Schectman Yaakov Schectman [4abdb4] Removes v1 embedding references, bumps version
 example 2024-10-31 Yaakov Schectman Yaakov Schectman [4abdb4] Removes v1 embedding references, bumps version
 ios 2022-05-05 ppsaww ppsaww [980290] Bug fix can't cancelCompression on iOS.
 lib 2022-11-26 James Dixon James Dixon [65dd96] fix missing import
 macos 2021-07-13 Yaniv Shaked Yaniv Shaked [ef123a] [Resolution Presets] Support for resolution pre...
 test 2021-03-31 Jonatas Borges Jonatas Borges [e39445] update to 3.0.0
 .all-contributorsrc 2020-10-14 allcontributors[bot] allcontributors[bot] [087dee] docs: update .all-contributorsrc [skip ci]
 .gitignore 2020-03-29 jonataslaw jonataslaw [e750bc] initial release
 .metadata 2020-03-29 jonataslaw jonataslaw [e750bc] initial release
 CHANGELOG.md 2024-10-31 Yaakov Schectman Yaakov Schectman [4abdb4] Removes v1 embedding references, bumps version
 LICENSE 2020-03-29 jonataslaw jonataslaw [e750bc] initial release
 README.md 2021-07-16 Jonny Borges Jonny Borges [81676d] update to 3.1.0
 pubspec.yaml 2024-10-31 Yaakov Schectman Yaakov Schectman [4abdb4] Removes v1 embedding references, bumps version

Read Me

video_compress

Compress videos, remove audio, manipulate thumbnails, and make your video compatible with all platforms through this lightweight and efficient library.
100% 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.
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.
All video files are encoded in an MP4 container with AAC audio that allows 100% compatibility with safari, mozila, chrome, android and iOS.

Works on ANDROID, IOS and desktop (just MacOS for now).

Table of Contents

Lets Get Started

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  video_compress: ^3.1.0

2. Install it

You can install packages from the command line:

with pub:

$  pub get

3. Import it

Now in your Dart code, you can use:

import 'package:video_compress/video_compress.dart';

How to use

Imports

import 'package:video_compress/video_compress.dart';

Video compression

MediaInfo mediaInfo = await VideoCompress.compressVideo(
  path,
  quality: VideoQuality.DefaultQuality, 
  deleteOrigin: false, // It's false by default
);

Check compress state

VideoQuality.isCompressing

acknowledgment

Inspired by the flutter_ffmpeg library.
https://github.com/rurico/flutter_video_compress

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.