Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexbinary/ffmpeg-splice

Node.js module to splice audio & videos files with ffmpeg
https://github.com/alexbinary/ffmpeg-splice

Last synced: about 1 month ago
JSON representation

Node.js module to splice audio & videos files with ffmpeg

Awesome Lists containing this project

README

        

# ffmpeg-splice

> Splice videos with ffmpeg

## Install

```
npm install ffmpeg-splice
```

## Usage

```javascript

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](http://ffmpeg.org) up and running to use this module.