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

Question: compress 8GB file to 800MB file before upload to server #30

Closed
elie222 opened this issue Feb 17, 2020 · 2 comments
Closed

Question: compress 8GB file to 800MB file before upload to server #30

elie222 opened this issue Feb 17, 2020 · 2 comments

Comments

@elie222
Copy link

elie222 commented Feb 17, 2020

I'm looking to compress an 8GB video in the browser prior to uploading it to a server. The goal is faster upload and the server does need that level of quality.

This is the exact command I use with ffmpeg which takes around 15 minutes when run natively:

ffmpeg -i testvideo.mp4 -c:v libx264 -preset slow -crf 25 -vf scale=720:-2 -x264-params keyint=25:keyint_min=25 -an -f mp4 output.mp4

Are there known memory limits or other limits I will hit using this library that will stop me achieving this goal?

@elie222
Copy link
Author

elie222 commented Feb 17, 2020

Ran it on a sample test case and significantly slower than running it natively:
https://gist.github.com/elie222/bf99c425858ccf0d524c3533560c481b

Didn't try on 8GB file yet.

@jeromewu
Copy link
Collaborator

jeromewu commented Mar 9, 2020

In fact, WebAssembly version (ffmpeg.js) is doomed to be slower than native version due to many aspects, so I would recommend you to use native version if performance is critical to you.

@jeromewu jeromewu closed this as completed Mar 9, 2020
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

2 participants