What's the better way to optimise video file size in android programmatically? -


i want reduce size of video file less 25mb. there way achieve without using third party library?

you can mp4parser library. have @ shortenexample name suggests. since library cannot re-encode video can cut video @ i-frames. points in time can make cut quite coarse.

on android 4.1 can access hardware codecs via mediacodec api option (but haven't seen example of yet)

or, can use class: trimvideoutils.java

source: https://stackoverflow.com/a/11551682/1796309


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -