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(export): compute requiredEndSec for decode termination handling
Azerud40f40d69d10
diff --git a/src/lib/exporter/streamingDecoder.ts b/src/lib/exporter/streamingDecoder.tsindex cb5bf7b80..f6db016da 100644--- a/src/lib/exporter/streamingDecoder.ts+++ b/src/lib/exporter/streamingDecoder.ts@@ -253,6 +253,8 @@ export class StreamingVideoDecoder {this.computeSegments(this.metadata.duration, trimRegions),speedRegions,);+ const requiredEndSec = segments[segments.length - 1]?.endSec ?? 0;+const segmentOutputFrameCounts = segments.map((segment) =>Math.ceil(((segment.endSec - segment.startSec) / segment.speed) * targetFrameRate),);