Audio/video metadata
ai_media_infoRead audio and video file metadata offline to inspect container, codec, duration, bitrate, tags, cover art, and track details from local paths or base64 input.
Instructions
Read audio and video file metadata offline (music-metadata): container, codec, duration, bitrate, sample rate, bit depth, channels, lossless or not, tags (title, artist, album, year, genre, track…), embedded cover art, and per-track info (including video width/height for MP4/MKV/WebM). Formats: MP3, AAC/M4A/MP4/MOV, FLAC, WAV, AIFF, OGG/Opus/Vorbis, WebM/Matroska, WMA/ASF, APE, WavPack, DSD and more. File path (streamed, any size) or base64. Duration of VBR MP3s without a header is computed by scanning the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The audio or video file: a local file path (absolute, or relative to the server's --root) or base64 data (raw or a data: URI). |