Package Exports
- mp4mergerv2
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 (mp4mergerv2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
mp4merger
This module is used to merge two mp4 files together.
Installation
npm install mp4merger --saveUsage
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
