mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 18:44:53 +01:00
bitwarden
This commit is contained in:
@@ -103,13 +103,7 @@ if _ACTION == "join":
|
|||||||
|
|
||||||
parts.sort()
|
parts.sort()
|
||||||
# print(parts)
|
# print(parts)
|
||||||
if len(parts) > 1:
|
if len(parts) == 1:
|
||||||
print("This need to be joined!")
|
|
||||||
# for p in parts:
|
|
||||||
# join_string =
|
|
||||||
else:
|
|
||||||
# continue
|
|
||||||
# print(parts)
|
|
||||||
shutil.move(parts[0], export_name)
|
shutil.move(parts[0], export_name)
|
||||||
continue
|
continue
|
||||||
# print(type(parts))
|
# print(type(parts))
|
||||||
@@ -126,26 +120,11 @@ if _ACTION == "join":
|
|||||||
file_stats = os.stat(p)
|
file_stats = os.stat(p)
|
||||||
final_size += file_stats.st_size
|
final_size += file_stats.st_size
|
||||||
f.close()
|
f.close()
|
||||||
print(final_size)
|
#print(final_size)
|
||||||
print(_FULL_PATH)
|
#print(_FULL_PATH)
|
||||||
|
|
||||||
if _TEST:
|
if _TEST:
|
||||||
input(" ???? ")
|
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())
|
# print(os.getcwd())
|
||||||
#status, output = subprocess.getstatusoutput(myCmd)
|
#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
|
"/opt/ffmpeg/ffmpeg", "-f", "concat", "-i", "video.txt ","-vcodec", "copy", "-acodec", "copy", export_name
|
||||||
]
|
]
|
||||||
|
|
||||||
print(myCmd)
|
#print(myCmd)
|
||||||
print(f"Joining {len(parts)} files...")
|
print(f"Joining {len(parts)} files...")
|
||||||
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user