bitwarden

This commit is contained in:
jaydee
2024-10-02 20:59:22 +02:00
parent 7f0d7a1e5b
commit 5a1d275400

View File

@@ -225,15 +225,14 @@ if _ACTION == "join":
myCmd = [
"/opt/ffmpeg/ffmpeg", "-f", "concat", "-i", "video.txt","-c", "copy", "-y", export_name
]
if _TEST:
print(" ".join(myCmd))
print(_FULL_PATH)
d_print(" ".join(myCmd))
d_print(_FULL_PATH)
print(f"Joining {len(parts)} files to {export_name} in {_DAY_DIR}...".ljust(100))
try:
os.remove(export_name)
except:
pass
d_print("Running commad")
os.chdir(_FULL_PATH)
print(_FULL_PATH)
print(os.getcwd())
@@ -353,6 +352,7 @@ if _ACTION == "encode":
"/opt/ffmpeg/ffmpeg", "-i", p, "-c:v", "hevc_amf", "-rc", "cqp", "-qp_i", _QUALITY[0], "-qp_p", _QUALITY[1], "-quality", "quality", "-crf", _QUALITY[2], "-y", export_name , "-f", "null", "/dev/null",
]
#print(myCmd)
d_print(" ".join(myCmd))
print(f"Encoding {p} to {export_name} in {_DAY_DIR}...".ljust(100))
ff = FfmpegProgress(myCmd)
with tqdm(total=100, position=1, desc="Encode") as pbar: