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
chore: restore original VideoFrame formatting in streamingDecoder.ts
Davide Mendolia3a2f90722c7e
diff --git a/src/lib/exporter/streamingDecoder.ts b/src/lib/exporter/streamingDecoder.tsindex 0e429cb62..752d5cd4c 100644--- a/src/lib/exporter/streamingDecoder.ts+++ b/src/lib/exporter/streamingDecoder.ts@@ -503,9 +503,7 @@ export class StreamingVideoDecoder {segment.startSec + (segmentFrameIndex / targetFrameRate) * segment.speed;if (sourceTimeSec >= segment.endSec - EPSILON_SEC) return false;- const clone = new VideoFrame(heldFrame, {- timestamp: heldFrame.timestamp,- });+ const clone = new VideoFrame(heldFrame, { timestamp: heldFrame.timestamp });await onFrame(clone, exportFrameIndex * frameDurationUs, sourceTimeSec * 1000);segmentFrameIndex++;exportFrameIndex++;@@ -577,9 +575,7 @@ export class StreamingVideoDecoder {break;}- const clone = new VideoFrame(heldFrame, {- timestamp: heldFrame.timestamp,- });+ const clone = new VideoFrame(heldFrame, { timestamp: heldFrame.timestamp });await onFrame(clone, exportFrameIndex * frameDurationUs, sourceTimeSec * 1000);segmentFrameIndex++;exportFrameIndex++;