ffmpeg-remix
v0.1.0
Published
ffmpeg slice/concat
Downloads
13
Readme
ffmpeg-remix
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