ContainerFormatEntry
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / media/src / ContainerFormatEntry
Interface: ContainerFormatEntry
Defined in: packages/media/src/container-formats.ts:17
The container-format registry — export's counterpart to the timeline's element-type registry. A container format is an output vocabulary entry: its id (also the default file extension), a UI label, and a factory for the Mediabunny OutputFormat that muxes it.
The built-in formats (mp4, webm, mkv) register through this exact API, so
community formats are first-class: they show up in listContainerFormats
(which the export dialog renders), pass WebCodecs support probing via
getExportSupport, and export via exportProject({ format: id }).
Register custom formats at module load, before the export UI mounts.
Properties
createOutputFormat
createOutputFormat: () => OutputFormat;Defined in: packages/media/src/container-formats.ts:27
Build a fresh Mediabunny output format for one export.
Returns
extension
extension: string;Defined in: packages/media/src/container-formats.ts:23
Suggested file extension, without the dot.
id
id: string;Defined in: packages/media/src/container-formats.ts:19
Registry key, accepted as ExportProjectOptions.format.
label
label: string;Defined in: packages/media/src/container-formats.ts:21
UI label (e.g. 'MP4').
mimeType
mimeType: string;Defined in: packages/media/src/container-formats.ts:25
Output MIME type (e.g. 'video/mp4').