Skip to content

Commit 37d272c

Browse files
Add hardware acceleration codecs to ffmpeg recipe (kivy#3092)
* enable hardware acceleration codecs * Reorder "enable-mediacodec" to fix libx264 issues --------- Co-authored-by: Dexer <73297572+DexerBR@users.noreply.github.com>
1 parent a0eeffe commit 37d272c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pythonforandroid/recipes/ffmpeg/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ def build_arch(self, arch):
2828
cflags = []
2929
ldflags = []
3030

31+
# enable hardware acceleration codecs
32+
flags = [
33+
'--enable-jni',
34+
'--enable-mediacodec'
35+
]
36+
3137
if 'openssl' in self.ctx.recipe_build_order:
3238
flags += [
3339
'--enable-openssl',

0 commit comments

Comments
 (0)