분류, 패키지 및 저장소 검색

패키지 상세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
  • 경량이고 효율적
  • 비디오 작업을 위한 네이티브 성능

적합한 대상

  • 비디오 중심 앱을 구축하는 플러터 개발자
  • 기기 내 동영상 편집이 필요한 앱
  • 크로스 플랫폼 멀티미디어 솔루션을 찾는 개발자
  • 최소한의 비디오 처리 오버헤드를 필요로 하는 프로젝트
  • 사용자 생성 비디오 콘텐츠를 갖춘 모바일 앱

고려 사항

  • 기본 비디오 편집 기능에 제한됨
  • 고급 효과 또는 전환에 대한 지원 없음
  • 플랫폼 고유의 비디오 코덱에 의존
  • 큰 비디오 파일을 조심스럽게 다뤄야 합니다
  • 에지 케이스에서 플랫폼별 제한 사항이 있을 수 있습니다

원본 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

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.