Skip to main content
플러그인으로 돌아가기
@capgo/capacitor-ffmpeg
튜토리얼
github.com/Cap-go에 의해

FFmpeg

비디오 인코딩 및 처리를 위한 압축 및 변환을 위한 FFmpeg로 동작

가이드

FFmpeg에 대한 튜토리얼

Using @capgo/capacitor-ffmpeg

API에서 Capacitor까지 FFmpeg를 공개합니다.

설치

bun add @capgo/capacitor-ffmpeg
bunx cap sync

이 플러그인이 공개하는 것

  • getCapabilities - 현재 플랫폼의 기계 읽기 가능한 기능 매트릭스를 반환합니다.
  • reencodeVideo - 비디오 재인코딩 작업을 큐합니다.
  • convertImage - STILL 이미지 형식을 다른 형식으로 변환합니다.
  • convertAudio - 오디오를 컨테이너 또는 코덱으로 변환합니다.

예시 사용

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

오디오를 다른 컨테이너 또는 코덱으로 변환합니다.

import { CapacitorFFmpeg } from '@capgo/capacitor-ffmpeg';

await CapacitorFFmpeg.convertAudio({} as ConvertAudioOptions);

전체 참조

Using @capgo/capacitor-ffmpeg에서 계속 진행하세요.

__CAPGO_KEEP_0__을 사용 중이시면 Using @capgo/capacitor-ffmpeg API 대시보드 및 API 작업을 계획하고 연결하려면 @API/__CAPGO_KEEP_1__-ffmpeg @capgo/capacitor-ffmpeg for the implementation detail in @capgo/capacitor-ffmpeg, Getting Started for the implementation detail in Getting Started, API 개요 for the implementation detail in API 개요, 인사말 for the implementation detail in 인사말, 그리고 API 키 for the implementation detail in API 키.