initial commit
This commit is contained in:
@ -28,6 +28,18 @@ module.exports = {
|
||||
});
|
||||
});
|
||||
},
|
||||
'scaleVideo': (options) => {
|
||||
ffmpeg(options.inputPath)
|
||||
.size(`${options.width}x${options.height}`)
|
||||
.videoBitrate(options.bitrate)
|
||||
.save(options.outputPath)
|
||||
.on('end', () => {
|
||||
console.log('Video resolution and file size have been changed successfully!');
|
||||
})
|
||||
.on('error', (err) => {
|
||||
console.log('Error: ' + err.message);
|
||||
});
|
||||
},
|
||||
/**
|
||||
* encodes video with given parameters
|
||||
* @param {object} options JSON Object passed as settings
|
||||
|
Reference in New Issue
Block a user