JSPM

ffmpeg-splice

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

splice videos with ffmpeg

Package Exports

  • ffmpeg-splice

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 (ffmpeg-splice) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ffmpeg-splice

Splice videos with ffmpeg

require('ffmpeg-splice')({

  input: 'video.avi',
  splices: [
    {
      start: 10 * 1000,
      duration: 10 * 1000,
    },{
      start: 30 * 1000,
      duration: 5 * 1000,
    }
  ],
  output: 'spliced_video.avi', // will be the concatenation
                               // of the specified segments.
  tmpFolder: '/tmp',

}, function(err) {

  if(err) console.log(err)
  else console.log('done')

})

You need ffmpeg up and running to use this module.