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

Save with the video: a new video take of a video take's picture with this audio take as its sound

POST
/v1/studio/takes/{take_id}/mux
curl --request POST \
--url http://localhost:8300/v1/studio/takes/example/mux \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "video_take_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

take_id is the audio take (kind audio), the body names the video take. 202 with a media job (kind mux): the runner copies the picture (H.264), encodes the sound as AAC and cuts or pads it to the video’s length; on success the job’s take_id is a new video take (source create, parents [video, audio], the video’s made_with). Idempotent per pair: asking again while it runs, or after it made a take that is not deleted, answers that job. 404 for either take unknown, another user’s or deleted; 422 take <id> is not audio or take <id> is not a video; 409 no live host can export (ffmpeg) when no env can run it.

take_id
required
string

Take UUID (malformed = 404)

Media typeapplication/json

Save with the video: the video take whose picture keeps this audio take as its sound

object
video_take_id
required
string format: uuid

Example generated

{
"video_take_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

The job that makes it

Media typeapplication/json

The mux job (kind mux); its take_id is the new video take once it succeeded

object
job
required
object
id
required
string format: uuid
kind
required

Mux: Save with the video (POST /v1/studio/takes/{take_id}/mux)

string
Allowed values: export frame mux bake
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
video_take_id

Mux only (absent otherwise): the video take whose picture it keeps

string | null format: uuid
send_id

Bake only (absent otherwise): the Magic send it bakes for

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

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

{
"job": {
"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"
}