How to crop video with ffmpeg library in Android?
To crop video in Android app I use ffmpeg library In SO example I found for cropping the video the following command: ffmpeg -i in.mp4 -filter:v "crop=out_w:out_h:x:y" out.mp4 I created a String array: String[] cmd = {"ffmpeg", "-i", originalVideoPath, "-vf", "\"crop=" + imageWidth + ":" + imageHeight + ":" + xCoordinate + ":" + yCoordinate + "\"", "-c:a", "copy", croppedVideoPath}; And I pass this array to execute() method: try { ffmpeg = FFmpeg.getInstance(getContext()); ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() { @Override public void onStart() { Log.i(TAG, "onStart: Crop Video