MasayukiSuda / Mp4Composer-android

This library generate an Mp4 movie using Android MediaCodec API and apply filter, scale, trim, transcode, crop, timeScale, mute and rotate Mp4.
MIT License
956 stars 219 forks source link

Speed up the Mp4Composer work? #79

Closed LuigiVampa92 closed 3 years ago

LuigiVampa92 commented 4 years ago

Good day. Thanks for the great library! I use Mp4Composer to add watermark on mp4 videos and it works great.

Is there a way to speed up the conversion time even if it means some quality loss? It's completely ok for me to lose some quality but the speed of work is crucial in my case. I used to try ffmpeg and in ffmpeg I can set a "preset" parameter. When I set "-preset ultrafast" ffmpeg starts to work at least 2-3 times faster. Can I achieve something like this with this library as well?

Thank you

MasayukiSuda commented 4 years ago

The most effective way to improve speed is to set mute to true.