Skip to content
Class

WavOutputFormat ​

WAVE file format, based on RIFF.

Extends: OutputFormat

Constructor ​

ts
constructor(
	options: WavOutputFormatOptions = {},
): WavOutputFormat;

Creates a new WavOutputFormat configured with the specified options.

See WavOutputFormatOptions.

Properties ​

fileExtension ​

ts
get fileExtension(): string;

The file extension used by this output format, beginning with a dot.

mimeType ​

ts
get mimeType(): string;

The base MIME type of the output format.

negativeTimestampSupport ​

ts
get negativeTimestampSupport(): null;

The degree to which this output format supports writing media data with negative timestamps.

  • 'full' - Negative timestamps are fully supported.
  • 'prefer-non-negative' - Negative timestamps are technically supported, but their use is discouraged.
  • 'none' - Negative timestamps are not supported.
  • null - Not applicable since the container doesn't support timestamped media at all.

supportsTimestampedMediaData ​

ts
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.

supportsVideoTransformationMetadata ​

ts
get supportsVideoTransformationMetadata(): boolean;

Whether this output format supports video rotation and flip metadata.

Methods ​

getSupportedAudioCodecs() ​

ts
getSupportedAudioCodecs(): AudioCodec[];

Returns a list of audio codecs that this output format can contain.

See AudioCodec.

getSupportedCodecs() ​

ts
getSupportedCodecs(): MediaCodec[];

Returns a list of media codecs that this output format can contain.

See MediaCodec.

getSupportedSubtitleCodecs() ​

ts
getSupportedSubtitleCodecs(): SubtitleCodec[];

Returns a list of subtitle codecs that this output format can contain.

See SubtitleCodec.

getSupportedTrackCounts() ​

ts
getSupportedTrackCounts(): TrackCountLimits;

Returns the number of tracks that this output format supports.

See TrackCountLimits.

getSupportedVideoCodecs() ​

ts
getSupportedVideoCodecs(): VideoCodec[];

Returns a list of video codecs that this output format can contain.

See VideoCodec.

Deprecated ​

supportsVideoRotationMetadata ​

Deprecated. Use OutputFormat.supportsVideoTransformationMetadata instead.

ts
get supportsVideoRotationMetadata(): boolean;

Whether this output format supports video rotation metadata.

Released under the Mozilla Public License 2.0.