FFMPEG on android

Post on 15-Jan-2015

2.494 views 5 download

description

How to compile FFMPEG for Android

Transcript of FFMPEG on android

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 Cohenyossicohen19@gmail.comhttp://www.mobilevideotech.com

+972-545-313092+972-545-313092

6

ResourcesScript source

http://stackoverflow.com/questions/14751069/how-to-stream-to-ffserver-from-android