Workflows & Runs
Launching a conversion creates a workflow on a converter. The workflow executes through the conversion engine. Each execution attempt is a run identified by a run id. Runs expose their status and payload. Workflows can be cancelled, terminated or restarted.
Launching a conversion
| Method | Path | Description | Scope |
|---|---|---|---|
GET |
/converters/{converter}/workflows |
List paginated workflows | workflows:read |
POST |
/converters/{converter}/workflows |
Launch a conversion | workflows:write |
The payload carries the workflow type and its settings:
| Field | Description |
|---|---|
type |
Workflow to run: media-conversion for a standard conversion |
settings.inputs |
At least one input file (up to 255) |
settings.outputGroups |
At least one output group (up to 255) |
accelerationSettings.mode |
Hardware acceleration, defaults to ACCELERATION_PREFERRED |
priority |
Requests encoding prioritization; honored on packs that include it |
outputGroupFilter |
OUTPUT_GROUP_FILTER_BEST_EFFORT drops groups the engine cannot produce, instead of failing the job |
Inputs
Each input references a file by its path in the converter's storages:
{
"fileInput": "s3://my-bucket/videos/source.mov",
"audioSelectors": [
{ "key": "default", "selectorType": "SELECTOR_TYPE_TRACK", "track": 1 }
]
}
Audio selectors pick tracks by number (SELECTOR_TYPE_TRACK) or by ISO
639-2/B language code (SELECTOR_TYPE_LANGUAGE_CODE). Inputs also support
time-based clipping (inputClippings). They support video and image overlays
(videoOverlays, imageOverlays). They support cropping (crop) and a
timecode start.
Output groups
Output groups go inline into the payload. The destination is chosen at launch:
{
"name": "mp4",
"settings": { "destination": "s3://my-bucket/converted/" },
"outputs": [ { "extension": "mp4" } ]
}
The rendition definitions (codecs, resolutions) are documented in
Output Groups. For streaming outputs
(HLS/DASH), add segmentGroupSettings (segment length) next to the
destination.
Payload size limit
The launch request carries the whole job settings. The API rejects any
body larger than 2 MiB with HTTP 413. Reference files by path
instead of inlining content.
The service validates the settings against the converter's pack. A basic pack, for example, only encodes up to 1080p and 8-bit H.264. See Billing & Consumption.
Response
{
"result": "success",
"data": {
"workflow_id": "my-converter.01JABCDEF",
"run_id": "01JABCDEF0123456789ABCDEFGH"
}
}
Workflow types
Besides TranscodeMedia (the media-conversion conversion), the engine
runs utility workflows. These include thumbnails, preview clips, scene
detection, audio waveform, transcription and translation:
CaptureVideoFrame, CreateAudioPreviewClip, CreateAudioSampleSegment,
CreateThumbnailStrip, CreateVideoPreviewClip,
CreateVideoSampleSegment, DetectSceneChanges, EnrichMediaMetadata,
GenerateSummary, ProcessUploadedMedia, RenderAudioWaveform,
TranscodeMedia, TranscribeAudio, TranslateSubtitle.
Following a run
| Method | Path | Description | Scope |
|---|---|---|---|
GET |
/runs/{run} |
Get a run's current state | converters:read |
GET |
/runs/{run}/payload |
Get a run's original payload | workflows:read |
Runs are keyed by their run id, not by a resource id. The service resolves
access through the owning converter. A run from another project answers 404.
{
"result": "success",
"data": {
"workflow_id": "my-converter.01JABCDEF",
"run_id": "01JABCDEF0123456789ABCDEFGH",
"name": "TranscodeMedia",
"status": "in_progress",
"started_at": "2026-11-20T10:30:00Z",
"finished_at": null,
"activities": [ ... ]
}
}
| Status | Meaning |
|---|---|
in_progress |
The workflow is running |
completed |
Finished successfully |
failed |
Failed (or timed out); failure_message carries the reason |
canceled |
Cancelled through the API |
terminated |
Forcefully terminated through the API |
The detail view exposes the run's payload, activity timeline, and execution
plan graph (dag: nodes, dependencies, and the journal text of each step).
Receive a webhook on workflow events instead of polling. See Callbacks.
Reading the journal
Every run keeps a journal. The journal lists each decision the engine makes
about your fields. Read it in the run detail. The dag field carries one node
per step. details holds the journal text of that step.
Three severities:
[.]note: the engine applied a field, or reports a measured fact.[!]warning: the engine changed something you did not ask for. The run continues.[x]error: the engine refused the job. The run fails.
Each entry names the field it speaks about. It states what happened. It ends with a recommendation:
#301 [!] [settings.inputs[0].audio_selectors] no audio selector matched; the file's first audio track was used instead (selector "default" -> the file's first audio track)
-> add an audio selector named "default" to this input
SelectHardware
The SelectHardware step runs before any encoding. It decides whether the
run is accelerated. The journal prints the decision:
- An accelerated run shows the plan journal with no warning.
- A non-accelerated run shows a warning that explains why the acceleration
was dropped.
ACCELERATION_PREFERREDcontinues without acceleration.ACCELERATION_ENABLEDfails the job instead. - The warning names the reason the acceleration was dropped.
TranscodeMedia
The TranscodeMedia step prints the plan journal after resolution. It
prints it again at the end with the result. Read it to follow every mechanic.
These include probe facts, pixel format adaptations, stream copies, codec
decisions, and each refusal when the run fails.
Common pitfalls
These cases cause most support calls. The journal names the field and the fix:
- The input has no sound track, and an output declares audio. The job
fails with
Audio selector refused. Add an audio selector that matches an existing track. Or removeaudioDescriptions. - A selector key does not exist (a typo, or a track number past the end). The same failure occurs. The journal names the key and the field to fix.
- The input quality needs a conversion you did not plan. An HDR or
10-bit source under a Standard profile drops to 4:2:0 8-bit with a
warning. An interlaced or variable-frame-rate source under
PROFILE_LEGACYis normalized. The journal shows each adaptation as a[!]entry. - The destination storage refuses writes (wrong credentials, expired token). The publish step fails. The journal carries the storage error.
- A caption selector points at a file nobody carries. Missing on every input, the job fails. Missing on some inputs only, captions drop there with a warning.
When a launch fails
A launch fails in one of two places. The API rejects the call before
anything runs. Or the engine refuses it at plan time: the run moves to
failed, and failure_message carries the reason.
API-side checks:
- Field validation returns
422: required fields, up to 255 items per list, timecodes asHH:MM:SS:FF, caption languages as three-letter lowercase codes,priority1-255. - Pack capabilities return
422with an explicit error, e.g.Feature not included in your plan: 4k(resolution, fps, bit depth, codecs, prioritization). - A body larger than 2 MiB returns
413; the error lists the fields that contribute the most.
Engine-side refusals at plan time say what to fix:
- An audio selector no input can satisfy (for example a media without a
sound track while an output declares audio) fails the job:
Audio selector refused. A selector missing on some inputs only gets a silent stand-in there. - A captions selector missing from every input fails the job.
- Burn-in requires a re-encoded video: refused on a copied (passthrough) stream and on outputs without video.
ACCELERATION_ENABLEDfails the job when the service cannot accelerate it.- A group cannot mix streaming formats (
M3U8withMPD). - Passthrough refuses clipped inputs in a segmented (HLS/DASH) group.
- Encoder limits: per-codec bitrate and sample-rate bounds (AAC, Opus,
Vorbis, MP3, FLAC), FLAC refuses any bitrate, two-pass requires a
bitratetarget,STRETCH_TO_OUTPUTrequires both dimensions.
These are not failures. Passthrough with crop or overlays falls back to a re-encode with a warning. Upscaling is allowed.
Workflow actions
| Method | Path | Description | Scope |
|---|---|---|---|
PUT/PATCH |
/workflows/{workflow} |
Act on the workflow's current run | converters:write |
curl -s -X PUT "https://api.infomaniak.com/1/public_clouds/media_conversion/workflows/<workflow-id>" \
-H "Authorization: Bearer $MC_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "action": "cancel" }'
| Action | Effect |
|---|---|
cancel |
Gracefully cancel the current run; answers 204 No Content |
terminate |
Forcefully terminate the current run; answers 204 No Content |
restart |
Start a new run of the workflow; answers with the new run |