Video crop app
You can crop video to make it square and be less than 20 seconds in duration.
It uses MediaCodec API for decoding and encoding video. Source video file is read by MediaExtractor. Frame transformations are done with regular Bitmap. To be able to do so, it is required to convert frame's pixel array from YUV to RGB and back with help of RenderScript. Frames are saved to file with help of MediaMuxer after encoding.
Subscribe to Android Example 365
Get the latest posts delivered right to your inbox