mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 02:34:53 +01:00
bitwarden
This commit is contained in:
@@ -62,7 +62,7 @@ if ops == "win":
|
||||
else:
|
||||
_FULL_PATH = _SOURCE_DIR + "/" + _DEV + "/" + _DAY_DIR + "/"
|
||||
|
||||
print(_FULL_PATH)
|
||||
#print(_FULL_PATH)
|
||||
|
||||
video_seq = {}
|
||||
if os.path.exists(_FULL_PATH):
|
||||
@@ -76,14 +76,14 @@ if os.path.exists(_FULL_PATH):
|
||||
if not seq in video_seq:
|
||||
video_seq[seq] = []
|
||||
video_seq[seq].append(part + seq + ".MP4")
|
||||
print(filename)
|
||||
print(seq)
|
||||
print(part)
|
||||
print(json.dumps(video_seq,indent=2))
|
||||
# print(filename)
|
||||
# print(seq)
|
||||
# print(part)
|
||||
# print(json.dumps(video_seq,indent=2))
|
||||
_PROCESSED = _FULL_PATH + "processed"
|
||||
if not os.path.exists(_PROCESSED):
|
||||
os.mkdir(_PROCESSED)
|
||||
print(f"SEQUENCES : {_SEQUENCES}")
|
||||
# print(f"SEQUENCES : {_SEQUENCES}")
|
||||
|
||||
for vid in video_seq:
|
||||
|
||||
@@ -93,14 +93,14 @@ if os.path.exists(_FULL_PATH):
|
||||
parts = video_seq[vid]
|
||||
|
||||
parts.sort()
|
||||
print(parts)
|
||||
# print(parts)
|
||||
if len(parts) > 1:
|
||||
print("This need to be joined!")
|
||||
# for p in parts:
|
||||
# join_string =
|
||||
# else:
|
||||
# continue
|
||||
print(parts)
|
||||
# print(parts)
|
||||
|
||||
# print(type(parts))
|
||||
#ffmpeg -i concat:"input1.mp4|input2.mp4" output.mp4
|
||||
@@ -131,7 +131,7 @@ if os.path.exists(_FULL_PATH):
|
||||
|
||||
|
||||
|
||||
print(os.getcwd())
|
||||
# print(os.getcwd())
|
||||
#status, output = subprocess.getstatusoutput(myCmd)
|
||||
|
||||
if _FLIP:
|
||||
@@ -154,6 +154,7 @@ if os.path.exists(_FULL_PATH):
|
||||
]
|
||||
|
||||
print(myCmd)
|
||||
print(f"Joining {len(parts)} files...")
|
||||
ff = FfmpegProgress(myCmd)
|
||||
with tqdm(total=100, position=1, desc="Convert") as pbar:
|
||||
for progress in ff.run_command_with_progress():
|
||||
|
||||
Reference in New Issue
Block a user