カテゴリー・パッケージ・リポジトリを検索

パッケージ詳細v1.0.6+1

tapioca

Tapioca は、Android および iOS での動画編集用の Flutter プラグインです。

AndroidiOS
30日間ダウンロード
36
いいね数
151
Pub ポイント
140

パッケージをインストール

flutter pub add tapioca

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Tapioca は、Android および iOS プラットフォーム上で動画編集機能を可能にする Flutter プラグインです。開発者が Flutter アプリ内ですべての基本的な動画操作(トリミング、マージ、フィルターの適用など)を直接行えるようにします。シームレスな統合を目的として設計されており、モバイルプラットフォーム間で一貫した 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

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。