<p>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.</p>

<p>You can get a version from the <a href="https://sourceforge.net/projects/ffmpeg4android/" rel="nofollow noreferrer">SourceForge FFmpeg for Android project</a>, but I'll warn you that compilation may have its challenges. We have an <a href="https://stackoverflow.com/questions/4725773/ffmpeg-on-android">old question on StackOverflow</a> on this. Top answer there gives some detail on these headings:</p>

<ul>
<li>Build static libraries of ffmpeg for Android. </li>
<li>Create a dynamic library wrapping ffmpeg functionality using the Android NDK. </li>
<li>Use the ffmpeg-wrapping dynamic library from your java sources. </li>
</ul>

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

CC BY-SA 3.0
2017-12-13T09:12:12.117Z
2017-12-13T09:12:12.117Z
Dr Mayhem
<p>Is it possible to convert video to panorama in android using  FFmpeg?</p>

<p>I have found below command from this <a href="https://github.com/ibaaj/awesome-OpenSourcePhotography#video-to-panorama/" rel="nofollow noreferrer" title="link">https://github.com/ibaaj/awesome-OpenSourcePhotography#video-to-panorama</a></p>

<pre><code>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
</code></pre>

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

<video><ffmpeg><android>
Video to Panorama in Android
Nisarg
# Video to Panorama in Android

(Asked by: username_0 on 2017-12-13)

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 !!!

**Tags:** video, ffmpeg, android


---

## 1 answers

### Answer by username_1 on 2017-12-13. Score: 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](https://sourceforge.net/projects/ffmpeg4android/), but I'll warn you that compilation may have its challenges. We have an [old question on StackOverflow](https://stackoverflow.com/questions/4725773/ffmpeg-on-android) 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)


---

