Is it possible to convert video to panorama in android using FFmpeg?

I have found below command from this https://github.com/ibaaj/awesome-OpenSourcePhotography#video-to-panorama

ffmpeg -i video.avi -r 5 -qscale 3  tmp/images/image-%3d.jpg
pto_gen -o tmp/hugin.pto tmp/images/*.jpg
cpfind --multirow -o tmp/hugin.pto tmp/hugin.pto
cpclean -o tmp/hugin.pto tmp/hugin.pto
linefind -o tmp/hugin.pto tmp/hugin.pto
autooptimiser -a -l -s -m -o tmp/hugin.pto tmp/hugin.pto
pano_modify -o tmp/hugin.pto --center --fov=AUTO --canvas=70% tmp/hugin.pto
pto2mk -o tmp/hugin.mk -p tmp/output tmp/hugin.pto
make -f tmp/hugin.mk all

Any idea how can I use this for Android or any other helpful command, it would be very helpful !!!

1 Answer 1


While that command may well be the right one to convert video to panorama in ffmpeg, you don't get ffmpeg by default on Android.

You can get a version from the SourceForge FFmpeg for Android project, but I'll warn you that compilation may have its challenges. We have an old question on StackOverflow on this. Top answer there gives some detail on these headings:

  • Build static libraries of ffmpeg for Android.
  • Create a dynamic library wrapping ffmpeg functionality using the Android NDK.
  • Use the ffmpeg-wrapping dynamic library from your java sources.

Any questions on the technical implementation / compilation aspects should be raised over on Stack Overflow (or possibly Android Stack Exchange)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.