简体   繁体   中英

FFMPEG video cropping is too slow

I am using WritingMinds library to execute this ffmpeg command:

-y -i /data/user/0/ae.alphaapps.rombeye/cache/1527414847451.mp4 -vf crop=720:880:0:196 -threads 16 -preset ultrafast -strict -2 -c:v libx264 -c:a copy /storage/emulated/0/.temp/15274148557981952135171779784555.mp4

my main goal is to crop a 720p resolution video as fast as possible, but it's taking about 6 minutes for a 5 minutes video. Is it normal at this rate? and would it be any way to make it faster? Is there any other solution that make video cropping faster?

FFmpeg is kind of slow on android as it doesn't have hardware acceleration on android. You can try out other ffmpeg options like controlling crf and bitrate to get performance speed over quality.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM