mirror of
https://github.com/c0decracker/video-splitter.git
synced 2026-01-23 02:24:16 +00:00
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:
parent
ce96faeead
commit
6547271dfb
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue