Android sdk cut/trim video file

You can do this with my mp4parser library. Have a look at the ShortenExample it does exactly what the name suggests.
Since the library cannot re-encode the video it can only cut the video at I-frames. So the points in time where you can make a cut are quite coarse.

On Android 4.1 you can access the hardware codecs via MediaCodec API which could be an option (but I haven’t seen any example of that yet)

Leave a Comment