ffmpeg on android

6
1 Yossi Cohen FFMPEG for Android

Upload: yossi-cohen

Post on 15-Jan-2015

2.491 views

Category:

Technology


5 download

DESCRIPTION

How to compile FFMPEG for Android

TRANSCRIPT

Page 1: FFMPEG on android

1

Yossi Cohen

FFMPEGforAndroid

Page 2: FFMPEG on android

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

Page 3: FFMPEG on android

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 

Page 4: FFMPEG on android

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

Page 5: FFMPEG on android

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

Page 6: FFMPEG on android

6

ResourcesScript source

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