It took two days to finally compile it! Now, riwater provides the configured files for you to download. We hope to save you some time.
Latest FFmpeg version 1.2,
Compiling environment: Ubuntu-11.10, android-ndk-r6-crystax-2
1. Create a folder: ffmpeg. decompress the downloaded file to ffmpeg in Linux.
Tar xzvf ffmpeg-1.2.1.tar.gz
2. cd to the ffmpeg directory and run the following command:
Music ffmpeg-1.2.1 jni
3. cd jni: Create config. sh, Android. mk, av. mk
4. Go to each library directory and create Android. mk
5. comment out the first line of Makefile in each library Directory: include $ (SUBDIR) ../config. mak
6. Return to the jni directory, open config. sh, modify PREBUILT and PLATFORM to your own directory, and execute:
./Config. sh
7. Open config. h, search for: av_restrict, and replace this line of code:
Av_restrict
8. Open libavutil/parseutils. h and replace # include <time. h> with # include <sys/../time. h>.