enhance chunk naming

Instead of chunk index (0 to n-1) we apply
"chunk index (1 to n)-of-n".
This commit is contained in:
Csaba Henk 2018-01-01 19:20:42 +01:00
parent ce96faeead
commit 6547271dfb

View file

@ -106,7 +106,8 @@ def split_by_seconds(filename, split_length, vcodec="copy", acodec="copy",
split_start = split_length * n
split_args += ["-ss", str(split_start), "-t", str(split_length),
filebase + "-" + str(n) + "." + fileext]
filebase + "-" + str(n+1) + "-of-" + \
str(split_count) + "." + fileext]
print "About to run: "+" ".join(split_cmd+split_args)
subprocess.check_output(split_cmd+split_args)