File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # Recent change made ffmpeg not compatible with python-for-android yet.
3
+ # Only h264+aac build are working.
2
4
3
5
VERSION_ffmpeg=
4
- URL_ffmpeg=
6
+ URL_ffmpeg=https://github.com/tito/ffmpeg-android/zipball/master/ffmpeg-android.zip
5
7
DEPS_ffmpeg=(python sdl)
6
8
MD5_ffmpeg=
7
9
BUILD_ffmpeg=$BUILD_PATH /ffmpeg/ffmpeg-android
8
10
RECIPE_ffmpeg=$RECIPES_PATH /ffmpeg
9
11
10
12
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
17
15
try ./extract.sh
18
16
fi
19
17
}
@@ -25,10 +23,11 @@ function build_ffmpeg() {
25
23
return
26
24
fi
27
25
26
+
28
27
# build ffmpeg
29
28
export NDK=$ANDROIDNDK
30
29
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
32
31
fi
33
32
34
33
push_arm
@@ -37,6 +36,7 @@ function build_ffmpeg() {
37
36
export JNI_PATH=$JNI_PATH
38
37
export CFLAGS=" $CFLAGS -I$JNI_PATH /sdl/include -I$JNI_PATH /sdl_mixer/"
39
38
export LDFLAGS=" $LDFLAGS -lm -L$LIBS_PATH "
39
+ export FFMPEG_ROOT=" $BUILD_ffmpeg /build/ffmpeg/armeabi-v7a"
40
40
try cd $BUILD_ffmpeg /python
41
41
try find . -iname ' *.pyx' -exec cython {} \;
42
42
try $BUILD_PATH /python-install/bin/python.host setup.py build_ext -v
You can’t perform that action at this time.
0 commit comments