summaryrefslogtreecommitdiff
path: root/tools/process-motion-timecodes.py
diff options
context:
space:
mode:
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}')