From 8c6141b5cadcceadf20deae322e1f69c86a25ea3 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Thu, 10 Oct 2024 04:01:59 +1100 Subject: [PATCH] thrimbletrimmer: Correct video time conversions due to overlap from transitions --- thrimbletrimmer/scripts/edit.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thrimbletrimmer/scripts/edit.js b/thrimbletrimmer/scripts/edit.js index f70e4bb..5c3382b 100644 --- a/thrimbletrimmer/scripts/edit.js +++ b/thrimbletrimmer/scripts/edit.js @@ -969,6 +969,9 @@ async function sendVideoData(newState, overrideChanges) { return; } transitions.push([transitionType, transitionDuration]) + // Since we're overlapping with the previous range, this range's start time is + // actually earlier. This matters for chapter markers. + rangeStartInFinalVideo -= transitionDuration; } }