Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Vanilagy/mediabunny/llms.txt
Use this file to discover all available pages before exploring further.
OutputFormat
Base class representing an output media file format.Properties
The file extension used by this output format, beginning with a dot.
The base MIME type of the output format.
Whether this output format supports video rotation metadata.
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.Methods
Returns a list of media codecs that this output format can contain.
Returns the number of tracks that this output format supports.
Returns a list of video codecs that this output format can contain.
Returns a list of audio codecs that this output format can contain.
Returns a list of subtitle codecs that this output format can contain.
Types
InclusiveIntegerRange
Specifies an inclusive range of integers.TrackCountLimits
Specifies the number of tracks (for each track type and in total) that an output format supports.MP4 and MOV formats
Mp4OutputFormat
MPEG-4 Part 14 (MP4) file format. Supports most codecs.Constructor
Properties
Returns
'.mp4'Returns
'video/mp4'Returns
trueReturns
trueMovOutputFormat
QuickTime File Format (QTFF), often called MOV. Supports all video and audio codecs, but not subtitle codecs.Constructor
Properties
Returns
'.mov'Returns
'video/quicktime'Returns
trueReturns
trueIsobmffOutputFormatOptions
ISOBMFF-specific output options.Matroska and WebM formats
MkvOutputFormat
Matroska file format. Supports writing transparent video. For a video track to be marked as transparent, the first packet added must contain alpha side data.Constructor
Properties
Returns
'.mkv'Returns
'video/x-matroska'Returns
false (while it technically supports it with ProjectionPoseRoll, many players appear to ignore this value)Returns
trueWebMOutputFormat
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.Constructor
Properties
Returns
'.webm'Returns
'video/webm'Returns
falseReturns
trueMkvOutputFormatOptions
Matroska-specific output options.WebMOutputFormatOptions
WebM-specific output options.Audio formats
Mp3OutputFormat
MP3 file format.Constructor
Properties
Returns
'.mp3'Returns
'audio/mpeg'Returns
falseReturns
falseMp3OutputFormatOptions
MP3-specific output options.WavOutputFormat
WAVE file format, based on RIFF.Constructor
Properties
Returns
'.wav'Returns
'audio/wav'Returns
falseReturns
falseWavOutputFormatOptions
WAVE-specific output options.OggOutputFormat
Ogg file format.Constructor
Properties
Returns
'.ogg'Returns
'application/ogg'Returns
falseReturns
falseOggOutputFormatOptions
Ogg-specific output options.AdtsOutputFormat
ADTS file format.Constructor
Properties
Returns
'.aac'Returns
'audio/aac'Returns
falseReturns
falseAdtsOutputFormatOptions
ADTS-specific output options.FlacOutputFormat
FLAC file format.Constructor
Properties
Returns
'.flac'Returns
'audio/flac'Returns
falseReturns
falseFlacOutputFormatOptions
FLAC-specific output options.Transport Stream formats
MpegTsOutputFormat
MPEG Transport Stream file format.Constructor
Properties
Returns
'.ts'Returns
'video/MP2T'Returns
falseReturns
true