Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow encoding #63

Open
everythingspirals opened this issue Oct 30, 2019 · 0 comments
Open

Slow encoding #63

everythingspirals opened this issue Oct 30, 2019 · 0 comments

Comments

@everythingspirals
Copy link

everythingspirals commented Oct 30, 2019

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);
});

vs

ffmpeg -i test.mov -b:v 2000000 -c:v libx264 test2.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant