1.0.8 • Published 7 years ago
mp4mergerv2 v1.0.8
mp4merger
This module is used to merge two mp4 files together.
Installation
npm install mp4merger --save
Usage
const Media = require('mp4merger');
const media = new Media();
var pathToVideos = "C:/videos/location";
var pathToOutput = "C:/output/location/";
var rgxStr = "/(.*)/";
media.merge(pathToVideos, pathToOutput, rgxStr)
.then(function(sol) {
console.log(sol);
})
.catch(function(err) {
console.error(err);
});
Dependencies
- ffmpeg-static: ffmpeg static binaries for Mac OSX and Linux and Windows
- fs-extra: fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.
License
ISC