Add support for writing I-frame only tracks, fix track closing race conditions in other muxers

This commit is contained in:
Vanilagy
2026-03-27 18:48:27 +01:00
parent e2e8aaab78
commit 94678dd356
8 changed files with 200 additions and 30 deletions
+5
View File
@@ -232,6 +232,11 @@ export type VideoTrackMetadata = BaseTrackMetadata & {
* with the same timestamp.
*/
frameRate?: number;
/**
* When true, this track is marked as being made only out of key frames (I-frames). It is an error to add a non-key
* frame to this track.
*/
hasOnlyKeyPackets?: boolean;
};
/**
* Additional metadata for audio tracks.