TypeScript Native
Full TypeScript support with comprehensive type definitions, not just type declarations
Type-safe FFmpeg for Node.js with hardware acceleration and zero dependencies
import { FFmpeg, VideoCodec, AudioCodec } from 'ffmpeg-forge';
const ffmpeg = new FFmpeg();
await ffmpeg.convert({
input: 'input.mp4',
output: 'output.mp4',
video: {
codec: VideoCodec.H264,
bitrate: '2M',
size: '1920x1080',
},
audio: {
codec: AudioCodec.AAC,
bitrate: '128k',
},
});This package was created as a modern alternative to fluent-ffmpeg, which is no longer actively maintained. It provides:
npm install ffmpeg-forgeRequirements: