bitwarden

This commit is contained in:
jaydee
2024-09-26 22:35:19 +02:00
parent 4e0c28ee89
commit 13824f7cc7

View File

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