bitwarden

This commit is contained in:
jaydee
2024-09-24 21:22:48 +02:00
parent 35a54cdc62
commit 2c7886bf44

View File

@@ -103,13 +103,7 @@ if _ACTION == "join":
parts.sort()
# print(parts)
if len(parts) > 1:
print("This need to be joined!")
# for p in parts:
# join_string =
else:
# continue
# print(parts)
if len(parts) == 1:
shutil.move(parts[0], export_name)
continue
# print(type(parts))
@@ -126,26 +120,11 @@ if _ACTION == "join":
file_stats = os.stat(p)
final_size += file_stats.st_size
f.close()
print(final_size)
print(_FULL_PATH)
#print(final_size)
#print(_FULL_PATH)
if _TEST:
input(" ???? ")
# if _FLIP:
# if ops == "win":
# myCmd = 'ffmpeg -display_rotation 180 -f concat -i video.txt -vcodec copy -acodec copy ' + export_name
# else:
# myCmd = '/opt/ffmpeg/ffmpeg -display_rotation 180 -f concat -i video.txt -vcodec copy -acodec copy ' + export_name
# else:
# if ops == "win":
# myCmd = 'ffmpeg -f concat -i video.txt -vcodec copy -acodec copy ' + export_name
# else:
# myCmd = '/opt/ffmpeg/ffmpeg -f concat -i video.txt -vcodec copy -acodec copy ' + export_name
# print(os.getcwd())
#status, output = subprocess.getstatusoutput(myCmd)
@@ -169,7 +148,7 @@ if _ACTION == "join":
"/opt/ffmpeg/ffmpeg", "-f", "concat", "-i", "video.txt ","-vcodec", "copy", "-acodec", "copy", export_name
]
print(myCmd)
#print(myCmd)
print(f"Joining {len(parts)} files...")
proc = subprocess.Popen(myCmd,stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT)
# with tqdm(total=100, position=1, desc="Convert") as pbar: