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

studioPlanTimelineExport

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

revision absent = the current one; one that is not kept (older than the last 100) is 404.

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"
}

OK

Media typeapplication/json
object
revision
required
integer
>= 1
stream_copy
required

The picture is copied as it is; the sound is always re-encoded

boolean
reasons
required

Why the picture must be re-encoded, per V1 clip in order; empty with stream_copy

Array<object>
object
code
required
string
Allowed values: gap image transition not_probed container codec pixel_format size aspect field_order frame_rate trimmed profile level time_base colour parameter_sets offline empty too_large no_host
clip
required
One of:

A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)

string
/^[a-z0-9]{1,16}$/
message
required
string
blocked
required

Why it cannot export now (offline clips, empty, no host); empty = it can

Array<object>
object
code
required
string
Allowed values: gap image transition not_probed container codec pixel_format size aspect field_order frame_rate trimmed profile level time_base colour parameter_sets offline empty too_large no_host
clip
required
One of:

A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)

string
/^[a-z0-9]{1,16}$/
message
required
string
output
required
object
width
required
integer
height
required
integer
fps
required
number
sample_rate
required
integer
container
required
string
Allowed value: mp4
video_codec
required
string
Allowed value: h264
audio_codec
required

AAC-LC 192 kb/s stereo

string
Allowed value: aac
video_bitrate
required

Re-encode: bits per second; null for a stream copy

integer | null
frames
required
integer
duration_s
required
number
estimated_bytes
required
integer
sounds

(always sent): every sound the mix reads, V1 then the audio tracks in order (V1 video clips with sound and audio-track clips with a take; not muted, not offline), with the facts each is resampled from: every one is resampled to output.sample_rate and up-mixed to stereo before the mix

Array<object>
<= 1000 items
object
clip
required

A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)

string
/^[a-z0-9]{1,16}$/
track
required
string
/^(V1|A[2-9])$/
sample_rate
required

An audio take’s own rate (audio.sample_rate: 24000, 44100); null when studio does not know it (a video’s sound, an upload): ffmpeg reads it

integer | null
channels
required

1 for an audio take made by a run (mono WAV); null when not known

integer | null
host
required

The env that would run it now (automatic choice, or the named host’s); null when none

string | null
env
required
string | null
hardware
required

True: a hardware encoder; false: software (libx264); null without a host

boolean | null

Example

{
"reasons": [
{
"code": "gap",
"message": "Shot 2 is 704 × 448; the sequence is 1280 × 704"
}
],
"blocked": [
{
"code": "gap",
"message": "Shot 2 is 704 × 448; the sequence is 1280 × 704"
}
],
"output": {
"container": "mp4",
"video_codec": "h264",
"audio_codec": "aac"
}
}

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"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}