# How can I limit the output duration of my videos?

You can provide your own FFmpeg parameters to [🤖/video/encode](/docs/robots/video-encode.md) Steps. For example, to limit videos to four minutes, use FFmpeg's `-t` parameter, like in this example:

![](/_next/static/media/copy.04p1cju9qekk_.svg?dpl=dpl_4oZuCDMSVRc4TpVAXTjjeEKNLFAH)

```json
"ffmpeg": {
  "t": 240
}

```
