ffmpeg-simple

0.2.0 • Public • Published

ffmpeg-simple

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)

Install

npm i [-g] ffmpeg-simple

Usage

CLI

ffmpeg-simple <file-to-convert> [opts..]
ffs <file> [opts..]

Node

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', ...]
})

Readme

Keywords

none

Package Sidebar

Install

npm i ffmpeg-simple

Weekly Downloads

0

Version

0.2.0

License

none

Unpacked Size

48.5 kB

Total Files

8

Last publish

Collaborators

  • laggingreflex