How to select video from gallery and crop/resize it just like image cropping in android. I am searching it for last two days. But i didnt find any samples or example. If you have any idea or samples, pls suggest me.
Thank You.
Step 1: Open the video you wish to crop and click on the Edit option. Step 2: Click on the Crop Button. Step 3: Click on the “Aspect Ratio” button on the right top corner of your screen. Step 4: Select the aspect ratio you wish to crop your video to.
On android 4.0 + you can use TextureView
Basic idea is to use Matrix object.
Matrix matrix = new Matrix();
matrix.setScale(scaleX, scaleY, pivotPointX, pivotPointY);
mTextureView.setTransform(matrix);
Full article available here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With