From 5a1d275400ac6a52ea34ee33253be18dcf9aaec1 Mon Sep 17 00:00:00 2001 From: jaydee Date: Wed, 2 Oct 2024 20:59:22 +0200 Subject: [PATCH] bitwarden --- handle_imported_video.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/handle_imported_video.py b/handle_imported_video.py index 1723282..22eb399 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -225,15 +225,14 @@ if _ACTION == "join": myCmd = [ "/opt/ffmpeg/ffmpeg", "-f", "concat", "-i", "video.txt","-c", "copy", "-y", export_name ] - if _TEST: - print(" ".join(myCmd)) - print(_FULL_PATH) + + d_print(" ".join(myCmd)) + d_print(_FULL_PATH) print(f"Joining {len(parts)} files to {export_name} in {_DAY_DIR}...".ljust(100)) try: os.remove(export_name) except: pass - d_print("Running commad") os.chdir(_FULL_PATH) print(_FULL_PATH) print(os.getcwd()) @@ -353,6 +352,7 @@ if _ACTION == "encode": "/opt/ffmpeg/ffmpeg", "-i", p, "-c:v", "hevc_amf", "-rc", "cqp", "-qp_i", _QUALITY[0], "-qp_p", _QUALITY[1], "-quality", "quality", "-crf", _QUALITY[2], "-y", export_name , "-f", "null", "/dev/null", ] #print(myCmd) + d_print(" ".join(myCmd)) print(f"Encoding {p} to {export_name} in {_DAY_DIR}...".ljust(100)) ff = FfmpegProgress(myCmd) with tqdm(total=100, position=1, desc="Encode") as pbar: