diff --git a/handle_imported_video.py b/handle_imported_video.py index 6ab3014..115ae64 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -128,12 +128,7 @@ if _ACTION == "join": f.close() print(final_size) print(_FULL_PATH) - with tqdm(total=100, position=1, desc="Join") as pbar: - while True: - pbar.update(1) - #file_stats = os.stat(export_name) - #print(file_stats.st_size ) - time.sleep(1) + if _TEST: input(" ???? ") # if _FLIP: @@ -180,8 +175,16 @@ if _ACTION == "join": # with tqdm(total=100, position=1, desc="Convert") as pbar: # for progress in ff.run_command_with_progress(): # pbar.update(progress - pbar.n) + with tqdm(total=100, position=1, desc="Join") as pbar: + for progress in ff.run_command_with_progress(): + pbar.update(1) + try: + file_stats = os.stat(export_name) + print(file_stats.st_size ) + except: + pass - file_stats = os.stat(file_name) + time.sleep(1) # get the output print(ff.stderr)