mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 10:44:52 +01:00
bitwarden
This commit is contained in:
@@ -225,15 +225,14 @@ if _ACTION == "join":
|
|||||||
myCmd = [
|
myCmd = [
|
||||||
"/opt/ffmpeg/ffmpeg", "-f", "concat", "-i", "video.txt","-c", "copy", "-y", export_name
|
"/opt/ffmpeg/ffmpeg", "-f", "concat", "-i", "video.txt","-c", "copy", "-y", export_name
|
||||||
]
|
]
|
||||||
if _TEST:
|
|
||||||
print(" ".join(myCmd))
|
d_print(" ".join(myCmd))
|
||||||
print(_FULL_PATH)
|
d_print(_FULL_PATH)
|
||||||
print(f"Joining {len(parts)} files to {export_name} in {_DAY_DIR}...".ljust(100))
|
print(f"Joining {len(parts)} files to {export_name} in {_DAY_DIR}...".ljust(100))
|
||||||
try:
|
try:
|
||||||
os.remove(export_name)
|
os.remove(export_name)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
d_print("Running commad")
|
|
||||||
os.chdir(_FULL_PATH)
|
os.chdir(_FULL_PATH)
|
||||||
print(_FULL_PATH)
|
print(_FULL_PATH)
|
||||||
print(os.getcwd())
|
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",
|
"/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)
|
#print(myCmd)
|
||||||
|
d_print(" ".join(myCmd))
|
||||||
print(f"Encoding {p} to {export_name} in {_DAY_DIR}...".ljust(100))
|
print(f"Encoding {p} to {export_name} in {_DAY_DIR}...".ljust(100))
|
||||||
ff = FfmpegProgress(myCmd)
|
ff = FfmpegProgress(myCmd)
|
||||||
with tqdm(total=100, position=1, desc="Encode") as pbar:
|
with tqdm(total=100, position=1, desc="Encode") as pbar:
|
||||||
|
|||||||
Reference in New Issue
Block a user