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.
MetadataTags
Represents descriptive (non-technical) metadata about a media file, such as title, author, date, cover art, or other attached files. Common tags are normalized by Mediabunny into a uniform format, while theraw field can be used to directly read or write the underlying metadata tags (which differ by format).
Common Fields
Title of the media (e.g., “Gangnam Style”, “Titanic”).
Short description or subtitle of the media.
Primary artist(s) or creator(s) of the work.
Album, collection, or compilation the media belongs to.
Main credited artist for the album/collection as a whole.
Position of this track within its album or collection (1-based).
Total number of tracks in the album or collection.
Disc index if the release spans multiple discs (1-based).
Total number of discs in the release.
Genre or category describing the media’s style or content (e.g., “Metal”, “Horror”).
Release, recording or creation date of the media.
Full text lyrics or transcript associated with the media.
Freeform notes, remarks or commentary about the media.
Embedded images such as cover art, booklet scans, artwork or preview frames.
Raw Format-Specific Metadata
The raw, underlying metadata tags. This field can be used for both reading and writing.The format of these tags differs per format:
- MP4/QuickTime: Keys refer to atom names in the
'ilst'atom, or keys from the'keys'atom - WebM/Matroska:
SimpleTagelements with target 50 (MOVIE) - MP3/ADTS: ID3v2 tags
- Ogg: Vorbis-style comment header key-value pairs
- WAVE: Individual chunks within the RIFF INFO chunk
- FLAC: Vorbis-style comment block key-value pairs
- MPEG-TS: Not supported
AttachedImage
An embedded image such as cover art, booklet scan, artwork or preview frame.The raw image data.
An RFC 6838 MIME type (e.g.,
'image/jpeg', 'image/png').The kind or purpose of the image.
The name of the image file.
A description of the image.
RichImageData
Image data with additional metadata. Used in raw metadata fields.The raw image data.
An RFC 6838 MIME type (e.g.,
'image/jpeg', 'image/png').AttachedFile
A file attached to a media file (e.g., fonts, subtitle files).The raw file data.
An RFC 6838 MIME type (e.g.,
'font/ttf', 'application/x-subrip').The name of the file.
A description of the file.
TrackDisposition
Specifies a track’s disposition, i.e. information about its intended usage.Indicates that this track is eligible for automatic selection by a player; that it is the main track among other, non-default tracks of the same type.
Indicates that players should always display this track by default, even if it goes against the user’s default preferences. For example, a subtitle track only containing translations of foreign-language audio.
Indicates that this track is in the content’s original language.
Indicates that this track contains commentary.
Indicates that this track is intended for hearing-impaired users.
Indicates that this track is intended for visually-impaired users.
Examples
Reading metadata
Writing metadata
Format-specific raw metadata
See also
- Reading metadata guide - Complete guide to working with metadata
- Input.getMetadataTags() - Read metadata from files
- Output.setMetadataTags() - Write metadata to files