# Get video duration, resolution and codecs with ffprobe

**Use case:** 

Give it a direct video file URL and get the ffprobe report back as JSON: duration, width and height, frame rate, video and audio codec, bitrate, file size and container format. Keyframes are switched off in this example, so you get the metadata and the scene count without the stills. No ffmpeg to install. $0.01 for the run plus $0.02 per started minute of video.

## Input

```json
{
  "videoUrls": [
    "https://api.apify.com/v2/key-value-stores/Bfr82R8zp35dJRkcL/records/autotest-clip.mp4"
  ],
  "maxVideos": 10,
  "sceneThreshold": 0.35,
  "minSceneSeconds": 0.6,
  "maxKeyframes": 40,
  "keyframeLongEdge": 1024,
  "includeKeyframes": false
}
```

## Output

```json
{
  "url": {
    "label": "Video URL",
    "format": "string"
  },
  "durationSeconds": {
    "label": "Duration (seconds)",
    "format": "number"
  },
  "width": {
    "label": "Width (px)",
    "format": "integer"
  },
  "height": {
    "label": "Height (px)",
    "format": "integer"
  },
  "fps": {
    "label": "Frame rate",
    "format": "number"
  },
  "videoCodec": {
    "label": "Video codec",
    "format": "string"
  },
  "audioCodec": {
    "label": "Audio codec",
    "format": "string"
  },
  "hasAudio": {
    "label": "Has audio",
    "format": "boolean"
  },
  "bitrateKbps": {
    "label": "Bitrate (kbps)",
    "format": "number"
  },
  "sizeBytes": {
    "label": "File size (bytes)",
    "format": "integer"
  },
  "containerFormat": {
    "label": "Container format",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Video Scene Detection, Keyframe Extractor: extract scene frames](https://apify.com/frameprobe/video-scene-splitter.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/frameprobe/video-scene-splitter.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/frameprobe/video-scene-splitter.md

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`).
