Skip to content

🎥 Make videos programmatically with React

`@remotion/webcodecs`: Allow a bigger queue

JonnyBurger397100ad1d01
diff --git a/packages/webcodecs/src/internal-extract-frames.ts b/packages/webcodecs/src/internal-extract-frames.ts
index af5d5cd7aa..b2ed25818d 100644
--- a/packages/webcodecs/src/internal-extract-frames.ts
+++ b/packages/webcodecs/src/internal-extract-frames.ts
@@ -142,7 +142,7 @@ export const internalExtractFrames = ({
throw new Error('Sample is undefined');
}
- await decoder.waitForQueueToBeLessThan(10);
+ await decoder.waitForQueueToBeLessThan(20);
Log.trace(logLevel, 'Decoding sample', sam.timestamp);
await decoder.decode(sam);
}
@@ -152,7 +152,7 @@ export const internalExtractFrames = ({
const nextTimestampWeWant = timestampTargets[0];
Log.trace(
logLevel,
- 'Received sample with dts',
+ `Received ${sample.type} sample with dts`,
sample.decodingTimestamp,
'and cts',
sample.timestamp,