ffmpeg on android
DESCRIPTION
How to compile FFMPEG for AndroidTRANSCRIPT
1
Yossi Cohen
FFMPEGforAndroid
2
The ProblemThere are many FFMPEG for Android
Scripts. Most of them doesn’t work duo to:Frequent changes in FFMPEG CodeChanges in Android Tool chain
3
Compilation instructionsDownload the latest NDK 32bit version there
are problems when compiling on NDK-64bitInstall the NDK on $Home/ (or change the
NDK address in the script)Make sure you have root access to change
and create in the new directories there might be a need to chmod 777 some of the new directories manually
4
Run the bottom script on this page saving it to ffmpeg4android.sh push it to device sdcard and chmod it to run enabled (described below). It is recommended to unmark the git clone line of the FFMPEG
From the bin directory push the ffmpeg to the /data folder on the phone: adb push fmpeg /data/ffmpeg
Change ffmpeg permissions to run permissions using: adb shell, cd /data, chmod 775 ffmpeg
Test ffmpeg on an Android local media file
5
Thank you!
Video Expert
Lectures on Video / Android / VoIP
Android Native Developer
More About me:
Yossi CohenYossi [email protected]://www.mobilevideotech.com
+972-545-313092+972-545-313092
6
ResourcesScript source
http://stackoverflow.com/questions/14751069/how-to-stream-to-ffserver-from-android