How to crop video in android (without ffmpeg)?

Hi, I am trying to trim a video in android, but all the source codes that I found use ffmpeg, is there a smaller library that I can use? Since the ffmpeg library is about 8-9 MB and my application is about 6 MB, adding the ffmpeg library to my application will more than double it.

+4
source share
1 answer

You can do this using the mp4parser library. Take a look at ShortenExample, it does exactly what the name suggests. Since the library cannot transcode the video, it can only cut the video into I-frames. So the points in time when you can make a cut are pretty rough.

Android 4.1 API MediaCodec, ( )

: TrimVideoUtils.java

+3

Source: https://habr.com/ru/post/1599028/


All Articles