Skip to content

Commit

Permalink
Add hardware acceleration codecs to ffmpeg recipe (#3092)
Browse files Browse the repository at this point in the history
* enable hardware acceleration codecs
* Reorder "enable-mediacodec" to fix libx264 issues

---------

Co-authored-by: Dexer <73297572+DexerBR@users.noreply.github.com>
  • Loading branch information
brentpicasso and DexerBR authored Dec 13, 2024
1 parent a0eeffe commit 37d272c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pythonforandroid/recipes/ffmpeg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 37d272c

Please sign in to comment.