mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 10:44:52 +01:00
bitwarden
This commit is contained in:
@@ -123,7 +123,7 @@ if _ACTION == "join":
|
|||||||
|
|
||||||
if len(_SEQUENCES) != 0 and vid not in _SEQUENCES:
|
if len(_SEQUENCES) != 0 and vid not in _SEQUENCES:
|
||||||
continue
|
continue
|
||||||
export_name = "joined_" + vid + ".MP4"
|
export_name = "joining_" + vid + ".MP4"
|
||||||
parts = video_seq[vid]
|
parts = video_seq[vid]
|
||||||
|
|
||||||
parts.sort()
|
parts.sort()
|
||||||
@@ -225,7 +225,10 @@ if _ACTION == "join":
|
|||||||
print("Something is wrong")
|
print("Something is wrong")
|
||||||
else:
|
else:
|
||||||
print("Size OK")
|
print("Size OK")
|
||||||
|
try:
|
||||||
|
shutil.move(export_name, export_name.replace("joining","joined"))
|
||||||
|
except:
|
||||||
|
print(f"Failed to move {export_name}")
|
||||||
print("\r\n",flush=True)
|
print("\r\n",flush=True)
|
||||||
print(f"\rProcess finished with rc: {proc.returncode}",flush=True)
|
print(f"\rProcess finished with rc: {proc.returncode}",flush=True)
|
||||||
# get the output
|
# get the output
|
||||||
@@ -272,7 +275,7 @@ if _ACTION == "encode":
|
|||||||
os.chdir(_FULL_PATH)
|
os.chdir(_FULL_PATH)
|
||||||
|
|
||||||
for p in parts:
|
for p in parts:
|
||||||
export_name = "encoded_" + p
|
export_name = "working_" + p
|
||||||
if _FLIP:
|
if _FLIP:
|
||||||
if ops == "win":
|
if ops == "win":
|
||||||
myCmd = [
|
myCmd = [
|
||||||
@@ -301,6 +304,9 @@ if _ACTION == "encode":
|
|||||||
# get the output
|
# get the output
|
||||||
#print(ff.stderr)
|
#print(ff.stderr)
|
||||||
#ffmpeg -i .\GH010149.MP4 -c:v hevc_amf -rc cqp -qp_i 42 -qp_p 42 -quality quality -crf 25 output7.mp4
|
#ffmpeg -i .\GH010149.MP4 -c:v hevc_amf -rc cqp -qp_i 42 -qp_p 42 -quality quality -crf 25 output7.mp4
|
||||||
|
try:
|
||||||
|
shutil.move(export_name, export_name.replace("encoding","encoded"))
|
||||||
|
except:
|
||||||
|
print(f"Failed to move {export_name}")
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user