Skip to content

Streams

Streams represent individual encoded tracks of a video (video, audio, muxed, or the original file).

Create Stream

Add a new stream to a video.

POST /api/streams

Request Body:

json
{
  "video_id": 1,
  "name": "720p",
  "type": "video",
  "input_params": {
    "codec": "h264",
    "width": 1280,
    "height": 720,
    "bitrate": "2500k"
  }
}

Update Stream

PUT /api/streams/{id}

Request Body:

json
{
  "name": "720p Updated",
  "input_params": { ... }
}

Delete Stream

DELETE /api/streams/{id}

Stream Types

TypeDescription
originalThe source file as uploaded
videoVideo-only encoded track
audioAudio-only encoded track
muxedCombined video + audio track

Stream Properties

FieldTypeDescription
ulidstringUnique identifier
video_idintegerParent video ID
namestringDisplay name
typestringStream type
widthintegerVideo width in pixels
heightintegerVideo height in pixels
sizeintegerFile size in bytes
languagestringLanguage code (e.g., en, es)
channelsintegerAudio channels
metaobjectFFprobe metadata
input_paramsobjectEncoding parameters
error_logstringError details if the stream's concat job failed

Released under the MIT License.