Allow Matroska clusters that don't begin with a key frame

This commit is contained in:
Vanilagy
2025-03-21 22:50:57 +01:00
parent 3863ffe4d8
commit 4645b0d6a5
5 changed files with 49 additions and 24 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ class VideoEncoderWrapper {
// Ensure a key frame every keyFrameInterval seconds. It is important that all video tracks follow the same
// "key frame" rhythm, because aligned key frames are required to start new fragments in ISOBMFF or clusters
// in Matroska.
// in Matroska (or at least desirable).
const finalEncodeOptions = {
...encodeOptions,
keyFrame: encodeOptions?.keyFrame