@remotion/webcodecs 4.0.423 → 4.0.424

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/arraybuffer-to-uint8-array.d.ts +1 -1
  2. package/dist/audio-data/data-types.d.ts +1 -1
  3. package/dist/audio-encoder-config.d.ts +1 -2
  4. package/dist/auto-select-writer.d.ts +2 -2
  5. package/dist/can-copy-audio-track.d.ts +2 -4
  6. package/dist/can-copy-video-track.d.ts +2 -4
  7. package/dist/can-reencode-audio-track.d.ts +1 -2
  8. package/dist/can-reencode-video-track.d.ts +1 -2
  9. package/dist/convert-media.d.ts +25 -28
  10. package/dist/convert-to-correct-videoframe.d.ts +2 -3
  11. package/dist/copy-audio-track.d.ts +8 -4
  12. package/dist/copy-video-track.d.ts +9 -5
  13. package/dist/create/event-emitter.js +6 -8
  14. package/dist/create/iso-base-media/create-ilst.d.ts +1 -1
  15. package/dist/create/iso-base-media/create-mdia.d.ts +3 -3
  16. package/dist/create/iso-base-media/create-moov.d.ts +3 -3
  17. package/dist/create/iso-base-media/create-trak.d.ts +2 -2
  18. package/dist/create/iso-base-media/create-udta.d.ts +1 -1
  19. package/dist/create/iso-base-media/example-stts.d.ts +3 -3
  20. package/dist/create/iso-base-media/mp4-header.d.ts +1 -2
  21. package/dist/create/iso-base-media/primitives.d.ts +3 -3
  22. package/dist/create/iso-base-media/serialize-track.d.ts +2 -2
  23. package/dist/create/iso-base-media/trak/mdia/create-minf.d.ts +2 -2
  24. package/dist/create/iso-base-media/trak/mdia/minf/create-stbl.d.ts +3 -3
  25. package/dist/create/iso-base-media/trak/mdia/minf/stbl/create-ctts.d.ts +2 -2
  26. package/dist/create/iso-base-media/trak/mdia/minf/stbl/create-stco.d.ts +2 -2
  27. package/dist/create/iso-base-media/trak/mdia/minf/stbl/create-stsc.d.ts +2 -2
  28. package/dist/create/iso-base-media/trak/mdia/minf/stbl/create-stss.d.ts +2 -2
  29. package/dist/create/iso-base-media/trak/mdia/minf/stbl/create-stsz.d.ts +2 -2
  30. package/dist/create/iso-base-media/trak/mdia/minf/stbl/create-stts.d.ts +2 -2
  31. package/dist/create/iso-base-media/trak/mdia/minf/stbl/stsd/create-avc1.d.ts +1 -1
  32. package/dist/create/iso-base-media/trak/mdia/minf/stbl/stsd/create-avcc.d.ts +1 -1
  33. package/dist/create/iso-base-media/trak/mdia/minf/stbl/stsd/create-hvcc.d.ts +1 -1
  34. package/dist/create/iso-base-media/udta/create-meta.d.ts +2 -2
  35. package/dist/create/iso-base-media/udta/meta/create-hdlr.d.ts +1 -1
  36. package/dist/create/matroska/cluster-segment.d.ts +1 -1
  37. package/dist/create/matroska/cluster.d.ts +3 -3
  38. package/dist/create/matroska/matroska-seek.d.ts +2 -2
  39. package/dist/create/matroska/matroska-utils.d.ts +7 -7
  40. package/dist/create/media-fn.d.ts +2 -2
  41. package/dist/create-audio-decoder.d.ts +3 -3
  42. package/dist/create-video-decoder.d.ts +5 -6
  43. package/dist/esm/buffer.mjs +1 -4
  44. package/dist/esm/index.mjs +3 -10
  45. package/dist/esm/web-fs.mjs +1 -3
  46. package/dist/generate-output-filename.d.ts +1 -2
  47. package/dist/get-available-audio-codecs.d.ts +2 -3
  48. package/dist/get-available-containers.d.ts +1 -1
  49. package/dist/get-available-video-codecs.d.ts +2 -3
  50. package/dist/get-codec-string.d.ts +1 -2
  51. package/dist/get-default-audio-codec.d.ts +2 -4
  52. package/dist/get-default-video-codec.d.ts +2 -4
  53. package/dist/get-partial-audio-data.d.ts +1 -1
  54. package/dist/get-wave-audio-decoder.d.ts +8 -5
  55. package/dist/index.d.ts +2 -2
  56. package/dist/index.js +22 -22
  57. package/dist/internal-extract-frames.d.ts +3 -3
  58. package/dist/io-manager/io-synchronizer.d.ts +1 -2
  59. package/dist/is-different-video-codec.d.ts +2 -4
  60. package/dist/log.d.ts +4 -4
  61. package/dist/log.js +0 -1
  62. package/dist/on-audio-track.d.ts +11 -9
  63. package/dist/on-frame.d.ts +1 -2
  64. package/dist/on-video-track.d.ts +12 -10
  65. package/dist/processing-queue.d.ts +1 -1
  66. package/dist/reencode-audio-track.d.ts +9 -5
  67. package/dist/reencode-video-track.d.ts +9 -5
  68. package/dist/rotate-and-resize-video-frame.d.ts +1 -1
  69. package/dist/undecodable-error.d.ts +2 -2
  70. package/dist/undecodable-error.js +2 -0
  71. package/dist/video-encoder-config.d.ts +1 -2
  72. package/dist/video-encoder.d.ts +2 -4
  73. package/dist/wav-audio-encoder.d.ts +7 -3
  74. package/dist/worker.js +1 -1
  75. package/dist/writers/buffer-implementation/writer.d.ts +2 -2
  76. package/dist/writers/buffer-implementation/writer.js +1 -1
  77. package/dist/writers/buffer.d.ts +2 -2
  78. package/dist/writers/web-fs.d.ts +2 -2
  79. package/dist/writers/web-fs.js +1 -1
  80. package/package.json +8 -7
  81. package/dist/send-telemetry-event.d.ts +0 -4
  82. package/dist/send-telemetry-event.js +0 -21
  83. package/dist/set-remotion-imported.d.ts +0 -6
  84. package/dist/set-remotion-imported.js +0 -25
@@ -1 +1 @@
1
- export declare const arrayBufferToUint8Array: (buffer: ArrayBuffer | null) => Uint8Array | null;
1
+ export declare const arrayBufferToUint8Array: (buffer: ArrayBuffer | null) => Uint8Array<ArrayBufferLike> | null;
@@ -1 +1 @@
1
- export declare const getDataTypeForAudioFormat: (format: AudioSampleFormat) => Uint8ArrayConstructor | Float32ArrayConstructor | Int16ArrayConstructor | Int32ArrayConstructor;
1
+ export declare const getDataTypeForAudioFormat: (format: AudioSampleFormat) => Float32ArrayConstructor | Int16ArrayConstructor | Int32ArrayConstructor | Uint8ArrayConstructor;
@@ -1,4 +1,3 @@
1
- import type { ConvertMediaAudioCodec } from './get-available-audio-codecs';
2
1
  export declare const getAudioEncoderConfig: (config: AudioEncoderConfig & {
3
- codec: ConvertMediaAudioCodec;
2
+ codec: "aac" | "opus" | "wav";
4
3
  }) => Promise<AudioEncoderConfig | null>;
@@ -1,2 +1,2 @@
1
- import type { MediaParserInternalTypes, MediaParserLogLevel } from '@remotion/media-parser';
2
- export declare const autoSelectWriter: (writer: MediaParserInternalTypes["WriterInterface"] | undefined, logLevel: MediaParserLogLevel) => Promise<MediaParserInternalTypes["WriterInterface"]>;
1
+ import type { WriterInterface } from '@remotion/media-parser';
2
+ export declare const autoSelectWriter: (writer: WriterInterface | undefined, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<WriterInterface>;
@@ -1,9 +1,7 @@
1
1
  import type { MediaParserAudioCodec, MediaParserContainer } from '@remotion/media-parser';
2
- import type { ConvertMediaAudioCodec } from './get-available-audio-codecs';
3
- import type { ConvertMediaContainer } from './get-available-containers';
4
2
  export declare const canCopyAudioTrack: ({ inputCodec, outputContainer, inputContainer, outputAudioCodec, }: {
5
3
  inputCodec: MediaParserAudioCodec;
6
- outputContainer: ConvertMediaContainer;
4
+ outputContainer: "mp4" | "wav" | "webm";
7
5
  inputContainer: MediaParserContainer;
8
- outputAudioCodec: ConvertMediaAudioCodec | null;
6
+ outputAudioCodec: "aac" | "opus" | "wav" | null;
9
7
  }) => boolean;
@@ -1,12 +1,10 @@
1
1
  import type { MediaParserContainer, MediaParserVideoTrack } from '@remotion/media-parser';
2
- import type { ConvertMediaContainer } from './get-available-containers';
3
- import type { ConvertMediaVideoCodec } from './get-available-video-codecs';
4
2
  import type { ResizeOperation } from './resizing/mode';
5
3
  export declare const canCopyVideoTrack: ({ outputContainer, rotationToApply, inputContainer, resizeOperation, inputTrack, outputVideoCodec, }: {
6
4
  inputContainer: MediaParserContainer;
7
5
  inputTrack: MediaParserVideoTrack;
8
6
  rotationToApply: number;
9
- outputContainer: ConvertMediaContainer;
10
- outputVideoCodec: ConvertMediaVideoCodec | null;
7
+ outputContainer: "mp4" | "wav" | "webm";
8
+ outputVideoCodec: "h264" | "h265" | "vp8" | "vp9" | null;
11
9
  resizeOperation: ResizeOperation | null;
12
10
  }) => boolean;
@@ -1,8 +1,7 @@
1
1
  import type { MediaParserAudioTrack } from '@remotion/media-parser';
2
- import type { ConvertMediaAudioCodec } from './get-available-audio-codecs';
3
2
  export declare const canReencodeAudioTrack: ({ track, audioCodec, bitrate, sampleRate, }: {
4
3
  track: MediaParserAudioTrack;
5
- audioCodec: ConvertMediaAudioCodec;
4
+ audioCodec: "aac" | "opus" | "wav";
6
5
  bitrate: number;
7
6
  sampleRate: number | null;
8
7
  }) => Promise<boolean>;
@@ -1,8 +1,7 @@
1
1
  import type { MediaParserVideoTrack } from '@remotion/media-parser';
2
- import type { ConvertMediaVideoCodec } from './get-available-video-codecs';
3
2
  import type { ResizeOperation } from './resizing/mode';
4
3
  export declare const canReencodeVideoTrack: ({ videoCodec, track, resizeOperation, rotate, }: {
5
- videoCodec: ConvertMediaVideoCodec;
4
+ videoCodec: "h264" | "h265" | "vp8" | "vp9";
6
5
  track: MediaParserVideoTrack;
7
6
  resizeOperation: ResizeOperation | null;
8
7
  rotate: number | null;
@@ -2,10 +2,7 @@
2
2
  * Copyright (c) 2025 Remotion AG
3
3
  * For licensing, see: https://remotion.dev/docs/webcodecs#license
4
4
  */
5
- import type { MediaParserAudioTrack, MediaParserInternalTypes, MediaParserLogLevel, MediaParserVideoTrack, Options, ParseMediaFields, ParseMediaOptions } from '@remotion/media-parser';
6
- import type { ConvertMediaAudioCodec } from './get-available-audio-codecs';
7
- import { type ConvertMediaContainer } from './get-available-containers';
8
- import { type ConvertMediaVideoCodec } from './get-available-video-codecs';
5
+ import type { MediaParserAudioTrack, MediaParserVideoTrack, ParseMediaFields, WriterInterface } from '@remotion/media-parser';
9
6
  import { type ConvertMediaOnAudioTrackHandler } from './on-audio-track-handler';
10
7
  import { type ConvertMediaOnVideoTrackHandler } from './on-video-track-handler';
11
8
  import type { ResizeOperation } from './resizing/mode';
@@ -34,27 +31,27 @@ export type ConvertMediaOnAudioData = (options: {
34
31
  audioData: AudioData;
35
32
  track: MediaParserAudioTrack;
36
33
  }) => Promise<AudioData> | AudioData;
37
- export declare const convertMedia: <F extends Options<ParseMediaFields>>({ src, onVideoFrame, onAudioData, onProgress: onProgressDoNotCallDirectly, audioCodec, container, videoCodec, controller, onAudioTrack: userAudioResolver, onVideoTrack: userVideoResolver, reader, fields, logLevel, writer, progressIntervalInMs, rotate, resize, onAudioCodec, onContainer, onDimensions, onDurationInSeconds, onFps, onImages, onInternalStats, onIsHdr, onKeyframes, onLocation, onMetadata, onMimeType, onName, onNumberOfAudioChannels, onRotation, onSampleRate, onSize, onSlowAudioBitrate, onSlowDurationInSeconds, onSlowFps, onSlowKeyframes, onSlowNumberOfFrames, onSlowVideoBitrate, onSlowStructure, onTracks, onUnrotatedDimensions, onVideoCodec, onM3uStreams, selectM3uStream, selectM3uAssociatedPlaylists, expectedDurationInSeconds, expectedFrameRate, seekingHints, ...more }: {
38
- src: ParseMediaOptions<F>["src"];
39
- container: ConvertMediaContainer;
40
- onVideoFrame?: ConvertMediaOnVideoFrame;
41
- onAudioData?: ConvertMediaOnAudioData;
42
- onProgress?: ConvertMediaOnProgress;
43
- videoCodec?: ConvertMediaVideoCodec;
44
- audioCodec?: ConvertMediaAudioCodec;
45
- controller?: WebCodecsController;
46
- onAudioTrack?: ConvertMediaOnAudioTrackHandler;
47
- onVideoTrack?: ConvertMediaOnVideoTrackHandler;
48
- selectM3uStream?: ParseMediaOptions<F>["selectM3uStream"];
49
- selectM3uAssociatedPlaylists?: ParseMediaOptions<F>["selectM3uAssociatedPlaylists"];
50
- expectedDurationInSeconds?: number | null;
51
- expectedFrameRate?: number | null;
52
- reader?: ParseMediaOptions<F>["reader"];
53
- logLevel?: MediaParserLogLevel;
54
- writer?: MediaParserInternalTypes["WriterInterface"];
55
- progressIntervalInMs?: number;
56
- rotate?: number;
57
- resize?: ResizeOperation;
58
- fields?: F;
59
- seekingHints?: ParseMediaOptions<F>["seekingHints"];
60
- } & MediaParserInternalTypes["ParseMediaCallbacks"]) => Promise<ConvertMediaResult>;
34
+ export declare const convertMedia: <F extends Partial<import("@remotion/media-parser").AllOptions<ParseMediaFields>>>({ src, onVideoFrame, onAudioData, onProgress: onProgressDoNotCallDirectly, audioCodec, container, videoCodec, controller, onAudioTrack: userAudioResolver, onVideoTrack: userVideoResolver, reader, fields, logLevel, writer, progressIntervalInMs, rotate, resize, onAudioCodec, onContainer, onDimensions, onDurationInSeconds, onFps, onImages, onInternalStats, onIsHdr, onKeyframes, onLocation, onMetadata, onMimeType, onName, onNumberOfAudioChannels, onRotation, onSampleRate, onSize, onSlowAudioBitrate, onSlowDurationInSeconds, onSlowFps, onSlowKeyframes, onSlowNumberOfFrames, onSlowVideoBitrate, onSlowStructure, onTracks, onUnrotatedDimensions, onVideoCodec, onM3uStreams, selectM3uStream, selectM3uAssociatedPlaylists, expectedDurationInSeconds, expectedFrameRate, seekingHints, ...more }: {
35
+ src: import("@remotion/media-parser").ParseMediaSrc;
36
+ container: "mp4" | "wav" | "webm";
37
+ onVideoFrame?: ConvertMediaOnVideoFrame | undefined;
38
+ onAudioData?: ConvertMediaOnAudioData | undefined;
39
+ onProgress?: ConvertMediaOnProgress | undefined;
40
+ videoCodec?: "h264" | "h265" | "vp8" | "vp9" | undefined;
41
+ audioCodec?: "aac" | "opus" | "wav" | undefined;
42
+ controller?: WebCodecsController | undefined;
43
+ onAudioTrack?: ConvertMediaOnAudioTrackHandler | undefined;
44
+ onVideoTrack?: ConvertMediaOnVideoTrackHandler | undefined;
45
+ selectM3uStream?: import("@remotion/media-parser").SelectM3uStreamFn | undefined;
46
+ selectM3uAssociatedPlaylists?: import("@remotion/media-parser").SelectM3uAssociatedPlaylistsFn | undefined;
47
+ expectedDurationInSeconds?: number | null | undefined;
48
+ expectedFrameRate?: number | null | undefined;
49
+ reader?: import("@remotion/media-parser").MediaParserReaderInterface | undefined;
50
+ logLevel?: "error" | "info" | "trace" | "verbose" | "warn" | undefined;
51
+ writer?: WriterInterface | undefined;
52
+ progressIntervalInMs?: number | undefined;
53
+ rotate?: number | undefined;
54
+ resize?: ResizeOperation | undefined;
55
+ fields?: F | undefined;
56
+ seekingHints?: import("@remotion/media-parser").SeekingHints | null | undefined;
57
+ } & Partial<import("@remotion/media-parser").ParseMediaCallbacksMandatory>) => Promise<ConvertMediaResult>;
@@ -1,9 +1,8 @@
1
- import type { ConvertMediaVideoCodec } from './get-available-video-codecs';
2
1
  export declare const needsToCorrectVideoFrame: ({ videoFrame, outputCodec, }: {
3
2
  videoFrame: VideoFrame;
4
- outputCodec: ConvertMediaVideoCodec;
3
+ outputCodec: "h264" | "h265" | "vp8" | "vp9";
5
4
  }) => boolean;
6
5
  export declare const convertToCorrectVideoFrame: ({ videoFrame, outputCodec, }: {
7
6
  videoFrame: VideoFrame;
8
- outputCodec: ConvertMediaVideoCodec;
7
+ outputCodec: "h264" | "h265" | "vp8" | "vp9";
9
8
  }) => VideoFrame;
@@ -1,11 +1,15 @@
1
- import type { MediaParserAudioTrack, MediaParserLogLevel, MediaParserOnAudioSample } from '@remotion/media-parser';
1
+ import type { MediaParserAudioTrack, MediaParserOnAudioSample } from '@remotion/media-parser';
2
2
  import type { MediaFn } from './create/media-fn';
3
- import type { ProgressTracker } from './create/progress-tracker';
4
3
  import type { ConvertMediaProgressFn } from './throttled-state-update';
5
4
  export declare const copyAudioTrack: ({ state, track, logLevel, onMediaStateUpdate, progressTracker, }: {
6
5
  state: MediaFn;
7
6
  track: MediaParserAudioTrack;
8
- logLevel: MediaParserLogLevel;
7
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
9
8
  onMediaStateUpdate: ConvertMediaProgressFn | null;
10
- progressTracker: ProgressTracker;
9
+ progressTracker: {
10
+ registerTrack: (trackNumber: number) => void;
11
+ getSmallestProgress: () => number;
12
+ updateTrackProgress: (trackNumber: number, progress: number) => void;
13
+ setPossibleLowestTimestamp: (timestamp: number) => void;
14
+ };
11
15
  }) => Promise<MediaParserOnAudioSample>;
@@ -1,11 +1,15 @@
1
- import type { MediaParserLogLevel, MediaParserOnVideoSample, MediaParserVideoTrack } from '@remotion/media-parser';
1
+ import type { MediaParserOnVideoSample, MediaParserVideoTrack } from '@remotion/media-parser';
2
2
  import type { MediaFn } from './create/media-fn';
3
- import type { ProgressTracker } from './create/progress-tracker';
4
3
  import type { ConvertMediaProgressFn } from './throttled-state-update';
5
4
  export declare const copyVideoTrack: ({ logLevel, state, track, onMediaStateUpdate, progressTracker, }: {
6
- logLevel: MediaParserLogLevel;
5
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
7
6
  state: MediaFn;
8
7
  track: MediaParserVideoTrack;
9
- onMediaStateUpdate: null | ConvertMediaProgressFn;
10
- progressTracker: ProgressTracker;
8
+ onMediaStateUpdate: ConvertMediaProgressFn | null;
9
+ progressTracker: {
10
+ registerTrack: (trackNumber: number) => void;
11
+ getSmallestProgress: () => number;
12
+ updateTrackProgress: (trackNumber: number, progress: number) => void;
13
+ setPossibleLowestTimestamp: (timestamp: number) => void;
14
+ };
11
15
  }) => Promise<MediaParserOnVideoSample>;
@@ -2,14 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IoEventEmitter = void 0;
4
4
  class IoEventEmitter {
5
- constructor() {
6
- this.listeners = {
7
- input: [],
8
- output: [],
9
- processed: [],
10
- progress: [],
11
- };
12
- }
5
+ listeners = {
6
+ input: [],
7
+ output: [],
8
+ processed: [],
9
+ progress: [],
10
+ };
13
11
  addEventListener(name, callback) {
14
12
  this.listeners[name].push(callback);
15
13
  }
@@ -1 +1 @@
1
- export declare const createIlst: (items: Uint8Array[]) => Uint8Array<ArrayBufferLike>;
1
+ export declare const createIlst: (items: Uint8Array<ArrayBufferLike>[]) => Uint8Array<ArrayBufferLike>;
@@ -1,5 +1,5 @@
1
1
  export declare const createMdia: ({ mdhd, hdlr, minf, }: {
2
- mdhd: Uint8Array;
3
- hdlr: Uint8Array;
4
- minf: Uint8Array;
2
+ mdhd: Uint8Array<ArrayBufferLike>;
3
+ hdlr: Uint8Array<ArrayBufferLike>;
4
+ minf: Uint8Array<ArrayBufferLike>;
5
5
  }) => Uint8Array<ArrayBufferLike>;
@@ -1,5 +1,5 @@
1
1
  export declare const createMoov: ({ mvhd, traks, udta, }: {
2
- mvhd: Uint8Array;
3
- traks: Uint8Array[];
4
- udta: Uint8Array;
2
+ mvhd: Uint8Array<ArrayBufferLike>;
3
+ traks: Uint8Array<ArrayBufferLike>[];
4
+ udta: Uint8Array<ArrayBufferLike>;
5
5
  }) => Uint8Array<ArrayBufferLike>;
@@ -1,4 +1,4 @@
1
1
  export declare const createTrak: ({ tkhd, mdia, }: {
2
- tkhd: Uint8Array;
3
- mdia: Uint8Array;
2
+ tkhd: Uint8Array<ArrayBufferLike>;
3
+ mdia: Uint8Array<ArrayBufferLike>;
4
4
  }) => Uint8Array<ArrayBufferLike>;
@@ -1 +1 @@
1
- export declare const createUdta: (children: Uint8Array) => Uint8Array<ArrayBufferLike>;
1
+ export declare const createUdta: (children: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike>;
@@ -1,3 +1,3 @@
1
- import type { MediaParserInternalTypes } from '@remotion/media-parser';
2
- export declare const exampleVideoSamplePositions: MediaParserInternalTypes['SamplePosition'][];
3
- export declare const exampleAudioSamplePositions: MediaParserInternalTypes['SamplePosition'][];
1
+ import type { SamplePosition } from '@remotion/media-parser';
2
+ export declare const exampleVideoSamplePositions: SamplePosition[];
3
+ export declare const exampleAudioSamplePositions: SamplePosition[];
@@ -1,10 +1,9 @@
1
- import type { MediaParserLogLevel } from '@remotion/media-parser';
2
1
  import type { IsoBaseMediaTrackData } from './serialize-track';
3
2
  export declare const createPaddedMoovAtom: ({ durationInUnits, trackInfo, timescale, expectedDurationInSeconds, logLevel, expectedFrameRate, }: {
4
3
  durationInUnits: number;
5
4
  trackInfo: IsoBaseMediaTrackData[];
6
5
  timescale: number;
7
6
  expectedDurationInSeconds: number | null;
8
- logLevel: MediaParserLogLevel;
7
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
9
8
  expectedFrameRate: number | null;
10
9
  }) => Uint8Array<ArrayBufferLike>;
@@ -5,13 +5,13 @@ export declare const numberTo32BitUIntOrIntLeading128: (num: number) => Uint8Arr
5
5
  export declare const numberTo16BitUIntOrInt: (num: number) => Uint8Array<ArrayBuffer>;
6
6
  export declare const setFixedPointSignedOrUnsigned1616Number: (num: number) => Uint8Array<ArrayBuffer>;
7
7
  export declare const setFixedPointSigned230Number: (num: number) => Uint8Array<ArrayBuffer>;
8
- export declare const addSize: (arr: Uint8Array) => Uint8Array<ArrayBufferLike>;
9
- export declare const addLeading128Size: (arr: Uint8Array) => Uint8Array<ArrayBufferLike>;
8
+ export declare const addSize: (arr: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike>;
9
+ export declare const addLeading128Size: (arr: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike>;
10
10
  export declare const floatTo16Point1632Bit: (number: number) => Uint8Array<ArrayBuffer>;
11
11
  export declare const floatTo16Point16_16Bit: (number: number) => Uint8Array<ArrayBuffer>;
12
12
  export declare const serializeMatrix: (matrix: number[]) => Uint8Array<ArrayBufferLike>;
13
13
  export declare const stringToPascalString: (str: string) => Uint8Array<ArrayBuffer>;
14
- export declare const padIsoBaseMediaBytes: (data: Uint8Array, totalLength: number) => Uint8Array<ArrayBufferLike>;
14
+ export declare const padIsoBaseMediaBytes: (data: Uint8Array<ArrayBufferLike>, totalLength: number) => Uint8Array<ArrayBufferLike>;
15
15
  type ThreeDMatrix = [
16
16
  number,
17
17
  number,
@@ -1,9 +1,9 @@
1
- import type { MediaParserInternalTypes } from '@remotion/media-parser';
1
+ import type { SamplePosition } from '@remotion/media-parser';
2
2
  import type { MakeTrackAudio, MakeTrackVideo } from '../make-track-info';
3
3
  export type IsoBaseMediaTrackData = {
4
4
  track: MakeTrackVideo | MakeTrackAudio;
5
5
  durationInUnits: number;
6
- samplePositions: MediaParserInternalTypes['SamplePosition'][];
6
+ samplePositions: SamplePosition[];
7
7
  timescale: number;
8
8
  };
9
9
  export declare const serializeTrack: ({ track, durationInUnits, samplePositions, timescale, }: IsoBaseMediaTrackData) => Uint8Array<ArrayBufferLike>;
@@ -1,4 +1,4 @@
1
1
  export declare const createMinf: ({ vmhdAtom, stblAtom, }: {
2
- vmhdAtom: Uint8Array;
3
- stblAtom: Uint8Array;
2
+ vmhdAtom: Uint8Array<ArrayBufferLike>;
3
+ stblAtom: Uint8Array<ArrayBufferLike>;
4
4
  }) => Uint8Array<ArrayBufferLike>;
@@ -1,6 +1,6 @@
1
- import type { MediaParserInternalTypes } from '@remotion/media-parser';
1
+ import type { SamplePosition } from '@remotion/media-parser';
2
2
  export declare const createStbl: ({ samplePositions, codecSpecificData, isVideo, }: {
3
- samplePositions: MediaParserInternalTypes["SamplePosition"][];
4
- codecSpecificData: Uint8Array;
3
+ samplePositions: SamplePosition[];
4
+ codecSpecificData: Uint8Array<ArrayBufferLike>;
5
5
  isVideo: boolean;
6
6
  }) => Uint8Array<ArrayBufferLike>;
@@ -1,2 +1,2 @@
1
- import type { MediaParserInternalTypes } from '@remotion/media-parser';
2
- export declare const createCttsBox: (samplePositions: MediaParserInternalTypes["SamplePosition"][]) => Uint8Array<ArrayBufferLike> | null;
1
+ import type { SamplePosition } from '@remotion/media-parser';
2
+ export declare const createCttsBox: (samplePositions: SamplePosition[]) => Uint8Array<ArrayBufferLike> | null;
@@ -1,2 +1,2 @@
1
- import type { MediaParserInternalTypes } from '@remotion/media-parser';
2
- export declare const createStcoAtom: (samplePositions: MediaParserInternalTypes["SamplePosition"][]) => Uint8Array<ArrayBufferLike>;
1
+ import type { SamplePosition } from '@remotion/media-parser';
2
+ export declare const createStcoAtom: (samplePositions: SamplePosition[]) => Uint8Array<ArrayBufferLike>;
@@ -1,2 +1,2 @@
1
- import type { MediaParserInternalTypes } from '@remotion/media-parser';
2
- export declare const createStsc: (samplePositions: MediaParserInternalTypes["SamplePosition"][]) => Uint8Array<ArrayBufferLike>;
1
+ import type { SamplePosition } from '@remotion/media-parser';
2
+ export declare const createStsc: (samplePositions: SamplePosition[]) => Uint8Array<ArrayBufferLike>;
@@ -1,2 +1,2 @@
1
- import type { MediaParserInternalTypes } from '@remotion/media-parser';
2
- export declare const createStss: (samplePositions: MediaParserInternalTypes["SamplePosition"][]) => Uint8Array<ArrayBufferLike>;
1
+ import type { SamplePosition } from '@remotion/media-parser';
2
+ export declare const createStss: (samplePositions: SamplePosition[]) => Uint8Array<ArrayBufferLike>;
@@ -1,2 +1,2 @@
1
- import type { MediaParserInternalTypes } from '@remotion/media-parser';
2
- export declare const createStsz: (samplePositions: MediaParserInternalTypes["SamplePosition"][]) => Uint8Array<ArrayBufferLike>;
1
+ import type { SamplePosition } from '@remotion/media-parser';
2
+ export declare const createStsz: (samplePositions: SamplePosition[]) => Uint8Array<ArrayBufferLike>;
@@ -1,2 +1,2 @@
1
- import type { MediaParserInternalTypes } from '@remotion/media-parser';
2
- export declare const createSttsAtom: (samplePositions: MediaParserInternalTypes["SamplePosition"][]) => Uint8Array<ArrayBufferLike>;
1
+ import type { SamplePosition } from '@remotion/media-parser';
2
+ export declare const createSttsAtom: (samplePositions: SamplePosition[]) => Uint8Array<ArrayBufferLike>;
@@ -1 +1 @@
1
- export declare const createStsdData: (codecSpecificData: Uint8Array) => Uint8Array<ArrayBufferLike>;
1
+ export declare const createStsdData: (codecSpecificData: Uint8Array<ArrayBufferLike>) => Uint8Array<ArrayBufferLike>;
@@ -1 +1 @@
1
- export declare const createAvccBox: (privateData: Uint8Array | null) => Uint8Array<ArrayBufferLike>;
1
+ export declare const createAvccBox: (privateData: Uint8Array<ArrayBufferLike> | null) => Uint8Array<ArrayBufferLike>;
@@ -1 +1 @@
1
- export declare const createHvccBox: (privateData: Uint8Array | null) => Uint8Array<ArrayBufferLike>;
1
+ export declare const createHvccBox: (privateData: Uint8Array<ArrayBufferLike> | null) => Uint8Array<ArrayBufferLike>;
@@ -1,4 +1,4 @@
1
1
  export declare const createMeta: ({ hdlr, ilst, }: {
2
- hdlr: Uint8Array;
3
- ilst: Uint8Array;
2
+ hdlr: Uint8Array<ArrayBufferLike>;
3
+ ilst: Uint8Array<ArrayBufferLike>;
4
4
  }) => Uint8Array<ArrayBufferLike>;
@@ -1 +1 @@
1
- export declare const createHdlr: (type: "video" | "audio" | "mdir") => Uint8Array<ArrayBufferLike>;
1
+ export declare const createHdlr: (type: "audio" | "mdir" | "video") => Uint8Array<ArrayBufferLike>;
@@ -1,7 +1,7 @@
1
1
  export declare const CLUSTER_MIN_VINT_WIDTH = 8;
2
2
  export declare const createClusterSegment: (timestamp: number) => import("./matroska-utils").BytesAndOffset;
3
3
  export declare const makeSimpleBlock: ({ bytes, trackNumber, timecodeRelativeToCluster, keyframe, invisible, lacing, }: {
4
- bytes: Uint8Array;
4
+ bytes: Uint8Array<ArrayBufferLike>;
5
5
  trackNumber: number;
6
6
  timecodeRelativeToCluster: number;
7
7
  keyframe: boolean;
@@ -1,4 +1,4 @@
1
- import type { MediaParserInternalTypes, MediaParserLogLevel } from '@remotion/media-parser';
1
+ import type { Writer } from '@remotion/media-parser';
2
2
  import { type MediaParserAudioSample, type MediaParserVideoSample } from '@remotion/media-parser';
3
3
  export declare const timestampToClusterTimestamp: (timestamp: number, timescale: number) => number;
4
4
  export declare const canFitInCluster: ({ clusterStartTimestamp, chunk, timescale, }: {
@@ -7,10 +7,10 @@ export declare const canFitInCluster: ({ clusterStartTimestamp, chunk, timescale
7
7
  timescale: number;
8
8
  }) => boolean;
9
9
  export declare const makeCluster: ({ writer, clusterStartTimestamp, timescale, logLevel, }: {
10
- writer: MediaParserInternalTypes["Writer"];
10
+ writer: Writer;
11
11
  clusterStartTimestamp: number;
12
12
  timescale: number;
13
- logLevel: MediaParserLogLevel;
13
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
14
14
  }) => Promise<{
15
15
  addSample: (chunk: MediaParserAudioSample | MediaParserVideoSample, trackNumber: number) => Promise<{
16
16
  timecodeRelativeToCluster: number;
@@ -1,6 +1,6 @@
1
- import type { MediaParserInternalTypes } from '@remotion/media-parser';
1
+ import type { MatroskaElement } from '@remotion/media-parser';
2
2
  export type Seek = {
3
- hexString: MediaParserInternalTypes['MatroskaElement'];
3
+ hexString: MatroskaElement;
4
4
  byte: number;
5
5
  };
6
6
  export declare const createMatroskaSeekHead: (seeks: Seek[]) => import("./matroska-utils").BytesAndOffset[];
@@ -1,28 +1,28 @@
1
- import type { _InternalEbmlValue, MediaParserInternalTypes } from '@remotion/media-parser';
1
+ import type { _InternalEbmlValue, Ebml } from '@remotion/media-parser';
2
2
  import { MediaParserInternals } from '@remotion/media-parser';
3
3
  type Prettify<T> = {
4
4
  [K in keyof T]: T[K];
5
5
  } & {};
6
- export declare const getIdForName: (name: string) => EbmlMapKey;
7
- export declare const combineUint8Arrays: (arrays: Uint8Array[]) => Uint8Array<ArrayBufferLike>;
6
+ export declare const getIdForName: (name: string) => "0x114d9b74" | "0x1254c367" | "0x1549a966" | "0x1654ae6b" | "0x18538067" | "0x1a45dfa3" | "0x1c53bb6b" | "0x1f43b675" | "0x22b59c" | "0x23314f" | "0x23e383" | "0x258688" | "0x2ad7b1" | "0x4282" | "0x4285" | "0x4286" | "0x4287" | "0x42f2" | "0x42f3" | "0x42f7" | "0x4461" | "0x4487" | "0x4489" | "0x45a3" | "0x4d80" | "0x4dbb" | "0x536e" | "0x5378" | "0x53ab" | "0x53ac" | "0x53c0" | "0x54b0" | "0x54b2" | "0x54ba" | "0x55b0" | "0x55b1" | "0x55b7" | "0x55b8" | "0x55b9" | "0x55ba" | "0x55bb" | "0x55ee" | "0x56aa" | "0x56bb" | "0x5741" | "0x6264" | "0x63a2" | "0x63c0" | "0x63c5" | "0x67c8" | "0x6de7" | "0x6df8" | "0x7373" | "0x73a4" | "0x73c5" | "0x75a1" | "0x75a2" | "0x78b5" | "0x7ba9" | "0x83" | "0x86" | "0x88" | "0x9a" | "0x9b" | "0x9c" | "0x9f" | "0xa0" | "0xa1" | "0xa3" | "0xa7" | "0xae" | "0xb0" | "0xb3" | "0xb5" | "0xb7" | "0xba" | "0xbb" | "0xbf" | "0xcf" | "0xd7" | "0xe0" | "0xe1" | "0xe7" | "0xec" | "0xf0" | "0xf1" | "0xf7" | "0xfb";
7
+ export declare const combineUint8Arrays: (arrays: Uint8Array<ArrayBufferLike>[]) => Uint8Array<ArrayBufferLike>;
8
8
  export type OffsetAndChildren = {
9
9
  offset: number;
10
10
  children: OffsetAndChildren[];
11
11
  field: keyof typeof MediaParserInternals.matroskaElements;
12
12
  };
13
13
  export declare const incrementOffsetAndChildren: (offset: OffsetAndChildren, increment: number) => OffsetAndChildren;
14
- export declare const matroskaToHex: (matrId: (typeof MediaParserInternals.matroskaElements)[keyof typeof MediaParserInternals.matroskaElements]) => Uint8Array<ArrayBufferLike>;
14
+ export declare const matroskaToHex: (matrId: "0x1043a770" | "0x114d9b74" | "0x1254c367" | "0x1549a966" | "0x1654ae6b" | "0x18538067" | "0x1941a469" | "0x1a45dfa3" | "0x1c53bb6b" | "0x1f43b675" | "0x22b59c" | "0x22b59d" | "0x23314f" | "0x234e7a" | "0x2383e3" | "0x23e383" | "0x258688" | "0x26b240" | "0x2ad7b1" | "0x2eb524" | "0x2fb523" | "0x3a9697" | "0x3b4040" | "0x3c83ab" | "0x3cb923" | "0x3e83bb" | "0x3eb923" | "0x41a4" | "0x41e4" | "0x41e7" | "0x41ed" | "0x41f0" | "0x4254" | "0x4255" | "0x4282" | "0x4285" | "0x4286" | "0x4287" | "0x42f2" | "0x42f3" | "0x42f7" | "0x437c" | "0x437d" | "0x437e" | "0x4444" | "0x4461" | "0x447a" | "0x447b" | "0x4484" | "0x4485" | "0x4487" | "0x4489" | "0x44b4" | "0x450d" | "0x4520" | "0x4521" | "0x4588" | "0x4598" | "0x45a3" | "0x45b9" | "0x45bc" | "0x45bd" | "0x45db" | "0x45dd" | "0x45e4" | "0x465c" | "0x4660" | "0x4661" | "0x4662" | "0x466e" | "0x4675" | "0x467e" | "0x46ae" | "0x47e1" | "0x47e2" | "0x47e3" | "0x47e4" | "0x47e5" | "0x47e6" | "0x47e7" | "0x47e8" | "0x4d80" | "0x4dbb" | "0x5031" | "0x5032" | "0x5033" | "0x5034" | "0x5035" | "0x52f1" | "0x535f" | "0x536e" | "0x5378" | "0x537f" | "0x53ab" | "0x53ac" | "0x53b8" | "0x53b9" | "0x53c0" | "0x54aa" | "0x54b0" | "0x54b2" | "0x54b3" | "0x54ba" | "0x54bb" | "0x54cc" | "0x54dd" | "0x55aa" | "0x55ab" | "0x55ac" | "0x55ad" | "0x55ae" | "0x55af" | "0x55b0" | "0x55b1" | "0x55b2" | "0x55b3" | "0x55b4" | "0x55b5" | "0x55b6" | "0x55b7" | "0x55b8" | "0x55b9" | "0x55ba" | "0x55bb" | "0x55bc" | "0x55bd" | "0x55d0" | "0x55d1" | "0x55d2" | "0x55d3" | "0x55d4" | "0x55d5" | "0x55d6" | "0x55d7" | "0x55d8" | "0x55d9" | "0x55da" | "0x55ee" | "0x5654" | "0x56aa" | "0x56bb" | "0x5741" | "0x5854" | "0x58d7" | "0x61a7" | "0x6240" | "0x6264" | "0x63a2" | "0x63c0" | "0x63c3" | "0x63c4" | "0x63c5" | "0x63c6" | "0x63c9" | "0x63ca" | "0x6624" | "0x66a5" | "0x66bf" | "0x66fc" | "0x67c8" | "0x68ca" | "0x6911" | "0x6922" | "0x6924" | "0x6933" | "0x6944" | "0x6955" | "0x69a5" | "0x69bf" | "0x69fc" | "0x6d80" | "0x6de7" | "0x6df8" | "0x6e67" | "0x6ebc" | "0x6fab" | "0x7373" | "0x7384" | "0x73a4" | "0x73c4" | "0x73c5" | "0x7446" | "0x75a1" | "0x75a2" | "0x7670" | "0x7671" | "0x7672" | "0x7673" | "0x7674" | "0x7675" | "0x78b5" | "0x7ba9" | "0x7d7b" | "0x80" | "0x83" | "0x85" | "0x86" | "0x88" | "0x89" | "0x8e" | "0x8f" | "0x91" | "0x92" | "0x96" | "0x97" | "0x98" | "0x9a" | "0x9b" | "0x9c" | "0x9d" | "0x9f" | "0xa0" | "0xa1" | "0xa2" | "0xa3" | "0xa4" | "0xa5" | "0xa6" | "0xa7" | "0xaa" | "0xab" | "0xae" | "0xaf" | "0xb0" | "0xb2" | "0xb3" | "0xb5" | "0xb6" | "0xb7" | "0xb9" | "0xba" | "0xbb" | "0xbf" | "0xc0" | "0xc1" | "0xc4" | "0xc6" | "0xc7" | "0xc8" | "0xc9" | "0xca" | "0xcb" | "0xcc" | "0xcd" | "0xce" | "0xcf" | "0xd7" | "0xdb" | "0xe0" | "0xe1" | "0xe2" | "0xe3" | "0xe4" | "0xe5" | "0xe6" | "0xe7" | "0xe8" | "0xe9" | "0xea" | "0xeb" | "0xec" | "0xed" | "0xee" | "0xf0" | "0xf1" | "0xf7" | "0xfa" | "0xfb" | "0xfd") => Uint8Array<ArrayBufferLike>;
15
15
  export type BytesAndOffset = {
16
16
  bytes: Uint8Array;
17
17
  offsets: OffsetAndChildren;
18
18
  };
19
- export type EbmlValueOrUint8Array<T extends MediaParserInternalTypes['Ebml']> = Uint8Array | _InternalEbmlValue<T, PossibleEbmlOrUint8Array>;
20
- export type EbmlParsedOrUint8Array<T extends MediaParserInternalTypes['Ebml']> = {
19
+ export type EbmlValueOrUint8Array<T extends Ebml> = Uint8Array | _InternalEbmlValue<T, PossibleEbmlOrUint8Array>;
20
+ export type EbmlParsedOrUint8Array<T extends Ebml> = {
21
21
  type: T['name'];
22
22
  value: EbmlValueOrUint8Array<T>;
23
23
  minVintWidth: number | null;
24
24
  };
25
- export declare const measureEBMLVarInt: (value: number) => 1 | 2 | 4 | 3 | 5 | 6;
25
+ export declare const measureEBMLVarInt: (value: number) => 1 | 2 | 3 | 4 | 5 | 6;
26
26
  export declare const getVariableInt: (value: number, minWidth: number | null) => Uint8Array<ArrayBuffer>;
27
27
  export declare const makeMatroskaBytes: (fields: PossibleEbmlOrUint8Array) => BytesAndOffset;
28
28
  export type PossibleEbmlOrUint8Array = Prettify<{
@@ -1,4 +1,4 @@
1
- import type { MediaParserAudioSample, MediaParserInternalTypes, MediaParserLogLevel, MediaParserVideoSample } from '@remotion/media-parser';
1
+ import type { MediaParserAudioSample, MediaParserLogLevel, MediaParserVideoSample, WriterInterface } from '@remotion/media-parser';
2
2
  import type { ConvertMediaContainer } from '../get-available-containers';
3
3
  import type { MakeTrackAudio, MakeTrackVideo } from './make-track-info';
4
4
  import type { ProgressTracker } from './progress-tracker';
@@ -22,7 +22,7 @@ export type MediaFn = {
22
22
  }) => void;
23
23
  };
24
24
  export type MediaFnGeneratorInput = {
25
- writer: MediaParserInternalTypes['WriterInterface'];
25
+ writer: WriterInterface;
26
26
  onBytesProgress: (totalBytes: number) => void;
27
27
  onMillisecondsProgress: (totalMilliseconds: number) => void;
28
28
  logLevel: MediaParserLogLevel;
@@ -21,8 +21,8 @@ export type CreateAudioDecoderInit = {
21
21
  export declare const internalCreateAudioDecoder: ({ onFrame, onError, controller, config, logLevel, }: CreateAudioDecoderInit) => Promise<WebCodecsAudioDecoder>;
22
22
  export declare const createAudioDecoder: ({ track, onFrame, onError, controller, logLevel, }: {
23
23
  track: AudioDecoderConfig;
24
- onFrame: (frame: AudioData) => Promise<void> | void;
24
+ onFrame: (frame: AudioData) => void | Promise<void>;
25
25
  onError: (error: Error) => void;
26
- controller?: WebCodecsController | null;
27
- logLevel?: MediaParserLogLevel;
26
+ controller?: WebCodecsController | null | undefined;
27
+ logLevel?: "error" | "info" | "trace" | "verbose" | "warn" | undefined;
28
28
  }) => Promise<WebCodecsAudioDecoder>;
@@ -1,4 +1,3 @@
1
- import type { MediaParserLogLevel } from '@remotion/media-parser';
2
1
  import type { WebCodecsController } from './webcodecs-controller';
3
2
  export type WebCodecsVideoDecoder = {
4
3
  decode: (videoSample: EncodedVideoChunkInit | EncodedVideoChunk) => Promise<void>;
@@ -12,16 +11,16 @@ export type WebCodecsVideoDecoder = {
12
11
  getMostRecentSampleInput: () => number | null;
13
12
  };
14
13
  export declare const internalCreateVideoDecoder: ({ onFrame, onError, controller, config, logLevel, }: {
15
- onFrame: (frame: VideoFrame) => Promise<void> | void;
14
+ onFrame: (frame: VideoFrame) => void | Promise<void>;
16
15
  onError: (error: Error) => void;
17
16
  controller: WebCodecsController | null;
18
17
  config: VideoDecoderConfig;
19
- logLevel: MediaParserLogLevel;
18
+ logLevel: "error" | "info" | "trace" | "verbose" | "warn";
20
19
  }) => Promise<WebCodecsVideoDecoder>;
21
20
  export declare const createVideoDecoder: ({ onFrame, onError, controller, track, logLevel, }: {
22
21
  track: VideoDecoderConfig;
23
- onFrame: (frame: VideoFrame) => Promise<void> | void;
22
+ onFrame: (frame: VideoFrame) => void | Promise<void>;
24
23
  onError: (error: Error) => void;
25
- controller?: WebCodecsController;
26
- logLevel?: MediaParserLogLevel;
24
+ controller?: WebCodecsController | undefined;
25
+ logLevel?: "error" | "info" | "trace" | "verbose" | "warn" | undefined;
27
26
  }) => Promise<WebCodecsVideoDecoder>;
@@ -1,8 +1,5 @@
1
1
  // src/writers/buffer-implementation/writer.ts
2
- var createContent = ({
3
- filename,
4
- mimeType
5
- }) => {
2
+ var createContent = ({ filename, mimeType }) => {
6
3
  const buf = new ArrayBuffer(0, {
7
4
  maxByteLength: 2000000000
8
5
  });
@@ -1,7 +1,5 @@
1
1
  // src/writers/web-fs.ts
2
- var createContent = async ({
3
- filename
4
- }) => {
2
+ var createContent = async ({ filename }) => {
5
3
  const directoryHandle = await navigator.storage.getDirectory();
6
4
  const actualFilename = `__remotion_mediaparser:${filename}`;
7
5
  const remove = async () => {
@@ -77,10 +75,7 @@ var canUseWebFsWriter = async () => {
77
75
  };
78
76
 
79
77
  // src/writers/buffer-implementation/writer.ts
80
- var createContent2 = ({
81
- filename,
82
- mimeType
83
- }) => {
78
+ var createContent2 = ({ filename, mimeType }) => {
84
79
  const buf = new ArrayBuffer(0, {
85
80
  maxByteLength: 2000000000
86
81
  });
@@ -1398,9 +1393,7 @@ var calculateProgress = ({
1398
1393
  };
1399
1394
 
1400
1395
  // src/create/iso-base-media/create-iso-base-media.ts
1401
- import {
1402
- MediaParserInternals as MediaParserInternals3
1403
- } from "@remotion/media-parser";
1396
+ import { MediaParserInternals as MediaParserInternals3 } from "@remotion/media-parser";
1404
1397
 
1405
1398
  // src/create/matroska/matroska-utils.ts
1406
1399
  import { MediaParserInternals as MediaParserInternals2 } from "@remotion/media-parser";
@@ -1,7 +1,5 @@
1
1
  // src/writers/web-fs.ts
2
- var createContent = async ({
3
- filename
4
- }) => {
2
+ var createContent = async ({ filename }) => {
5
3
  const directoryHandle = await navigator.storage.getDirectory();
6
4
  const actualFilename = `__remotion_mediaparser:${filename}`;
7
5
  const remove = async () => {
@@ -1,3 +1,2 @@
1
1
  import type { ParseMediaSrc } from '@remotion/media-parser';
2
- import type { ConvertMediaContainer } from './get-available-containers';
3
- export declare const generateOutputFilename: (source: ParseMediaSrc, container: ConvertMediaContainer) => string;
2
+ export declare const generateOutputFilename: (source: ParseMediaSrc, container: "mp4" | "wav" | "webm") => string;