搜尋分類、套件與程式碼儲存庫

套件詳情v1.0.6+1

tapioca

Tapioca 是一個用於 Android 和 iOS 上影片編輯的 Flutter 插件。

AndroidiOS
近 30 天下載
36
喜歡數
151
Pub 分數
140

安裝套件

flutter pub add tapioca

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Tapioca 是一個 Flutter 插件,可在 Android 和 iOS 平台上實現影片編輯功能。它允許開發者在 Flutter 應用中直接執行基本的影片操作,例如剪輯、合併和套用濾鏡。Tapioca 設計用於無縫整合,透過提供跨行動平台的一致 API 簡化多媒體處理。此插件特別適用於需要在裝置上進行影片編輯而無需依賴外部服務的應用程式。其輕量級特性與原生效能使其非常適合即時影片處理任務。

適用情境

  • 移動應用中的影片剪輯
  • 合併多個視頻片段
  • 應用基本影片濾鏡
  • 設備端影片處理
  • 在Flutter應用中創建視頻編輯功能

主要特色

  • 跨平台影片編輯
  • 對 Android 和 iOS 的支援
  • 影片操作的簡單 API
  • 輕便高效
  • 原生效能用於影片操作

適合對象

  • Flutter 開發者建構以影片為中心的應用程式
  • 需要設備端影片編輯的應用
  • 尋求跨平台多媒體解決方案的開發者
  • 需要最少影片處理開銷的專案
  • 帶有使用者產生影片內容的行動應用程式

使用建議

  • 僅限基本影片編輯功能
  • 不支援進階效果或轉場
  • 依賴於平台特定的視頻編解碼器
  • 需要仔細處理大型視頻文件
  • 在邊緣情況下可能具有平台特定的限制

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Tapioca - a Flutter plugin for video editing

Version Generic badge Discord tippin.me

codecov Tapioca is a Flutter plugin for video editing on Android and iOS.

Note: Feedback welcome and Pull Requests are most welcome!

Previews


No filter

Apply pink filter

Apply blue filter

Apply text filter

Apply image filter

Features

  • Develop for iOS and Android from a single codebase
  • Edit videos(Apply filter, Overlay text and images)

Installation

First, add tapioca as a dependency in your pubspec.yaml file.

iOS

Add the following entry to your Info.plist file, located in <project root>/ios/Runner/Info.plist:

  • NSPhotoLibraryUsageDescription - Specifies the reason for your app to access the user’s photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
  • NSPhotoLibraryAddUsageDescription - Specifies the reason for your app to get write-only access to the user’s photo library. This is called Privacy - Photo Library Additions Usage Description in the visual editor.
Android

Step 1. Ensure the following permission is present in your Android Manifest file, located in <project root>/android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Step 2. Add the JitPack repository to your Android build file, located in <project root>/android/build.gradle:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Usage

import 'package:tapioca/tapioca.dart';
import 'package:path_provider/path_provider.dart';

final tapiocaBalls = [
    TapiocaBall.filter(Filters.pink),
    TapiocaBall.imageOverlay(imageBitmap, 300, 300),
    TapiocaBall.textOverlay("text",100,10,100,Color(0xffffc0cb)),
];
var tempDir = await getTemporaryDirectory();
final path = '${tempDir.path}/result.mp4';
final cup = Cup(Content(videoPath), tapiocaBalls);
cup.suckUp(path).then((_) {
  print("finish processing");
});
TapiocaBall

TapiocaBall is a effect to apply to the video.

TapiocaBall Effect
TapiocaBall.filter(Filters filter) Apply color filter
TapiocaBall.textOverlay(String text, int x, int y, int size, Color color) Overlay text
TapiocaBall.imageOverlay(Uint8List bitmap, int x, int y) Overlay images

Content

Content is a class to wrap a video file.

Cup

Cup is a class to wrap a Content object and List<TapiocaBall> object.

You can edit the video by executing .suckUp().

Supported Formats

  • On iOS, the backing video editor is AVFoundation. please refer here for list of supported video formats.
  • On Android, the backing video editor is Mp4Composer-android, The supported format is only MP4.

Articles

Contributing

Contributions are welcomed!

  • Report bugs and scenarios that are difficult to implement
  • Report parts of the documentation that are unclear
  • Update the documentation / add examples
  • Implement new features by making a pull-request

Please see the following guidelines when modifying the repository
Contributing

Community

Questions and proposals are most welcome!
Discord Banner 4

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。