Skip to content

Commit 26e8ea0

Browse files
committed
ffmpeg: fix ffmpeg recipe by using h264+aac, since the previous version are not working anymore with python-for-android.
1 parent 8308fe7 commit 26e8ea0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

recipes/ffmpeg/recipe.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
#!/bin/bash
2+
# Recent change made ffmpeg not compatible with python-for-android yet.
3+
# Only h264+aac build are working.
24

35
VERSION_ffmpeg=
4-
URL_ffmpeg=
6+
URL_ffmpeg=https://github.com/tito/ffmpeg-android/zipball/master/ffmpeg-android.zip
57
DEPS_ffmpeg=(python sdl)
68
MD5_ffmpeg=
79
BUILD_ffmpeg=$BUILD_PATH/ffmpeg/ffmpeg-android
810
RECIPE_ffmpeg=$RECIPES_PATH/ffmpeg
911

1012
function prebuild_ffmpeg() {
11-
cd $BUILD_PATH/ffmpeg
12-
13-
if [ ! -d ffmpeg-android ]; then
14-
# initial clone
15-
try git clone git://github.com/tito/ffmpeg-android
16-
try cd ffmpeg-android
13+
cd $BUILD_ffmpeg
14+
if [ ! -d ffmpeg ]; then
1715
try ./extract.sh
1816
fi
1917
}
@@ -25,10 +23,11 @@ function build_ffmpeg() {
2523
return
2624
fi
2725

26+
2827
# build ffmpeg
2928
export NDK=$ANDROIDNDK
3029
if [ ! -f $BUILD_ffmpeg/build/ffmpeg/armeabi-v7a/lib/libavcodec.a ]; then
31-
try ./build.sh
30+
try env FFMPEG_ARCHS='armv7a' ./build-h264-aac.sh
3231
fi
3332

3433
push_arm
@@ -37,6 +36,7 @@ function build_ffmpeg() {
3736
export JNI_PATH=$JNI_PATH
3837
export CFLAGS="$CFLAGS -I$JNI_PATH/sdl/include -I$JNI_PATH/sdl_mixer/"
3938
export LDFLAGS="$LDFLAGS -lm -L$LIBS_PATH"
39+
export FFMPEG_ROOT="$BUILD_ffmpeg/build/ffmpeg/armeabi-v7a"
4040
try cd $BUILD_ffmpeg/python
4141
try find . -iname '*.pyx' -exec cython {} \;
4242
try $BUILD_PATH/python-install/bin/python.host setup.py build_ext -v

0 commit comments

Comments
 (0)