---
title: "caption.setTimes: Set Caption In/Out — Film kit command — Kition"
description: "Sets a caption's start and/or end, each as ticks (`startTime`), frames, seconds or timecode; default caption is the selected one."
canonical: "https://developer.kition.ai/docs/kits/film/commands/caption.setTimes"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/caption.setTimes](https://developer.kition.ai/docs/kits/film/commands/caption.setTimes)

# caption.setTimes

**Set Caption In/Out.** Sets a caption's start and/or end, each as ticks (`startTime`), frames, seconds or timecode; default caption is the selected one.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `caption` | `integer` | no |  |
| `endFrame` | `integer` | no |  |
| `endSeconds` | `number` | no |  |
| `endTime` | `integer` | no | ticks (254016000000 per second) |
| `endTimecode` | `string` | no |  |
| `startFrame` | `integer` | no |  |
| `startSeconds` | `number` | no |  |
| `startTime` | `integer` | no | ticks (254016000000 per second) |
| `startTimecode` | `string` | no |  |

## Call through film_run

```text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "caption.setTimes" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `caption`, `endFrame`, `endSeconds`, `endTime`, `endTimecode`, `startFrame`, `startSeconds`, `startTime`, `startTimecode`. film_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "caption": {
      "type": "integer"
    },
    "endFrame": {
      "type": "integer"
    },
    "endSeconds": {
      "type": "number"
    },
    "endTime": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "endTimecode": {
      "type": "string"
    },
    "startFrame": {
      "type": "integer"
    },
    "startSeconds": {
      "type": "number"
    },
    "startTime": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "startTimecode": {
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
