# --video-duration

Source: https://zshot-cli.com/reference/flags/video/video-duration/
Markdown: https://zshot-cli.com/reference/flags/video/video-duration/index.md
Section: [Reference](https://zshot-cli.com/reference/) › [Flags](https://zshot-cli.com/reference/flags/) › [Video](https://zshot-cli.com/reference/flags/video/)
CLI: `--video-duration` · REST: [`video_duration`](https://zshot-cli.com/reference/server/api/schema/#video_duration)
Value: `SECONDS` · Default: `5`
License: [Standard](https://zshot-cli.com/support/licenses/standard)

Records this many seconds of video, greater than 0 and at most 3600.

The [process timeout](/reference/flags/common/timeout) defaults to ten times the duration, and at least 60 seconds.

## Example

**CLI**

```sh
zshot -f tiger.webm --video-duration 10 https://zshot-cli.com/example_assets/tiger/
```

**JSON** — `POST /` body for the [API](/reference/server/api), Pro license

```json
{
  "url": "https://zshot-cli.com/example_assets/tiger/",
  "output_type": "webm",
  "video_duration": 10
}
```

**curl**

```sh
curl -X POST http://127.0.0.1:3000/ \
  -H "Content-Type: application/json" \
  -d '{"url":"https://zshot-cli.com/example_assets/tiger/","output_type":"webm","video_duration":10}' \
  -o tiger.webm
```

## Related

Flags:

- [`--video-framerate`](https://zshot-cli.com/reference/flags/video/video-framerate/)
- [`--timeout`](https://zshot-cli.com/reference/flags/common/timeout/)
- [`--image-duration`](https://zshot-cli.com/reference/flags/image/image-duration/)

Topics:

- [WebM video](https://zshot-cli.com/examples/webm-video/)
- [WebM](https://zshot-cli.com/reference/formats/webm/)
- [MP4](https://zshot-cli.com/reference/formats/mp4/)
- [MKV](https://zshot-cli.com/reference/formats/mkv/)

## Navigation

- [Examples](https://zshot-cli.com/examples/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
  - [Formats](https://zshot-cli.com/reference/formats/)
  - [Flags](https://zshot-cli.com/reference/flags/)
    - [Common](https://zshot-cli.com/reference/flags/common/)
    - [Agents](https://zshot-cli.com/reference/flags/agents/)
    - [Archive](https://zshot-cli.com/reference/flags/archive/)
    - [Browser](https://zshot-cli.com/reference/flags/browser/)
    - [Diagnostics](https://zshot-cli.com/reference/flags/diagnostics/)
    - [Document](https://zshot-cli.com/reference/flags/document/)
    - [Image](https://zshot-cli.com/reference/flags/image/)
    - [Navigator](https://zshot-cli.com/reference/flags/navigator/)
    - [Security](https://zshot-cli.com/reference/flags/security/)
    - [Server](https://zshot-cli.com/reference/flags/server/)
    - [Video](https://zshot-cli.com/reference/flags/video/)
      - **--video-duration**
      - [--video-framerate](https://zshot-cli.com/reference/flags/video/video-framerate/)
      - [--video-height](https://zshot-cli.com/reference/flags/video/video-height/)
      - [--video-selector](https://zshot-cli.com/reference/flags/video/video-selector/)
      - [--video-width](https://zshot-cli.com/reference/flags/video/video-width/)
  - [Agents](https://zshot-cli.com/reference/agents/)
  - [Configuration](https://zshot-cli.com/reference/configuration/)
  - [Crawling](https://zshot-cli.com/reference/crawling/)
  - [Docker](https://zshot-cli.com/reference/docker/)
  - [Exit Codes](https://zshot-cli.com/reference/exit_codes/)
  - [Linux](https://zshot-cli.com/reference/linux/)
  - [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
  - [LLM Formatting](https://zshot-cli.com/reference/llm_formatting/)
  - [Local Inputs](https://zshot-cli.com/reference/inputs/)
  - [Navigator](https://zshot-cli.com/reference/navigator/)
  - [Security](https://zshot-cli.com/reference/security/)
  - [Server](https://zshot-cli.com/reference/server/)
  - [Shell completions](https://zshot-cli.com/reference/shell_completions/)
  - [Storage](https://zshot-cli.com/reference/storage/)
  - [Timeouts](https://zshot-cli.com/reference/timeouts/)
  - [Web Bot Auth](https://zshot-cli.com/reference/web_bot_auth/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

