From 37d272cc42f1ca0d0143743ccd3949cca56dfd5d Mon Sep 17 00:00:00 2001 From: Brent Picasso Date: Fri, 13 Dec 2024 11:25:47 -0800 Subject: [PATCH] Add hardware acceleration codecs to ffmpeg recipe (#3092) * enable hardware acceleration codecs * Reorder "enable-mediacodec" to fix libx264 issues --------- Co-authored-by: Dexer <73297572+DexerBR@users.noreply.github.com> --- pythonforandroid/recipes/ffmpeg/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pythonforandroid/recipes/ffmpeg/__init__.py b/pythonforandroid/recipes/ffmpeg/__init__.py index 3bc824834..f7134b338 100644 --- a/pythonforandroid/recipes/ffmpeg/__init__.py +++ b/pythonforandroid/recipes/ffmpeg/__init__.py @@ -28,6 +28,12 @@ def build_arch(self, arch): cflags = [] ldflags = [] + # enable hardware acceleration codecs + flags = [ + '--enable-jni', + '--enable-mediacodec' + ] + if 'openssl' in self.ctx.recipe_build_order: flags += [ '--enable-openssl',