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 compression #99

Closed
arashbi opened this issue Apr 9, 2021 · 5 comments
Closed

Slow compression #99

arashbi opened this issue Apr 9, 2021 · 5 comments

Comments

@arashbi
Copy link

arashbi commented Apr 9, 2021

I was looking for a faster way of compressing the videos. But it seems it is almost as slow as FFMpeg, based on measurement I did on the example application.
To convert a 1 minute video, the time is around 40s

@jonataslaw
Copy link
Owner

The compression speed depends on the device, and there is no chance that you can achieve a faster compression, this package uses the native codecs to do this. FFMPEG and anything else will need to decode and then convert. However, there is no way to do magic, the speed depends on the device. I tested it on my two devices and on both the conversation took less than 3 seconds for a 43 second video.

@jonataslaw
Copy link
Owner

Just an addendum, compression is fast for videos made on the device, or original videos, if you pass the video through a program, that program may corrupt or decode that file incorrectly, which will cause a slower compression.
There are several reasons, but in this case it is not the package that is responsible for this.

@arashbi
Copy link
Author

arashbi commented Apr 10, 2021

How about telegram? Manages to compress videos in a much faster way.

@amosogra
Copy link

All these things need the right compression algorithm, otherwise this package should be named something else, maybe updown_sampler... because that is what it does. checkout Video Panda on Google Play store. Now that is a true Video Compression algorithm in play. You can test with the same video and find out that while Video Panda compresses, this package sometimes increases the size more than the input video. Sad!

@llli0v0
Copy link

llli0v0 commented Mar 22, 2024

@amosogra We should go easy on open source authors, who are doing this work for free. Open source projects will continue to improve, maybe there will be a better solution in the future.😊😊😊

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

4 participants