Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alexbinary/ffmpeg-splice
- Owner: alexbinary
- License: mit
- Created: 2016-01-18T18:46:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-19T18:40:50.000Z (almost 9 years ago)
- Last Synced: 2024-09-30T08:04:46.021Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.