mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 10:44:52 +01:00
bitwarden
This commit is contained in:
@@ -91,6 +91,19 @@ if _ACTION == "flip":
|
|||||||
print(myCmd)
|
print(myCmd)
|
||||||
os.chdir(_FULL_PATH)
|
os.chdir(_FULL_PATH)
|
||||||
proc = subprocess.Popen(myCmd,stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT)
|
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":
|
if _ACTION == "join":
|
||||||
for _DAY_DIR in _DAY_DIRS:
|
for _DAY_DIR in _DAY_DIRS:
|
||||||
if ops == "win":
|
if ops == "win":
|
||||||
|
|||||||
Reference in New Issue
Block a user