VideoKit

VideoKit is a Dart package for manipulating video files using FFmpeg and FFprobe commands. It provides a variety of features such as muting, trimming, splitting, compressing, and retrieving video information.

Features

  • Mute video
  • Trim video
  • Get video duration
  • Split video
  • Compress video
  • Get video information

Getting started

This package supports both Main and LTS version of the FFmpeg implementation.

Main Release LTS Release
Android API Level 24 16
Android Camera Access Yes -
Android Architectures arm-v7a-neon
arm64-v8a
x86
x86-64
arm-v7a
arm-v7a-neon
arm64-v8a
x86
x86-64
iOS Min SDK 12.1 10
iOS Architectures arm64
arm64-simulator
arm64-mac-catalyst
x86-64
x86-64-mac-catalyst
armv7
arm64
i386
x86-64

To use VideoKit in your Dart project, add it to your pubspec.yaml file:

dependencies:
  videokit: ^1.0.0


Then, run flutter pub get to install the package.

Usage
Here's a quick example of how to use VideoKit:

// Mute a video
await VideoKit.muteVideo('input_video.mp4');

// Trim a video
await VideoKit.trimVideo('input_video.mp4', 10, 5); // Trims 5 seconds starting from the 10th second

// Get video information
var videoInfo = await VideoKit.getVideoInfo('input_video.mp4');
print('Video duration: ${videoInfo.duration} seconds');

// Compress a video
await VideoKit.compressVideo('input_video.mp4', 1000); // Compress with a bitrate of 1000 kbps