Create a transcoding profile
/streams/transcoding-profiles/write Change: creates or edits. Scopes
Give it to a stream (transcoding_profile) to convert the stream this way.
Body
namestringrequiredDisplay name (e.g. SD, HD, FHD).
descriptionstringvideo_codecstringh264- H.264
One of:
"h264"audio_codecstringaac- AACmp3- MP3copy- Copy (no re-encode)
One of:
"aac""mp3""copy"widthintegerrequiredOutput frame width in pixels (e.g. 1280).
heightintegerrequiredOutput frame height in pixels (e.g. 720).
fpsintegerOutput frame rate. Use 30 for TV unless the source is 60fps.
video_bitrateintegerrequiredVideo bitrate ceiling in kbps (encoder uses less for quiet scenes).
audio_bitrateintegerAudio bitrate in kbps.
keyframe_intervalintegerKeyframe interval in frames. 30 ≈ 1s at 30fps.
presetstringEncoder speed preset (only honoured by software x264enc).
ultrafast- Ultrafastsuperfast- Superfastveryfast- Veryfastfaster- Fasterfast- Fastmedium- Medium
qualityintegerQuantizer / CRF. 18-28 sane range; 22 ≈ transparent.
Response
201 OK
idstring (uuid)requiredread-onlynamestringrequiredDisplay name (e.g. SD, HD, FHD).
descriptionstringvideo_codecstringh264- H.264
One of:
"h264"audio_codecstringaac- AACmp3- MP3copy- Copy (no re-encode)
One of:
"aac""mp3""copy"widthintegerrequiredOutput frame width in pixels (e.g. 1280).
heightintegerrequiredOutput frame height in pixels (e.g. 720).
resolutionstringrequiredread-onlyfpsintegerOutput frame rate. Use 30 for TV unless the source is 60fps.
video_bitrateintegerrequiredVideo bitrate ceiling in kbps (encoder uses less for quiet scenes).
audio_bitrateintegerAudio bitrate in kbps.
keyframe_intervalintegerKeyframe interval in frames. 30 ≈ 1s at 30fps.
presetstringEncoder speed preset (only honoured by software x264enc).
ultrafast- Ultrafastsuperfast- Superfastveryfast- Veryfastfaster- Fasterfast- Fastmedium- Medium
qualityintegerQuantizer / CRF. 18-28 sane range; 22 ≈ transparent.
is_systembooleanrequiredread-onlySystem-seeded profile. Operators should clone instead of editing.
created_atstring (date-time)requiredread-onlyupdated_atstring (date-time)requiredread-only
Errors
- 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.