mirror of
https://gitlab.sectorq.eu/jaydee/imported_video.git
synced 2025-12-14 18:44:52 +01:00
build
This commit is contained in:
@@ -110,19 +110,19 @@ if _ACTION == "flip":
|
|||||||
# modified = "3:00 PM, 04 May 2009",
|
# modified = "3:00 PM, 04 May 2009",
|
||||||
# accessed = "08/07/2014 18:30:45"
|
# accessed = "08/07/2014 18:30:45"
|
||||||
# )
|
# )
|
||||||
os.chdir(_FULL_PATH)
|
os.chdir(_FULL_PATH)
|
||||||
create_date = filedate.File(filename).get()
|
create_date = filedate.File(filename).get()
|
||||||
if _TEST:
|
if _TEST:
|
||||||
print(_FULL_PATH)
|
print(_FULL_PATH)
|
||||||
print(myCmd)
|
print(myCmd)
|
||||||
|
|
||||||
proc = subprocess.Popen(myCmd,stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT)
|
proc = subprocess.Popen(myCmd,stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT)
|
||||||
print(f"Fliping {filename} to {export_name} in {_DAY_DIR}...".ljust(100))
|
print(f"Fliping {filename} to {export_name} in {_DAY_DIR}...".ljust(100))
|
||||||
ff = FfmpegProgress(myCmd)
|
ff = FfmpegProgress(myCmd)
|
||||||
with tqdm(total=100, position=1, desc="Fliping") as pbar:
|
with tqdm(total=100, position=1, desc="Fliping") as pbar:
|
||||||
for progress in ff.run_command_with_progress():
|
for progress in ff.run_command_with_progress():
|
||||||
pbar.update(progress - pbar.n)
|
pbar.update(progress - pbar.n)
|
||||||
pbar.close()
|
pbar.close()
|
||||||
|
|
||||||
print(f"Done".ljust(130),end='', flush=True)
|
print(f"Done".ljust(130),end='', flush=True)
|
||||||
# get the output
|
# get the output
|
||||||
|
|||||||
Reference in New Issue
Block a user