I included pre-compiled binaries with this project but just in case you need to compile your own, here are the instructions:
- Download NDK 5. It's now archived. As of 10/2013, this link works:
- http://dl.google.com/android/ndk/android-ndk-r5-linux-x86.tar.bz2
- I'm not sure where to find versions for Windows or Mac
- Make sure that you install it to
$HOME/android-ndk.
- Download a version of FFmpeg that works with this project.
We're using bambuser's. Download
client version 1.3.7 to 1.3.10. - Extract the archive.
- Copy
extract.shand theffmpeg-*.tar.gzfile into theJNI/ffmpeg-androidfolder. - Run
extract.sh - Change
build.shto your liking. Hint: runconfigure --helpfromffmpegto find options to enable or disable.
- Make sure to enable the
file protocol. You need that to open files on the phone. - Enabling the non-free codecs gives more supported formats but it may not be compatible for the license of your project.
- Rerun
build.sh. - Run
clean-build.sh.
See also: http://ikaruga2.wordpress.com/2011/06/15/video-live-wallpaper-part-1/