video_toolbox 1.0.0 copy "video_toolbox: ^1.0.0" to clipboard
video_toolbox: ^1.0.0 copied to clipboard

PlatformiOSmacOS

video compression using the Video Toolbox API

video_toolbox #

A Dart package that provides video compression using the Video Toolbox API.

Usage #

Import the package #

import 'package:video_toolbox/video_toolbox.dart';

Compress a video #

void main() async {
  final videoToolbox = VideoToolbox();

  await videoToolbox.compressVideo(
    inputPath: "/path/to/input/video.mp4",
    outputPath: "/path/to/output/video.mp4",
    destBitRate: 1000000, // in bits per second
    destWidth: 1280,
    destHeight: 720,
  );

  print("Video compression completed.");
}
2
likes
150
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

video compression using the Video Toolbox API

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on video_toolbox