Video to Panorama in Android
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)