Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix: algin frame cap with epsilon boundary to prevent frame count mismatch
Theodor Peifer14bbe8f18348
diff --git a/src/lib/exporter/streamingDecoder.ts b/src/lib/exporter/streamingDecoder.tsindex 25a6aa249..651a557c6 100644--- a/src/lib/exporter/streamingDecoder.ts+++ b/src/lib/exporter/streamingDecoder.ts@@ -246,7 +246,9 @@ export class StreamingVideoDecoder {speedRegions,);const segmentOutputFrameCounts = segments.map((segment) =>- Math.ceil(((segment.endSec - segment.startSec) / segment.speed) * targetFrameRate),+ Math.ceil(+ ((segment.endSec - segment.startSec - EPSILON_SEC) / segment.speed) * targetFrameRate,+ ),);const frameDurationUs = 1_000_000 / targetFrameRate;