From 9b1400c8f6249f8df3e6a94a27993ab21db09cd5 Mon Sep 17 00:00:00 2001 From: Sahib <100060676+Blackysh@users.noreply.github.com> Date: Mon, 27 Feb 2023 19:59:18 +0530 Subject: [PATCH] Update README.md --- android/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/android/README.md b/android/README.md index 4f1fb29..fd64bd3 100644 --- a/android/README.md +++ b/android/README.md @@ -9,16 +9,16 @@ - Creates Android archive with .aar extension ### 2) BUILDING (Is after `Using with Python`) -### USE PREBUILT PACKAGE FROM RELEASES SECTION +### USE PREBUILT PACKAGE FROM RELEASES SECTION ### 3. Using With Python -1) Add the aar from Releases tab or the one generated by you to your projects folder. -2) In Buildozer spec file add jnius to requirements and the aar file. +##### 1) Add the aar from Releases tab or the one generated by you to your projects folder. +##### 2) In Buildozer spec file add jnius to requirements and the aar file. ``` requirements = jnius android.add_aars = ffmpeg-kit-release.aar ``` -3) Using Pyjnius, declare the variables in Python (https://pyjnius.readthedocs.io/en/stable/) +##### 3) Using Pyjnius, declare the variables in Python (https://pyjnius.readthedocs.io/en/stable/) ``` #IMPORTING jnius from jnius import autoclass @@ -28,7 +28,7 @@ FFMPEG = autoclass('com.sahib.pyff.ffpy') ``` BOTH (FFMPEG and FFPROBE) RETURN OUTPUT OF THE COMMAND -4) To Use FFMPEG +##### 4) To Use FFMPEG ``` #EXECUTED FFMPEG COMMAND, COMMAND IS STRING ffmpegCommand = FFMPEG.Run("COMMAND") @@ -37,7 +37,7 @@ ffmpegCommand = FFMPEG.Run("COMMAND") print(ffmpegCommand) ``` -5) To use FFProbe +##### 5) To use FFProbe ``` #EXECUTED FFProbe COMMAND, COMMAND IS STRING probeCommand = FFMPEG.RunProbe("Command") @@ -50,8 +50,8 @@ NOTE - FILTER_COMPLEX can not be used. (IDK why, if you have solution tell me pl -EXAMPLES -1) FFMPEG +#### EXAMPLES +##### 1) FFMPEG ``` from jnius import autoclass from jnius import * @@ -68,7 +68,7 @@ print(d) ``` -2) FFProbe +##### 2) FFProbe ``` from jnius import autoclass from jnius import *