ffmpeg-android-java icon indicating copy to clipboard operation
ffmpeg-android-java copied to clipboard

Crop video with respect to aspect ratio

Open saadbzu opened this issue 5 years ago • 0 comments

I have i question about crop the video using ffmpeg. I used this command to crop video:

final String[] cmd = "-i /storage/emulated/0/nature.mp4 -vf crop=720:720:0:400 -threads 5 -preset ultrafast -strict -2 /storage/emulated/0/DCIM/Camera/YourCroppedMovie.mp4".split(" ");

This command work fine but i want to give aspect ratio not fixed height and width this command here:

crop=720:720:0:400

saadbzu avatar Feb 18 '20 14:02 saadbzu