Guide
Tutorial on FFmpeg
Using @capgo/capacitor-ffmpeg
Exposes the FFmpeg API to Capacitor.
Install
bun add @capgo/capacitor-ffmpeg
bunx cap sync
What This Plugin Exposes
getCapabilities- Return the machine-readable capability matrix for the current platform.reencodeVideo- Queue a video re-encode job.convertImage- Convert a still image into another format.convertAudio- Convert audio into another container or codec.
Example Usage
getCapabilities
Return the machine-readable capability matrix for the current platform.
import { CapacitorFFmpeg } from '@capgo/capacitor-ffmpeg';
await CapacitorFFmpeg.getCapabilities();
reencodeVideo
Queue a video re-encode job.
import { CapacitorFFmpeg } from '@capgo/capacitor-ffmpeg';
await CapacitorFFmpeg.reencodeVideo({} as ReencodeVideoOptions);
convertImage
Convert a still image into another format.
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
If you are using Using @capgo/capacitor-ffmpeg to plan dashboard and API operations, connect it with @capgo/capacitor-ffmpeg for the implementation detail in @capgo/capacitor-ffmpeg, Getting Started for the implementation detail in Getting Started, API Overview for the implementation detail in API Overview, Introduction for the implementation detail in Introduction, and API Keys for the implementation detail in API Keys.