From e42523d5728acf756e2f97d0a13cd8f49172d865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Le=20Goff?= Date: Mon, 26 Jun 2023 21:20:58 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20=20release=203.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 38 +++++++++++++++++++++++++++++++++++++- README.md | 3 +++ example/pubspec.yaml | 2 +- pubspec.yaml | 2 +- 4 files changed, 42 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d48f236f..17df3fff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,43 @@ +## 3.0.0 + +> **Note** +> If you continue to use the previous versions (from 1.2.3 to 2.4.0) your project might be subject to a GPL license. + +- Removed dependency to FFmpeg from this package ([reasons](https://github.com/LeGoffMael/video_editor#1-why-was-ffmpeg-removed-from-this-package-)) + +Before: + +```dart +// Basic export video function +Future exportVideo() => _controller.exportVideo( + onCompleted: (file) {}, // show the exported video +); +``` + +After: +```dart +/// Basic export video function +Future exportVideo() async { + // You could generate your command line yourself or if you want to continue to use FFmpeg : + final config = VideoFFmpegVideoEditorConfig(_controller); + // Returns the generated command and the output path + final FFmpegVideoEditorExecute execute = await config.getExecuteConfig(); + + // ... handle the video exportation yourself, using ffmpeg_kit_flutter, your own video server, ... (more example in the example app) +} +``` + +- New complete control over the command generation using `commandBuilder` in `VideoFFmpegVideoEditorConfig` +- Fix assert error while triming [#157](https://github.com/LeGoffMael/video_editor/issues/157) +- New `coverThumbnailsQuality` and `trimThumbnailsQuality` in controller + - Removed `quality` in `CoverSelection` + - Removed `quality` in `ThumbnailSlider` + - Removed `quality` in `TrimSlider` + ## 2.4.0 - Fix update TrimSlider trim values from controller [#141](https://github.com/LeGoffMael/video_editor/pull/141) -- Add `scrollController` param in TrimSlider [#139](https://github.com/LeGoffMael/video_editor/pull/139) +- Add `scrollController` param in TrimSlider [#139](https://github.com/LeGoffMael/video_editor/pull/139) by [@jcsena](https://github.com/jcsena) - Some controller's methods name has been changed : diff --git a/README.md b/README.md index 56d162e2..ca76fe46 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,9 @@ The library provides some tools to execute the exportation but does not handle i This library is written in Dart only but uses external packages such as [video_thumbnail](https://pub.dev/packages/video_thumbnail), which makes it available only on iOS and Android plaforms for now ((web support is currently in progress)[https://github.com/LeGoffMael/video_editor/pull/147]). +> **Note** +> If you use a version between (1.2.3 and 2.4.0) your project might be subject to a GPL license. + ## 📖 Installation Following steps will help you add this library as a dependency in your flutter project. diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 73d5e61b..5fed6a4f 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -2,7 +2,7 @@ name: video_editor_example description: The example project for the video_editor package. publish_to: "none" -version: 2.4.0+1 +version: 3.0.0+1 environment: flutter: ">=3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 53d17b1c..1c8c2d5d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: video_editor -version: 2.4.0 +version: 3.0.0 description: | A flutter package for editing video with fully customizable UI. Supports crop, trim, rotation and cover selection.