Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

Export the sequence to an MP4 take (a queued media job)

POST
/v1/studio/timelines/{timeline_id}/export
curl --request POST \
--url http://localhost:8300/v1/studio/timelines/example/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "revision": 1, "host": "example" }'

Plans the stated revision (it must be the current one: 409 stale), builds the ffmpeg arguments and sends 409 when the sequence is already running, or revision. 422 host cannot export` for a named host with no media env.

timeline_id
required
string

Sequence UUID (malformed = 404)

Media typeapplication/json
object
revision

Export: required (409 when not current)

integer
>= 1
host

Run it on this host (one of its envs with media); absent = automatic

string
/^[a-z0-9]{1,32}$/

Example generated

{
"revision": 1,
"host": "example"
}

The job, queued

Media typeapplication/json
object
id
required
string format: uuid
kind
required
string
Allowed values: export frame
status
required
string
Allowed values: queued running succeeded failed cancelled
host
required
string
env
required
string
timeline_id
required

Export: the sequence

string | null format: uuid
revision
required

Export: the revision exported

integer | null
>= 1
source_take_id
required

Frame: the video take

string | null format: uuid
mode
required

Export: what was planned (copy = picture stream copy); once it ended, what the runner did (copy can fall back to conform)

string | null
Allowed values: copy conform
reason

Export: why the runner fell back to conform; null otherwise

string | null
progress
required
One of:
object
frames
required
integer
total
required
integer
>= 1
take_id
required

Succeeded: the take it made (an export: a video take, source export; a frame: an image take, source frame)

string | null format: uuid
failure
required
One of:
object
class
required

Host_lost: its host stopped responding; export again: another live host is chosen

string
Allowed values: input invalid ffmpeg verify internal host_lost
detail
required
string
created_at
required
string format: date-time
started_at
required
string | null format: date-time
finished_at
required
string | null format: date-time

Example

{
"kind": "export",
"status": "queued",
"mode": "copy",
"failure": {
"class": "input"
}
}

Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

The resource’s state forbids this

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}