Encoding a video using ffmpeg directly is significantly faster (30 seconds versus 80 seconds) than using this module or fluent-ffmpeg, am I doing something wrong? Is this related to nodejs being single-threaded?
let transcode = new ffmpeg(this.testFile)
transcode.then(function (video) {
let outputPath = path.join(this.transcodePath, 'output.mp4');
video.addCommand('-c:v', 'libx264');
video.addCommand('-b:v', '2000000');
video.save(outputPath);
});
Encoding a video using ffmpeg directly is significantly faster (30 seconds versus 80 seconds) than using this module or fluent-ffmpeg, am I doing something wrong? Is this related to nodejs being single-threaded?
vs