Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 1.61 KB

README.md

File metadata and controls

59 lines (45 loc) · 1.61 KB

ffmpeg-remix

NPM version Build Status Coveralls Status Dependency Status Downloads

Packaging of ffmpeg split/concat used for Al Jazeera's PalestineRemix project.

Install

npm i ffmpeg-remix

Usage

import remix from 'ffmpeg-remix';

remix({
  output: 'a.mp4',
  input: [
    {
      source: 'foo/bar.mp4',
      start:  23.4, // default 0
      end:    47.2  // default EOF
    },
    {
      source:   'http://baz.org/foo.mp4',
      start:    23.4, // default 0
      duration: 7.2   // end has precedence
    }
  ],
  limit: 5, // max ffmpeg parallel processes, default null (unlimited)
  ffmpegPath: require('ffmpeg-static').path // optionally set path to ffmpeg binary
}, function(err, result) {
  // …
});

License

MIT © Laurian Gridinoc