ガイド
FFmpegのチュートリアル
Using @capgo/capacitor-ffmpeg
Exposes the FFmpeg API to Capacitor.
インストール
bun add @capgo/capacitor-ffmpeg
bunx cap sync
このプラグインが公開するもの
getCapabilities- 現在のプラットフォームのマシン読み取り可能な能力マトリックスを返します。reencodeVideo- ビデオ再エンコードジョブをキューします。convertImage- 静止画像を別の形式に変換します。convertAudio- __CAPGO_KEEP_0__を別のコンテナまたはエンコードに変換します。
Example Usage
getCapabilities
現在のプラットフォームのマシン読み取り可能な能力マトリックスを返します。
import { CapacitorFFmpeg } from '@capgo/capacitor-ffmpeg';
await CapacitorFFmpeg.getCapabilities();
reencodeVideo
動画再エンコードジョブをキューします。
import { CapacitorFFmpeg } from '@capgo/capacitor-ffmpeg';
await CapacitorFFmpeg.reencodeVideo({} as ReencodeVideoOptions);
convertImage
静止画像を別の形式に変換します。
import { CapacitorFFmpeg } from '@capgo/capacitor-ffmpeg';
await CapacitorFFmpeg.convertImage({} as ConvertImageOptions);
convertAudio
Convert audio into another container or codec.
import { CapacitorFFmpeg } from '@capgo/capacitor-ffmpeg';
await CapacitorFFmpeg.convertAudio({} as ConvertAudioOptions);
Full Reference
- GitHub: https://github.com/Cap-go/capacitor-ffmpeg/
- Docs: /docs/plugins/ffmpeg/
Keep going from Using @capgo/capacitor-ffmpeg
Capacitor-ffmpegを使用している場合 Using @capgo/capacitor-ffmpeg to plan dashboard and API operations, connect it with @capgo/capacitor-ffmpeg for the implementation detail in @capgo/capacitor-ffmpeg, はじめに Capacitor-ffmpegの実装詳細についてははじめにを参照 API Overview for the implementation detail in API Overview, 導入 Capacitor-ffmpegの実装詳細については導入を参照 API Keys for the implementation detail in API Keys.