---
url: >-
  https://api-doc.aive.com/api/operations/mutations/create-montage-from-container.md
---

Creates a new montage in a folder, pre-filled with the whole content of a container. The
montage takes the format of the container's video stream, and gets a single video lane
playing that video stream from start to end. If the container also has an audio stream, an
AI-synchronized audio lane (`generated` mode, see `AudioLaneMode`) linked to that video lane
is added as well.

The container must have a video stream, and every one of its streams must have been
analyzed beforehand (see `analyseContainer`). Otherwise the mutation is rejected with
`CreateMontageFromContainerError` (`missingVideoStream` or `containerNotAnalyzed`).

```graphql
createMontageFromContainer(
  input: CreateMontageFromContainerInput!
): CreateMontageFromContainerOutput!
```

### Arguments

#### [createMontageFromContainer.input](#input) ● [CreateMontageFromContainerInput!](/api/types/inputs/create-montage-from-container-input) non-null input {#input}

### Type

#### [CreateMontageFromContainerOutput](/api/types/unions/create-montage-from-container-output) union

Output of `createMontageFromContainer`: either the montage was created
(`CreateMontageFromContainerResult`), or the container cannot be used yet
(`CreateMontageFromContainerError`), e.g. because it has not been analyzed or has no
video stream.
