Skip to main content
Back to plugins
@capgo/capacitor-ffmpeg
Tutorial
@capgo/capacitor-ffmpeg

FFmpeg

Video encoding and processing powered by FFmpeg for compression and conversion

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

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.