diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-06-07 01:18:59 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-06-07 01:18:59 +0300 |
commit | 5af3432a04a8453c3dcdf01c778a411cb12f0255 (patch) | |
tree | d31218bc09e9e5efe3bf2220ec607aa2af2a8046 /tools/process-motion-timecodes.py | |
parent | 04030c08f1bf7ebe7f0a1f6dfd737e4ec1ff93e2 (diff) |
tools/process-motion-timecodes: modify format
Diffstat (limited to 'tools/process-motion-timecodes.py')
-rwxr-xr-x | tools/process-motion-timecodes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/process-motion-timecodes.py b/tools/process-motion-timecodes.py index 8c9d5fc..70c990d 100755 --- a/tools/process-motion-timecodes.py +++ b/tools/process-motion-timecodes.py @@ -70,8 +70,10 @@ if __name__ == '__main__': if start < 0: start = 0 + duration = end - start + dt1 = (file_dt + timedelta(seconds=start)).strftime(DATETIME_FORMAT) dt2 = (file_dt + timedelta(seconds=end)).strftime(DATETIME_FORMAT) filename = f'{dt1}__{dt2}.mp4' - print(f'{start} {end} {filename}') + print(f'{start} {duration} {filename}') |