4
4
5
5
6
6
class FFMpegRecipe (Recipe ):
7
- version = 'n3.4.5 '
7
+ version = '007e03348dbd8d3de3eb09022d72c734a8608144 '
8
8
# Moved to github.com instead of ffmpeg.org to improve download speed
9
9
url = 'https://github.com/FFmpeg/FFmpeg/archive/{version}.zip'
10
10
depends = ['sdl2' ] # Need this to build correct recipe order
@@ -37,22 +37,31 @@ def build_arch(self, arch):
37
37
'--enable-nonfree' ,
38
38
'--enable-protocol=https,tls_openssl' ,
39
39
]
40
- build_dir = Recipe .get_recipe ('openssl' , self .ctx ).get_build_dir (arch .arch )
41
- cflags += ['-I' + build_dir + '/include/' ]
40
+ build_dir = Recipe .get_recipe (
41
+ 'openssl' , self .ctx ).get_build_dir (arch .arch )
42
+ cflags += ['-I' + build_dir + '/include/' ,
43
+ '-DOPENSSL_API_COMPAT=0x10002000L' ]
42
44
ldflags += ['-L' + build_dir ]
43
45
44
46
if 'ffpyplayer_codecs' in self .ctx .recipe_build_order :
45
47
# libx264
46
48
flags += ['--enable-libx264' ]
47
- build_dir = Recipe .get_recipe ('libx264' , self .ctx ).get_build_dir (arch .arch )
49
+ build_dir = Recipe .get_recipe (
50
+ 'libx264' , self .ctx ).get_build_dir (arch .arch )
48
51
cflags += ['-I' + build_dir + '/include/' ]
49
52
ldflags += ['-lx264' , '-L' + build_dir + '/lib/' ]
50
53
54
+ """
55
+ WARNING: DISABLED during migration to ndk19, cause We're
56
+ getting a runtime error for a missing symbol.
57
+
51
58
# libshine
52
59
flags += ['--enable-libshine']
53
60
build_dir = Recipe.get_recipe('libshine', self.ctx).get_build_dir(arch.arch)
54
61
cflags += ['-I' + build_dir + '/include/']
55
62
ldflags += ['-lshine', '-L' + build_dir + '/lib/']
63
+ ldflags += ['-lm']
64
+ """
56
65
57
66
# Enable all codecs:
58
67
flags += [
@@ -79,22 +88,20 @@ def build_arch(self, arch):
79
88
80
89
# disable binaries / doc
81
90
flags += [
82
- '--disable-ffmpeg' ,
83
- '--disable-ffplay' ,
84
- '--disable-ffprobe' ,
85
- '--disable-ffserver' ,
91
+ '--disable-programs' ,
86
92
'--disable-doc' ,
87
93
]
88
94
89
95
# other flags:
90
96
flags += [
91
97
'--enable-filter=aresample,resample,crop,adelay,volume,scale' ,
92
- '--enable-protocol=file,http' ,
98
+ '--enable-protocol=file,http,hls ' ,
93
99
'--enable-small' ,
94
100
'--enable-hwaccels' ,
95
101
'--enable-gpl' ,
96
102
'--enable-pic' ,
97
103
'--disable-static' ,
104
+ '--disable-debug' ,
98
105
'--enable-shared' ,
99
106
]
100
107
@@ -108,9 +115,13 @@ def build_arch(self, arch):
108
115
# android:
109
116
flags += [
110
117
'--target-os=android' ,
111
- '--cross-prefix={}' .format (cross_prefix ),
118
+ '--enable-cross-compile' ,
119
+ '--cross-prefix={}-' .format (arch .target ),
112
120
'--arch={}' .format (arch_flag ),
113
- '--sysroot=' + self .ctx .ndk_platform ,
121
+ '--strip={}strip' .format (cross_prefix ),
122
+ '--sysroot={}' .format (join (self .ctx .ndk_dir , 'toolchains' ,
123
+ 'llvm' , 'prebuilt' , 'linux-x86_64' ,
124
+ 'sysroot' )),
114
125
'--enable-neon' ,
115
126
'--prefix={}' .format (realpath ('.' )),
116
127
]
0 commit comments