I am using https://github.com/WritingMinds/ffmpeg-android-java for cropping a video using this command :
execFFmpegCommand(\" -i \" + in + \" -filter:v \" + \"c
I figured it out finally, The command should be passed as an array.
String[] cmd = {"-i", in, "-filter:v", "crop=" + 240 + ":" + 120 + ":" + 100 + ":" + 100, "-c:a", "copy", out}; execFFmpegCommand(cmd);