Save with the video: a new video take of a video take's picture with this audio take as its sound
const url = 'http://localhost:8300/v1/studio/takes/example/mux';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"video_take_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Take UUID (malformed = 404)
Request Bodyrequired
Section titled “Request Bodyrequired”Save with the video: the video take whose picture keeps this audio take as its sound
object
Example generated
{ "video_take_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”The job that makes it
The mux job (kind mux); its take_id is the new video take once it succeeded
object
object
Mux: Save with the video (POST /v1/studio/takes/{take_id}/mux)
Export: the sequence
Export: the revision exported
Frame: the video take
Mux only (absent otherwise): the video take whose picture it keeps
Bake only (absent otherwise): the Magic send it bakes for
Export: what was planned (copy = picture stream copy); once it ended, what the runner did (copy can fall back to conform)
Export: why the runner fell back to conform; null otherwise
Succeeded: the take it made
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
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}