1.  [](/)
2.  [Converters](/converters)
3.  Video to Metadata

media

# How do I extract the metadata from a video file?

Read a video file's technical metadata on this page: duration, frame size, frame rate, codecs, bitrate, and the audio track's sample rate and channels. The file is read in your browser and never uploaded. The page also covers what no header holds, such as the objects and speech in the video, and how to extract both across a library through an API.

## The short answer

A video file carries two kinds of metadata. The first is technical, read straight from the container and codec headers: resolution, frame rate, bitrate, duration, codec, and the audio track's sample rate and channel count. The reader on this page shows those for an MP4, MOV or M4V without uploading the file and gives duration and frame size for WebM and MKV, and ffprobe reads the same headers on the command line. The second kind describes what is happening in the video, such as the objects and people on screen, the scene type, the spoken language, and whether music or text overlays are present. No header contains it; a vision model has to sample frames and an audio model has to listen. This page covers both, for one file or a library at scale through an API.

Max file size: No set limit; only the headers are read

Estimated: About a second, in your browser

5 input formats

## Read a video's metadata here

Runs in your browser. The file stays on your device and nothing is uploaded.

Drop an MP4, MOV, M4V, WebM or MKV file here, or choose one from your device.

Choose a file

Loading the reader.

## How It Works

1

Drop an MP4, MOV, M4V, WebM or MKV file onto the reader at the top of this page, or choose one. The file stays on your device.

2

For MP4, MOV and M4V, the open-source mp4box.js library reads the movie header and each track header from the file and jumps over the video data itself.

3

For WebM and MKV, the reader asks your browser's own decoder for the duration and frame size.

4

Duration, frame size, frame rate, codecs, bitrate and audio details show first, with every track listed below them. Download it all as JSON.

5

For a whole library, the API code below runs an extractor over every video in a bucket and stores the output as documents you can search.

## Code Examples

PythoncURL

import os, requests

API = "https://api.mixpeek.com"
H = {"Authorization": f"Bearer {os.environ\['MIXPEEK\_API\_KEY'\]}",
     "X-Namespace": os.environ\["NAMESPACE\_ID"\]}

# 1. a bucket, with a schema that declares the field you will send
bucket = requests.post(f"{API}/v1/buckets", headers=H, json={
    "bucket\_name": "video-inputs",
    "bucket\_schema": {"properties": {"video": {"type": "video"}}},
}).json()

# 2. land the file as an object. the URL goes in data, on the blob
requests.post(f"{API}/v1/buckets/{bucket\['bucket\_id'\]}/objects", headers=H, json={
    "key\_prefix": "run-1",
    "blobs": \[{"property": "video", "type": "video",
               "data": "https://example.com/clip.mp4"}\],
})

# 3. a collection over that bucket, running the extractor
collection = requests.post(f"{API}/v1/collections", headers=H, json={
    "collection\_name": "video-to-metadata",
    "source": {"type": "bucket", "bucket\_ids": \[bucket\["bucket\_id"\]\]},
    "feature\_extractor": {"feature\_extractor\_name": "multimodal\_extractor", "version": "v1"},
}).json()

# 4. run extraction over the bucket
requests.post(f"{API}/v1/buckets/{bucket\['bucket\_id'\]}/batches", headers=H, json={
    "collection\_ids": \[collection\["collection\_id"\]\],
    "auto\_submit": True,
})

# 5. read the output
docs = requests.get(
    f"{API}/v1/collections/{collection\['collection\_id'\]}/documents", headers=H
).json()
print(docs)

## Use Cases

Enrich media asset management systems with automated metadata

Build filterable video catalogs with AI-generated tags and categories

Audit video libraries for technical compliance (codec, resolution, bitrate)

Pre-process video uploads to validate quality and detect content type before ingestion

## Keep Building

[Why do my photos have no date or location?Written for stills, and the reason is the same one that empties a video's creation\_time: the platform re-encodes on upload and the new file was never on the camera.](/guides/photo-has-no-date-or-location-metadata)[Best video intelligence APIsWhen the container headers are not enough and you need what the footage shows.](/curated-lists/best-video-intelligence-apis)[Best AI video tagging toolsTurning scenes and objects into tags you can filter on.](/curated-lists/best-ai-video-tagging-tools)[Best AI metadata extraction toolsThe same comparison across every file type, not just video.](/curated-lists/best-ai-metadata-extraction-tools)

### Supported Input Formats

MP4

MOV

M4V

WebM

MKV

### Quick Info

Categorymedia

Max File SizeNo set limit; only the headers are read

Est. TimeAbout a second, in your browser

Extractor[Multimodal Extractor](/extractors/multimodal)

### Processing millions of hours of video?

Run this as a managed pipeline over your entire video archive, no infrastructure to build or maintain. Talk to us about processing at scale.

[Talk to us](/demo?intent=converter-enterprise)

### Run it over a library

Mixpeek runs this conversion as a pipeline over a whole library in your object storage, with the output landing as queryable documents. The reader on this page handles one file at a time.

Get API KeyRead the Docs

## Frequently Asked Questions

Is my video uploaded when I use the reader on this page?

What technical metadata does the reader show?

Why does a WebM or MKV file show fewer fields?

Why is the creation date missing for my video?

What about what happens in the video, such as objects, scenes and speech?

## Related Converters

[

Video

Thumbnails

### Video to Thumbnails

Pull 12 evenly spaced thumbnails from a video right on this page. The video plays from your device in your browser, nothing is uploaded, and each thumbnail downloads as a JPEG. The page also covers generating thumbnails across a video library through an API.





](/converters/video-to-thumbnails)[

Image

Metadata

### Image to Metadata

Read a photo's EXIF, IPTC and XMP metadata on this page: the date taken, GPS location, camera, lens and exposure. The file is read in your browser and never uploaded. The page also covers what no header holds, such as the objects and text in the picture, and how to pull both from a whole library through an API.





](/converters/image-to-metadata)

## Ready to convert video to metadata?

Start using the Mixpeek Video to Metadata in minutes. Sign up for a free API key and follow the documentation to get started.

Try This ConversionBrowse All Converters