In my app I would like to split a selected video from the gallery into smaller pieces of the same length. For example, if I want to split a 25 second video into pieces of up to 10 seconds, I would get 3 videos (10 sec, 10 sec, 5 sec).
So far I found this answer on Stack Overflow that allows me to just choose the beginning and end of a video.
How can I use MediaCodec to achieve my goal?