summaryrefslogtreecommitdiff
path: root/tools/process-motion-timecodes.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-06-07 01:18:59 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-06-07 01:18:59 +0300
commit5af3432a04a8453c3dcdf01c778a411cb12f0255 (patch)
treed31218bc09e9e5efe3bf2220ec607aa2af2a8046 /tools/process-motion-timecodes.py
parent04030c08f1bf7ebe7f0a1f6dfd737e4ec1ff93e2 (diff)
tools/process-motion-timecodes: modify format
Diffstat (limited to 'tools/process-motion-timecodes.py')
-rwxr-xr-xtools/process-motion-timecodes.py4
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}')