cropsly / ffmpeg-android-java

Android java library for FFmpeg binary compiled using https://github.com/writingminds/ffmpeg-android
http://writingminds.github.io/ffmpeg-android-java
GNU General Public License v3.0
3.33k stars 829 forks source link

Cropping video with crop filter not working #117

Open kal27 opened 8 years ago

kal27 commented 8 years ago

I am trying to use the crop filter to crop an video like this:

-i /storage/sdcard0/Adver/4.mp4 -filter:v "crop=in_w:in_h-40" /storage/sdcard0/Adver/out.mp4

But it does not work and i get lots of messages from the library like this(which do not tell me much): pastebin

Is there any other way I could crop a video with this?

Thanks

kenilt commented 8 years ago

@kal27 you can try to remove quote like this -i /storage/sdcard0/Adver/4.mp4 -filter:v crop=in_w:in_h-40 /storage/sdcard0/Adver/out.mp4

by the way, the command not work when I put some mothod in crop param like this crop=min(in_w,in_h)

MarStarck commented 6 years ago

It cropped successfully but the color missing, only black and white color.