WebMOutputFormat
WebM file format, based on Matroska.
Supports writing transparent video. For a video track to be marked as transparent, the first packet added must contain alpha side data.
Extends: MkvOutputFormat
Constructor
constructor(
options?: MkvOutputFormatOptions,
): WebMOutputFormat;Creates a new WebMOutputFormat configured with the specified options.
Properties
fileExtension
get fileExtension(): string;The file extension used by this output format, beginning with a dot.
mimeType
get mimeType(): string;The base MIME type of the output format.
supportsTimestampedMediaData
get supportsTimestampedMediaData(): boolean;Whether this output format's tracks store timestamped media data. When true, the timestamps of added packets will be respected, allowing things like gaps in media data or non-zero start times. When false, the format's media data implicitly starts at zero and follows an implicit sequential timing from there, using the intrinsic durations of the media data.
supportsVideoRotationMetadata
get supportsVideoRotationMetadata(): boolean;Whether this output format supports video rotation metadata.
Methods
getSupportedCodecs()
getSupportedCodecs(): MediaCodec[];Returns a list of media codecs that this output format can contain.
See MediaCodec.
getSupportedTrackCounts()
getSupportedTrackCounts(): TrackCountLimits;Returns the number of tracks that this output format supports.
See TrackCountLimits.