Implement optimized fragmented MP4 demuxing

This commit is contained in:
David Payr
2024-12-14 21:50:51 +01:00
parent 5978110de9
commit 07689fbd8d
14 changed files with 2543 additions and 163 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { AudioCodec, MediaCodec, VideoCodec } from './codec';
import { Rotation } from './misc';
export interface InputTrackBacking {
getCodec(): Promise<MediaCodec>;
@@ -34,7 +35,7 @@ export interface InputVideoTrackBacking extends InputTrackBacking {
getCodec(): Promise<VideoCodec>;
getWidth(): Promise<number>;
getHeight(): Promise<number>;
getRotation(): Promise<number>;
getRotation(): Promise<Rotation>;
getDecoderConfig(): Promise<VideoDecoderConfig>;
getFirstChunk(): Promise<EncodedVideoChunk | null>;
getChunk(timestamp: number): Promise<EncodedVideoChunk | null>;