-
Notifications
You must be signed in to change notification settings - Fork 832
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 #265
Comments
This one command,Can it be improved。 String cmd = "-y -i " + currentInputVideoPath + " -strict experimental -vcodec libx264 -preset ultrafast " + Thanks。 |
@wuxiaoqiang625 have you found a solution? |
No, the hard solution I'm using now has no soft solution. @FranciscoNin |
@wuxiaoqiang625 What's hard solution? |
Tell me guys if you find any solution |
Well guys, after a lot of trial and error, I came up with 2 methods, one to compress videos that are below 250mb and those above.
It still didn't work well, and as for my research, it's quite impossible for the Android to reach an optimal compress time. With both commands it took me between 30 seconds and 1:30 minutes in any video length, from 3 seconds to a minute. I used this library to make my own camera: And the configs I made:
Worked like a charm. Now I have good quality videos with very low file sizes, without compression. Hope it helps. |
Hi @FranciscoNin but i am getting following error in Onfailure. could you please tell how did you compress the video? ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers |
Hi everyone. Any success? |
I still need help in 2020 ! |
1 minutes and 45 seconds, about 253M video, compression time more than 2 minutes, how to solve the shorter compression time.
The text was updated successfully, but these errors were encountered: