Makes using ffmpeg in NodeJS (and via CLI) simpler with a bunch of frequently used helpers (cut, concat, speed, rotate) and simpler params passing (input, filters)
npm i [-g] ffmpeg-simple
ffmpeg-simple <file-to-convert> [opts..]
ffs <file> [opts..]
const { ffmpeg, ffprobe, concat ... } = require('ffmpeg-simple')
const { output, size, duration } = await ffmpeg({
input: 'file.mp4',
codec: 'hevc_nvenc',
preset: 'slow',
quality: 30,
speed: 2,
// audio: false,
audioChannels: 1,
})
const output = await concat({
inputs: ['file1.mp4', 'file2.mp4', ...]
})