aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornathansmith117 <thenathansmithsmith@gmail.com>2024-03-27 03:52:56 +0000
committernathansmith117 <thenathansmithsmith@gmail.com>2024-03-27 03:52:56 +0000
commitd9d8b5d6509433d7c9ef23d9d0279fb65926785b (patch)
tree4e2db3814a2617198e2c449e167a12b867d44fdf
parent89dd61507c1f21f144bdce412db1633c6073aee5 (diff)
downloadyouload-d9d8b5d6509433d7c9ef23d9d0279fb65926785b.tar.gz
youload-d9d8b5d6509433d7c9ef23d9d0279fb65926785b.tar.bz2
youload-d9d8b5d6509433d7c9ef23d9d0279fb65926785b.zip
Working on something wack
-rw-r--r--buildozer.spec2
-rw-r--r--src/util.py11
2 files changed, 10 insertions, 3 deletions
diff --git a/buildozer.spec b/buildozer.spec
index 015b518..e28c185 100644
--- a/buildozer.spec
+++ b/buildozer.spec
@@ -13,7 +13,7 @@ package.domain = nate.youload
source.dir = src
# (list) Source files to include (let empty to include all the files)
-source.include_exts = py,png,jpg,kv,atlas
+source.include_exts = py,png,jpg,kv,atlas,ffmpeg
# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png
diff --git a/src/util.py b/src/util.py
index 7b012a2..cd3a6f0 100644
--- a/src/util.py
+++ b/src/util.py
@@ -1,6 +1,6 @@
import os
-import stat
import ffmpeg
+import subprocess
from kivy.utils import platform
from kivy.app import App
@@ -12,4 +12,11 @@ def get_default_download_dir() -> str:
return os.path.join(str(Path.home()), "Downloads")
def convert_mp4_to_mp3(input_file: str, output_file: str) -> None:
- ffmpeg.input(input_file).output(output_file).run()
+ current_directory = os.getcwd()
+ ffmpeg_binary_path = os.path.join(current_directory, 'ffmpeg')
+
+ #os.chmod(ffmpeg_binary_path, 0o775)
+ #subprocess.call([ffmpeg_binary_path, "-i", input_file, output_file])
+ print(os.listdir())
+
+ #ffmpeg.input(input_file).output(output_file).run(cmd=ffmpeg_binary_path)