JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q27338F
  • License ISC

This module is used to merge two mp4 files together.

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

Build Status

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