From 13824f7cc7bb065b8725ccf02b5ceda16214760b Mon Sep 17 00:00:00 2001 From: jaydee Date: Thu, 26 Sep 2024 22:35:19 +0200 Subject: [PATCH] bitwarden --- handle_imported_video.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/handle_imported_video.py b/handle_imported_video.py index 194769a..28211f9 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -91,6 +91,19 @@ if _ACTION == "flip": print(myCmd) os.chdir(_FULL_PATH) proc = subprocess.Popen(myCmd,stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT) + print(f"Fliping {_FILE} to {export_name} in {_DAY_DIR}...".ljust(100)) + ff = FfmpegProgress(myCmd) + with tqdm(total=100, position=1, desc="Encode") as pbar: + for progress in ff.run_command_with_progress(): + pbar.update(progress - pbar.n) + pbar.close() + # 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}") if _ACTION == "join": for _DAY_DIR in _DAY_DIRS: if ops == "win":