---
title: "sequence.addTracks: Add Tracks — Film kit command — Kition"
description: "Adds `video`, `audio` and `submix` tracks, each after a given track (`videoAfter` \"first\", \"V2\" or an index), with `audioType` and `submixType` channel layouts."
canonical: "https://developer.kition.ai/docs/kits/film/commands/sequence.addTracks"
---

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

# sequence.addTracks

**Add Tracks.** Adds `video`, `audio` and `submix` tracks, each after a given track (`videoAfter` "first", "V2" or an index), with `audioType` and `submixType` channel layouts.

- 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 |
| --- | --- | --- | --- |
| `audio` | `integer` | no |  |
| `audioAfter` | `string \| integer` | no | "first"\|"A2"\|n? |
| `audioType` | `"standard" \| "5.1" \| "adaptive" \| "mono"` | no |  |
| `submix` | `integer` | no |  |
| `submixAfter` | `string \| integer` | no | "first"\|"S1"\|n? |
| `submixType` | `"stereo" \| "5.1" \| "adaptive" \| "mono"` | no |  |
| `video` | `integer` | no |  |
| `videoAfter` | `string \| integer` | no | "first"\|"V2"\|n? |

## Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: `audio`, `audioAfter`, `audioType`, `submix`, `submixAfter`, `submixType`, `video`, `videoAfter`. 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": {
    "audio": {
      "default": 0,
      "type": "integer"
    },
    "audioAfter": {
      "description": "\"first\"|\"A2\"|n?",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ]
    },
    "audioType": {
      "enum": [
        "standard",
        "5.1",
        "adaptive",
        "mono"
      ],
      "type": "string"
    },
    "submix": {
      "default": 0,
      "type": "integer"
    },
    "submixAfter": {
      "description": "\"first\"|\"S1\"|n?",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ]
    },
    "submixType": {
      "enum": [
        "stereo",
        "5.1",
        "adaptive",
        "mono"
      ],
      "type": "string"
    },
    "video": {
      "default": 1,
      "type": "integer"
    },
    "videoAfter": {
      "description": "\"first\"|\"V2\"|n?",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ]
    }
  },
  "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).
