# Media Info – ffprobe Video & Audio Metadata in Bulk (`gazidev/media-info-extractor`) Actor

Technical metadata for video and audio files in bulk without downloading them: duration, container, video and audio codecs, resolution, fps, bitrate, rotation, HDR, channels, sample rate, size, tags and chapters, plus web-safe MP4 and faststart checks. ffprobe in the cloud, $2 per 1,000 files.

- **URL**: https://apify.com/gazidev/media-info-extractor.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 file probeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Media Info – ffprobe Video & Audio Metadata in Bulk

Paste a list of **video or audio file URLs** and get the technical metadata of each file, the same data `ffprobe` and MediaInfo show: duration, container, video codec and profile, resolution, rotation, fps, pixel format, HDR, bitrate, audio codec, channels, sample rate, language, subtitle tracks, file size, metadata tags and chapters.

The files are **not downloaded**. ffprobe reads them with HTTP range requests, so it only fetches the header and the index (typically 50 kB to 1.5 MB, even for a multi-GB file). That makes it fast and cheap: **$2 per 1,000 files**, with no start fee.

Each row also has ready-made **checks**: `webSafeMp4` (will it play in every browser?), `faststart` (is the MP4 index at the start?), `hasAudio`, `isPortrait`, `isHdr` and a variable-frame-rate estimate.

### What this listing does that our other media Actors do not

| Actor | What it is for |
|---|---|
| **Media Info (this one)** | **Probe only.** Metadata and checks for many files at once, read with range requests, nothing encoded, $0.002 per file |
| [Video Converter & Compressor](https://apify.com/gazidev/media-converter) | Converts and compresses files (MP4, WebM, MP3, GIF, ...) |
| [Video Trimmer](https://apify.com/gazidev/video-trimmer) | Cuts clips out of video and audio files |
| [Extract Audio from Video](https://apify.com/gazidev/extract-audio-from-video) | Video to MP3/M4A/WAV |
| [Video Frame Extractor](https://apify.com/gazidev/video-frame-extractor) / [Video Thumbnail Generator](https://apify.com/gazidev/video-thumbnail-generator) | Images from videos |
| [FFmpeg Media MCP](https://apify.com/gazidev/ffmpeg-media-mcp) | All of the above as MCP tools for AI agents, one file per call |

Use this one when you only need to **know** what a file is (before you transcode, publish or pay for processing).

### Use cases

- **Upload pipelines (n8n, Make, Zapier):** check duration, resolution and codec of user uploads before you transcode them, reject files that are too long or audio-only.
- **AI agents:** "how long is this video?", "does it have audio?", "is it 4K?" with one call through the Apify MCP server.
- **Video library QA:** find files that will not play in browsers (HEVC, 10-bit, ProRes, MKV), MP4s without faststart, portrait videos, HDR files, files without audio.
- **Podcasts and music:** duration, bitrate, sample rate, channels and ID3/Vorbis tags of many audio files.
- **Catalogue enrichment:** add duration and resolution columns to a dataset of media URLs.

### Input

| Field | Default | Notes |
|---|---|---|
| `urls` | two sample files (MP4, MP3) | Direct links to media files. Signed S3/GCS URLs and CDN links work. |
| `bulkText` | – | Paste many URLs, one per line, or a CSV with a `url` column. |
| `datasetId` + `datasetField` | – / `url` | Read the URLs from another Apify dataset. |
| `includeStreams` | `true` | Add `streams` with every track. |
| `includeTags` | `true` | Add the container's tags (title, artist, encoder, creation_time, ...). |
| `includeChapters` | `false` | Add chapters (MKV, MP4, M4B). |
| `checkFaststart` | `true` | MP4/MOV/M4A: is `moov` before `mdat`? One or two tiny range requests. |
| `maxConcurrency` | 8 | Files probed in parallel (max 32). |
| `probeTimeoutSecs` | 30 | Per file; a timeout row is free. |

```json
{
  "urls": [
    "https://samplelib.com/mp4/sample-5s.mp4",
    "https://download.samplelib.com/mp3/sample-3s.mp3"
  ]
}
```

### Output (one row per file)

```json
{
  "url": "https://samplelib.com/mp4/sample-5s.mp4",
  "ok": true,
  "container": "mp4",
  "formatName": "mov,mp4,m4a,3gp,3g2,mj2",
  "majorBrand": "isom",
  "durationSec": 5.759,
  "duration": "00:00:05.759",
  "sizeBytes": 2848208,
  "bitrate": 3956841,
  "video": {
    "codec": "h264", "profile": "High", "level": 40,
    "width": 1920, "height": 1080, "displayWidth": 1920, "displayHeight": 1080, "rotation": 0,
    "fps": 30.0, "pixFmt": "yuv420p", "bitDepth": 8, "bitrate": 3857402,
    "hdr": null, "vfr": false, "frames": 171
  },
  "audio": {"codec": "aac", "profile": "LC", "channels": 2, "channelLayout": "stereo",
            "sampleRate": 44100, "bitrate": 127998, "language": "eng"},
  "subtitleTracks": [],
  "checks": {
    "hasVideo": true, "hasAudio": true, "isAudioOnly": false, "isPortrait": false, "isHdr": false,
    "webSafeMp4": true, "webSafeIssues": [], "faststart": false
  },
  "tags": {"major_brand": "isom", "encoder": "Lavf58.44.100"},
  "streams": ["..."],
  "rangeRequests": true,
  "bytesRead": 1252809,
  "errorCode": null,
  "error": null
}
```

- `displayWidth` / `displayHeight` are after rotation and non-square pixels, so a phone video shot upright is 1080×1920 even if it is stored as 1920×1080 with a 90° rotation.
- `hdr`: `HDR10 (PQ)`, `HLG`, `Dolby Vision` (or a combination), else `null`.
- `webSafeMp4` is `true` for MP4 + H.264 8-bit 4:2:0 (Baseline/Main/High) + AAC/MP3 or no audio. `webSafeIssues` says why not.
- `faststart` is `null` for non-MP4 files or when the server does not support range requests.
- Failed files have `ok: false`, an `errorCode` (`HTTP_404`, `NOT_MEDIA`, `TIMEOUT`, `BLOCKED_ADDRESS`, `UNSUPPORTED_PLATFORM`, `READ_LIMIT`, ...) and an `error` text. They are **free**.
- The run summary (`OUTPUT` in the key-value store) has counts per error code and the total megabytes read.

### Limits (please read)

- **Direct file links only.** YouTube, TikTok, Instagram, Vimeo and other platform pages are refused (free row). Use links to files you may process.
- **Not supported:** HLS/DASH playlists (`.m3u8`, `.mpd`), image files, and pages that need a login or cookies. They return a free `NOT_MEDIA` / HTTP error row.
- **Servers without range requests:** ffprobe must read the file from the start. If an MP4's index is at the end, this can mean reading the whole file; each probe stops after **64 MB** with a free `READ_LIMIT` row.
- `vfr` is an **estimate** from ffprobe's average vs. base frame rate, not a frame-by-frame scan. `frames` is the count stored in the container (when present), not a decoded count.
- Private and internal addresses (localhost, 10.x, 192.168.x, cloud metadata IPs, ...) are blocked for the first URL and for every redirect.

### Pricing

Pay per event, with a near-zero start fee:

| Event | Price | When |
|---|---|---|
| `file-probed` | **$0.002** | Each file ffprobe read successfully (one dataset row) |
| Actor start | $0.00005 | Once per run |

**$2 per 1,000 files.** Unreachable, blocked, invalid and non-media URLs are free. Set *Max total charge* on the run and the Actor stops cleanly when it is reached (the summary says how many files were not processed).

| Actor | Price per file |
|---|---|
| **This Actor** | **$0.002**, no start fee |
| whitewalk/ffmpeg-cloud-mcp (`get_metadata`) | $0.01 + $0.03 per start |
| jetlaunch/media-toolkit-ffmpeg-exiftool (`media-probe`) | $0.01 |
| automation-lab/video-thumbnail-frame-extractor (metadata comes with frames) | $0.006 per frame |

Prices checked on 14 Nov 2026.

### Use with AI agents / Apify MCP

Add the Actor to the [Apify MCP server](https://mcp.apify.com) (`gazidev/media-info-extractor`) and your agent can ask for the duration, resolution or codecs of any file URL. Input is just `{"urls": ["https://..."]}`; the answer is one JSON row per file. From code, call it with the Apify API or client (`run-sync-get-dataset-items` returns the rows directly).

### FAQ

**Does it download my files?** No. It reads only what ffprobe needs (see `bytesRead` in each row). Nothing is stored except the metadata row.

**Is it the same as MediaInfo?** It uses ffprobe (FFmpeg), which reports the same core fields (container, codecs, resolution, frame rate, bitrate, channels, sample rate, duration, HDR transfer, tags). MediaInfo-specific fields such as encoder settings strings are not included.

**Which formats?** MP4, MOV, M4A, M4V, 3GP, MKV, WebM, AVI, FLV, MPEG-TS, MPEG-PS, WMV/ASF, MXF, MP3, WAV, FLAC, AAC, OGG/Opus, AIFF, CAF, AC3/E-AC3, AMR, WavPack, APE, DTS and raw H.264/HEVC streams.

**Signed or private bucket URLs?** Pre-signed S3/GCS/Azure URLs work. The URL is used only for the probe and is not stored anywhere except your own dataset row.

**What User-Agent is sent?** `gazidev-media-info-extractor/0.1 (+https://apify.com/gazidev/media-info-extractor)`.

# Actor input Schema

## `urls` (type: `array`):

Direct links to video or audio files (MP4, MOV, MKV, WebM, AVI, TS, MP3, WAV, FLAC, M4A, OGG, ...). Public or signed URLs (S3, Google Cloud Storage, Dropbox direct links, CDN URLs). The file is read with HTTP range requests, so usually only the header and index are downloaded. Platform pages such as YouTube or TikTok are not supported.

## `bulkText` (type: `string`):

Paste many URLs, one per line, or a CSV with a `url` column.

## `datasetId` (type: `string`):

Read the file URLs from another dataset, for example the output of a scraper or an upload log.

## `datasetField` (type: `string`):

Field of each dataset item that holds the URL (or a list of URLs).

## `includeStreams` (type: `boolean`):

Add a `streams` list with every video, audio, subtitle and data track. The first video and audio track are always returned as `video` and `audio`.

## `includeTags` (type: `boolean`):

Add the container's tags (title, artist, album, encoder, creation_time, major_brand, ...).

## `includeChapters` (type: `boolean`):

Add the chapter list (title, start and end in seconds) for MKV, MP4 and M4B files that have chapters.

## `checkFaststart` (type: `boolean`):

For MP4/MOV/M4A files, check whether the 'moov' index is at the start of the file (playback can start before the download ends). Costs one or two tiny extra range requests.

## `maxConcurrency` (type: `integer`):

How many files are probed at the same time.

## `probeTimeoutSecs` (type: `integer`):

Give up on a file after this many seconds (the row is free).

## Actor input object example

```json
{
  "urls": [
    "https://samplelib.com/mp4/sample-5s.mp4",
    "https://download.samplelib.com/mp3/sample-3s.mp3"
  ],
  "datasetField": "url",
  "includeStreams": true,
  "includeTags": true,
  "includeChapters": false,
  "checkFaststart": true,
  "maxConcurrency": 8,
  "probeTimeoutSecs": 30
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `checks` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://samplelib.com/mp4/sample-5s.mp4",
        "https://download.samplelib.com/mp3/sample-3s.mp3"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/media-info-extractor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [
        "https://samplelib.com/mp4/sample-5s.mp4",
        "https://download.samplelib.com/mp3/sample-3s.mp3",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gazidev/media-info-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://samplelib.com/mp4/sample-5s.mp4",
    "https://download.samplelib.com/mp3/sample-3s.mp3"
  ]
}' |
apify call gazidev/media-info-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/media-info-extractor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/CFbgBHbndw8p8XgJK/builds/RmDPJRzUc5YSgZpse/openapi.json
