This commit is contained in:
Elghinnarisa
2022-09-09 20:18:34 +02:00
parent 19ad920d93
commit d4d12e2d41
12 changed files with 54 additions and 30 deletions

View File

@@ -10,7 +10,10 @@ droppedName = Path(droppedFile).name
#get path of script location and remove the tail
head_tail = os.path.split(sys.argv[0])
output_path = head_tail[0]
del sys.argv[0]
#skip first part of sys.argv since it points to script location
arguments = sys.argv[1:]
#check if output folder exists, otherwise create it
isExist = os.path.exists(output_path+output_folder_name)
@@ -27,7 +30,7 @@ org_lineslines = " -map 0:v -c:v libx264 -crf 5 -map 0:a -c:a copy -map 0:s -c:s
number_of_segments=int(input("Number of segments: "))
segment_length=int(input("How long should each segment be(seconds)? "))
for i, file in enumerate(sys.argv):
for i, file in enumerate(arguments):
arg_list = 'ffprobe.exe -show_entries format=duration -i "{file}"'.format(file=file)
print(arg_list)