Packaging of ffmpeg split/concat used for Al Jazeera's PalestineRemix project.
npm i ffmpeg-remix
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) {
// …
});
MIT © Laurian Gridinoc