updated
This commit is contained in:
@@ -11,7 +11,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)
|
||||
@@ -28,7 +31,7 @@ lines = "-map 0:v -c:v libx265 -preset slow -crf 20 -x265-params level=51:no-sao
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user