Skip to main content

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.

InputFormat

Base class representing an input media file format.
abstract class InputFormat

Properties

name
string
Returns the name of the input format.
mimeType
string
Returns the typical base MIME type of the input format.

Format classes

Mp4InputFormat

MPEG-4 Part 14 (MP4) file format.
Do not instantiate this class directly. Use the MP4 singleton instead.
class Mp4InputFormat extends IsobmffInputFormat

Properties

name
string
Returns 'MP4'
mimeType
string
Returns 'video/mp4'

QuickTimeInputFormat

QuickTime File Format (QTFF), often called MOV.
Do not instantiate this class directly. Use the QTFF singleton instead.
class QuickTimeInputFormat extends IsobmffInputFormat

Properties

name
string
Returns 'QuickTime File Format'
mimeType
string
Returns 'video/quicktime'

MatroskaInputFormat

Matroska file format.
Do not instantiate this class directly. Use the MATROSKA singleton instead.
class MatroskaInputFormat extends InputFormat

Properties

name
string
Returns 'Matroska'
mimeType
string
Returns 'video/x-matroska'

WebMInputFormat

WebM file format, based on Matroska.
Do not instantiate this class directly. Use the WEBM singleton instead.
class WebMInputFormat extends MatroskaInputFormat

Properties

name
string
Returns 'WebM'
mimeType
string
Returns 'video/webm'

Mp3InputFormat

MP3 file format.
Do not instantiate this class directly. Use the MP3 singleton instead.
class Mp3InputFormat extends InputFormat

Properties

name
string
Returns 'MP3'
mimeType
string
Returns 'audio/mpeg'

WaveInputFormat

WAVE file format, based on RIFF.
Do not instantiate this class directly. Use the WAVE singleton instead.
class WaveInputFormat extends InputFormat

Properties

name
string
Returns 'WAVE'
mimeType
string
Returns 'audio/wav'

OggInputFormat

Ogg file format.
Do not instantiate this class directly. Use the OGG singleton instead.
class OggInputFormat extends InputFormat

Properties

name
string
Returns 'Ogg'
mimeType
string
Returns 'application/ogg'

FlacInputFormat

FLAC file format.
Do not instantiate this class directly. Use the FLAC singleton instead.
class FlacInputFormat extends InputFormat

Properties

name
string
Returns 'FLAC'
mimeType
string
Returns 'audio/flac'

AdtsInputFormat

ADTS file format.
Do not instantiate this class directly. Use the ADTS singleton instead.
class AdtsInputFormat extends InputFormat

Properties

name
string
Returns 'ADTS'
mimeType
string
Returns 'audio/aac'

MpegTsInputFormat

MPEG Transport Stream (MPEG-TS) file format.
Do not instantiate this class directly. Use the MPEG_TS singleton instead.
class MpegTsInputFormat extends InputFormat

Properties

name
string
Returns 'MPEG Transport Stream'
mimeType
string
Returns 'video/MP2T'

Format singletons

MP4

MP4 input format singleton.
const MP4: Mp4InputFormat

QTFF

QuickTime File Format input format singleton.
const QTFF: QuickTimeInputFormat

MATROSKA

Matroska input format singleton.
const MATROSKA: MatroskaInputFormat

WEBM

WebM input format singleton.
const WEBM: WebMInputFormat

MP3

MP3 input format singleton.
const MP3: Mp3InputFormat

WAVE

WAVE input format singleton.
const WAVE: WaveInputFormat

OGG

Ogg input format singleton.
const OGG: OggInputFormat

ADTS

ADTS input format singleton.
const ADTS: AdtsInputFormat

FLAC

FLAC input format singleton.
const FLAC: FlacInputFormat

MPEG_TS

MPEG-TS input format singleton.
const MPEG_TS: MpegTsInputFormat

ALL_FORMATS

List of all input format singletons. If you don’t need to support all input formats, you should specify the formats individually for better tree shaking.
const ALL_FORMATS: InputFormat[]

Value

[MP4, QTFF, MATROSKA, WEBM, WAVE, OGG, FLAC, MP3, ADTS, MPEG_TS]

Example

import { Input, ALL_FORMATS } from 'mediabunny';

const input = new Input(file, { formats: ALL_FORMATS });

Build docs developers (and LLMs) love