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":