From 48c987daa67705e11e9d285f33361c214f719003 Mon Sep 17 00:00:00 2001 From: jaydee Date: Thu, 26 Sep 2024 20:30:35 +0200 Subject: [PATCH] bitwarden --- handle_imported_video.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/handle_imported_video.py b/handle_imported_video.py index e981837..4b32680 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -123,7 +123,7 @@ if _ACTION == "join": if len(_SEQUENCES) != 0 and vid not in _SEQUENCES: continue - export_name = "joined_" + vid + ".MP4" + export_name = "joining_" + vid + ".MP4" parts = video_seq[vid] parts.sort() @@ -225,7 +225,10 @@ if _ACTION == "join": print("Something is wrong") else: print("Size OK") - + try: + shutil.move(export_name, export_name.replace("joining","joined")) + except: + print(f"Failed to move {export_name}") print("\r\n",flush=True) print(f"\rProcess finished with rc: {proc.returncode}",flush=True) # get the output @@ -272,7 +275,7 @@ if _ACTION == "encode": os.chdir(_FULL_PATH) for p in parts: - export_name = "encoded_" + p + export_name = "working_" + p if _FLIP: if ops == "win": myCmd = [ @@ -301,6 +304,9 @@ if _ACTION == "encode": # get the output #print(ff.stderr) #ffmpeg -i .\GH010149.MP4 -c:v hevc_amf -rc cqp -qp_i 42 -qp_p 42 -quality quality -crf 25 output7.mp4 - - + try: + shutil.move(export_name, export_name.replace("encoding","encoded")) + except: + print(f"Failed to move {export_name}") + \ No newline at end of file