pro_video_editor 0.1.0 copy "pro_video_editor: ^0.1.0" to clipboard
pro_video_editor: ^0.1.0 copied to clipboard

A Flutter video editor: Seamlessly enhance your videos with user-friendly editing features.

Logo

pub package Sponsor License GitHub issues

pro_video_editor is an upcoming Flutter package designed to provide advanced video editing capabilities. This package will serve as an extension for the pro_image_editor.

Table of contents #

Preview #

Main-Editor Paint-Editor
Main-Editor Paint-Editor

Features #

Method Android iOS macOS Windows Linux Web
Metadata βœ… βœ… βœ… βœ… ⚠️ βœ…
Thumbnails βœ… βœ… βœ… ❌ ❌ βœ…
KeyFrames βœ… βœ… βœ… ❌ ❌ βœ…
Rotate βœ… βœ… βœ… ❌ ❌ 🚫
Flip βœ… βœ… βœ… ❌ ❌ 🚫
Crop βœ… βœ… βœ… ❌ ❌ 🚫
Scale βœ… βœ… βœ… ❌ ❌ 🚫
Trim βœ… βœ… βœ… ❌ ❌ 🚫
Playback-Speed βœ… βœ… βœ… ❌ ❌ 🚫
Remove-Audio βœ… βœ… βœ… ❌ ❌ 🚫
Overlay Layers βœ… βœ… βœ… ❌ ❌ 🚫
Multiple ColorMatrix 4x5 βœ… βœ… βœ… ❌ ❌ 🚫
Blur background πŸ§ͺ πŸ§ͺ πŸ§ͺ ❌ ❌ 🚫
Custom Audio Tracks ❌ ❌ ❌ ❌ ❌ 🚫
Merge Videos ❌ ❌ ❌ ❌ ❌ 🚫
Censor-Layers "Pixelate" ❌ ❌ ❌ ❌ ❌ 🚫

Legend

  • βœ… Supported with Native-Code
  • ⚠️ Supported with Native-Code but not tested
  • πŸ§ͺ Supported but visual output can differs from Flutter
  • ❌ Not supported but planned
  • 🚫 Not supported and currently not planned

Setup #

Android, iOS, macOS, Linux, Windows, Web

No additional setup required.

Usage #

Metadata

VideoMetadata result = await ProVideoEditor.instance.getMetadata(
    video: EditorVideo.asset('assets/my-video.mp4'),
);

Thumbnails

List<Uint8List> result = await ProVideoEditor.instance.getThumbnails(
    ThumbnailConfigs(
        video: EditorVideo.asset('assets/my-video.mp4'),
        outputFormat: ThumbnailFormat.jpeg,
        timestamps: const [
            Duration(seconds: 10),
            Duration(seconds: 15),
            Duration(seconds: 22),
        ],
        outputSize: const Size(200, 200),
        boxFit: ThumbnailBoxFit.cover,
    ),
);

Keyframes

List<Uint8List> result = await ProVideoEditor.instance.getKeyFrames(
    KeyFramesConfigs(
        video: EditorVideo.asset('assets/my-video.mp4'),
        outputFormat: ThumbnailFormat.jpeg,
        maxOutputFrames: 20,
        outputSize: const Size(200, 200),
        boxFit: ThumbnailBoxFit.cover,
    ),
);

Render

/// Every option except videoBytes is optional.
var data = RenderVideoModel(
    video: EditorVideo.asset('assets/my-video.mp4'),
    // Other supported constructors:
    // video: EditorVideo.file(File('/path/to/video.mp4')),
    // video: EditorVideo.network('https://example.com/video.mp4'),
    // video: EditorVideo.memory(videoBytes),
    
    imageBytes: imageBytes, /// A image "Layer" which will overlay the video.
    outputFormat: VideoOutputFormat.mp4,
    transform: const ExportTransform(
        flipX: true,
        flipY: true,
        x: 10,
        y: 20,
        width: 300,
        height: 400,
        rotateTurns: 3,
        scaleX: .5,
        scaleY: .5,
    ),
    colorMatrixList: [
         [ 1.0, 0.0, 0.0, 0.0, 50.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0 ],
         [ 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0 ],
    ],
    enableAudio: false,
    playbackSpeed: 2,
    startTime: const Duration(seconds: 5),
    endTime: const Duration(seconds: 20),
    blur: 10,
);

Uint8List result = await ProVideoEditor.instance.renderVideo(data);

Sponsors #

Included Packages #

A big thanks to the authors of these amazing packages.

Contributors #

Made with contrib.rocks.

64
likes
0
points
9.83k
downloads

Publisher

verified publisherwaio.ch

Weekly Downloads

A Flutter video editor: Seamlessly enhance your videos with user-friendly editing features.

Repository (GitHub)
View/report issues

Topics

#video-editor #video #movie #editor

Documentation

Documentation

Funding

Consider supporting this project:

github.com

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, http, mime, plugin_platform_interface, web

More

Packages that depend on pro_video_editor

Packages that implement pro_video_editor