---
title: "clip.mergeClips: Merge Clips — Film kit command — Kition"
description: "Merges one video item and audio items, aligned by in, out, timecode, marker or audio, into a new merged project item; `removeVideoAudio` drops the camera audio."
canonical: "https://developer.kition.ai/docs/kits/film/commands/clip.mergeClips"
---

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

# clip.mergeClips

**Merge Clips.** Merges one video item and audio items, aligned by in, out, timecode, marker or audio, into a new merged project item; `removeVideoAudio` drops the camera audio.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes
- Acts on: `items` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ignoreHours` | `boolean` | no |  |
| `items` | `integer[]` | no |  |
| `marker` | `string` | no |  |
| `method` | `"in" \| "out" \| "timecode" \| "marker" \| "audio"` | no |  |
| `name` | `string` | no |  |
| `offset` | `integer` | no | frames |
| `removeVideoAudio` | `boolean` | no |  |

## Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `ignoreHours`, `items`, `marker`, `method`, `name`, `offset`, `removeVideoAudio`. 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": {
    "ignoreHours": {
      "type": "boolean"
    },
    "items": {
      "items": {
        "description": "an id",
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Item"
      ]
    },
    "marker": {
      "type": "string"
    },
    "method": {
      "enum": [
        "in",
        "out",
        "timecode",
        "marker",
        "audio"
      ],
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "offset": {
      "description": "frames",
      "type": "integer"
    },
    "removeVideoAudio": {
      "type": "boolean"
    }
  },
  "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).
