This commit is contained in:
2025-06-17 19:29:32 +02:00
parent b5f3aed0ae
commit 4f548ee8da

View File

@@ -123,12 +123,12 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
print(myCmd)
print(myCmd)
proc = subprocess.Popen(myCmd,stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT)
print(f"Fliping {filename} in {_DAY_DIR}...".ljust(100))
ff = FfmpegProgress(myCmd)
with tqdm(total=100, position=1, desc="Fliping") as pbar:
for progress in ff.run_command_with_progress():
pbar.update(progress - pbar.n)
pbar.close()
# print(f"Fliping {filename} in {_DAY_DIR}...".ljust(100))
# ff = FfmpegProgress(myCmd)
# with tqdm(total=100, position=1, desc="Fliping") as pbar:
# for progress in ff.run_command_with_progress():
# pbar.update(progress - pbar.n)
# pbar.close()
print(f"Done".ljust(130),end='', flush=True)
# get the output