JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q25361F
  • License MIT

A set of useful utilities for running ffmpeg with node

Package Exports

  • ff-util

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ff-util) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

FF Util

A set of useful utilities for running ffmpeg with node

Build Status npm version Coverage Status

Installation

First make sure you have the ffmpeg binary downloaded and globally accessible on your machine.

Next, install FF Util via NPM:

npm install ff-util

Usage

import { run } from 'ff-util';

const args = [
    '-i', './video.mov',
    './video.mp4'
]

run({args})
    .then(() => console.log('process complete!'))

With parsed progress:

import { run, parse } from 'ff-util';

const args = [
    '-i', './video.mov',
    './video.mp4'
]

const logger = (stdOut: string) => {
    const parsed = parse({ffProgressLine: stdOut})
    console.log({parsed})
}

run({args, logger})
    .then(() => console.log('process complete!'))

Planned features

Feature Status
Simple Runner
Progress Parser
Progress Percent & ETA
Pause/Resume process
Structured & typed ffmpeg args
Process splitter and restitcher for parallel encoding *
(*) Useful for blazing-fast transcoding in a distributed infrastructure like Kubernetes, AWS Lambda, etc.