Skip to content

Commit

Permalink
Added video concatenation information to README.md
Browse files Browse the repository at this point in the history
Added video concatenation information to README.md, taken from commit: 2b1b48414a7b137b5b8c2176a43fe087b90316b7
  • Loading branch information
ferrants committed Mar 15, 2013
1 parent 378dfed commit b65f365
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,16 @@ In case you need to add, for instance, and audio track
console.log('file has been created with soundtrack succesfully');
});

### Concatenating Inputs
To append a video to the end of another

var ffmpeg = require('fluent-ffmpeg');
var proc = new ffmpeg({source: "title.mp4"})
.mergeAdd("source.mp4")
.mergeToFile("out.mp4", "myTempFolder/", function(){
console.log('files has been merged succesfully');
});

### Creating a custom preset
To create a custom preset, you have to create a new file inside the `lib/presets` folder. The filename is used as the preset's name ([presetname].js). In order to make the preset work, you have to export a `load` function using the CommonJS module specifications:

Expand Down

0 comments on commit b65f365

Please sign in to comment.