mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 18:44:53 +01:00
bitwarden
This commit is contained in:
@@ -181,9 +181,13 @@ if _ACTION == "join":
|
|||||||
myCmd = [
|
myCmd = [
|
||||||
"/opt/ffmpeg/ffmpeg", "-f", "concat", "-i", "video.txt ","-vcodec", "copy", "-acodec", "copy", "-y", export_name
|
"/opt/ffmpeg/ffmpeg", "-f", "concat", "-i", "video.txt ","-vcodec", "copy", "-acodec", "copy", "-y", export_name
|
||||||
]
|
]
|
||||||
|
if _TEST:
|
||||||
#print(myCmd)
|
print(" ".join(myCmd))
|
||||||
print(f"Joining {len(parts)} files to {export_name} in {_DAY_DIR}...")
|
print(f"Joining {len(parts)} files to {export_name} in {_DAY_DIR}...")
|
||||||
|
try:
|
||||||
|
os.remove(export_name)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
proc = subprocess.Popen(myCmd,stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT)
|
proc = subprocess.Popen(myCmd,stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT)
|
||||||
# with tqdm(total=100, position=1, desc="Convert") as pbar:
|
# with tqdm(total=100, position=1, desc="Convert") as pbar:
|
||||||
# for progress in ff.run_command_with_progress():
|
# for progress in ff.run_command_with_progress():
|
||||||
@@ -216,7 +220,7 @@ if _ACTION == "join":
|
|||||||
# get the output
|
# get the output
|
||||||
status = 0
|
status = 0
|
||||||
|
|
||||||
if status == 0:
|
if status == 0 and not _TEST:
|
||||||
print("Moving...")
|
print("Moving...")
|
||||||
for p in parts:
|
for p in parts:
|
||||||
try:
|
try:
|
||||||
@@ -276,7 +280,7 @@ if _ACTION == "encode":
|
|||||||
myCmd = [
|
myCmd = [
|
||||||
"/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)
|
||||||
print(f"Encoding {p} to {export_name} in {_DAY_DIR}...")
|
print(f"Encoding {p} to {export_name} in {_DAY_DIR}...")
|
||||||
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