media_tools 1.0.1+1 copy "media_tools: ^1.0.1+1" to clipboard
media_tools: ^1.0.1+1 copied to clipboard

A package that provide some functions to handle with media file

Media Tools #

A package that provide some functions to handle with media file

Getting started #

Depend on it #

dependencies:
  media_tools: ^latest

Functions #

  • cut (audio, video), concat (audio, video), getDuration (audio, video), convert video -> audio

Usage #

I use the ffmpeg_kit_flutter_full package which requires a higher Android SDK version. So please modify your build.gradle (app) file as follows to avoid errors.

defaultConfig {
  ...
  minSdkVersion 24
  ...
}

AudioTools.cutAudio(...) return audio file path after cutting

import 'package:media_tools/src/audio_tools.dart';
...
var startPoint = 15.0; // the start time you want
var endPoint = 45.0; // end time
var pathToFile = 'path/to/audio-file.mp3'; //path to your file
var result = await AudioTools.cutAudio(pathToFile, startPoint, endPoint);
...
4
likes
150
points
11
downloads

Publisher

verified publishersondv.dev

Weekly Downloads

A package that provide some functions to handle with media file

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffmpeg_kit_flutter_full, flutter, path_provider

More

Packages that depend on media_tools