Fast Video Compression on Android

x264 cpu capabilities Your ffmpeg console output/log shows the following message from libx264: using cpu capabilities: none! For your device I would expect something like: using cpu capabilities: ARMv7 NEON You should re-evaluate how you compiled x264 so it properly supports the capabilities of your CPU. With none it encodes significantly slower. Do not use … Read more

FFMPEG (libx264) “height not divisible by 2”

The answer to the original question should not scale the video but instead fix the height not divisible by 2 error. This can be achieve using this filter: -vf “pad=ceil(iw/2)*2:ceil(ih/2)*2” Full command: ffmpeg -i frame_%05d.jpg -vcodec libx264 \ -vf “pad=ceil(iw/2)*2:ceil(ih/2)*2” -r 24 \ -y -an video.mp4 Basically, .h264 needs even dimensions so this filter will: … Read more

tech