I'm using ffmpeg library for video file compression in my Android project.
To implement ffmpeg I refereed this link, but ffmpeg is taking too much time just to compress the video (currently taking 1 min for 6 seconds video). I'm using below command for video compression--
ffmpeg -y -i /sdcard/videokit/in.mp4 -strict experimental -vf transpose=1 -s 160x120 -r 30 -aspect 4:3 -ab 48000 -ac 2 -ar 22050 -b 2097k /sdcard/videokit/out.mp4
Please let me know if it is possible to reduce compression time, may be by changing some setting or parameters in above command. Or is there any other way to compress the video faster than ffmpeg. Thank you.
There aren't many things you can do, but there are certainly a few things worth considering:
Refer this link for preset and crf settings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With