...
Code Block | ||||
---|---|---|---|---|
| ||||
profiles:
-webrtc-144:
audio:
codec : opus
rate : 48000
channels : 2
video:
width : 256
height : 144
codecImpl : OPENH264 |
...
Parameter | Values available | Description | |||
---|---|---|---|---|---|
Audio parameters | |||||
codec | opus mpeg4-generic speex ulaw | Audio codec to use | |||
bitrate | Depends on quality required and bandwidth available | Audio bitrate, bps | |||
rate | 8000 11025 12000 16000 22050 24000 32000 44100 48000 | Audio sample rate, kHz | channels | 1 2 | Channels quantity: mono or stereo |
Video parameters | |||||
codec | h264 mpv vp8 | Video codec to use | |||
bitrate | Depends on quality required and bandwidth available | Video bitrate, kbps | |||
width | Depends on quality required and bandwidth available | Picture width | |||
height | Depends on quality required and bandwidth available | Picture height | |||
codeImpl | FF OPENH264 | Video codec used, FF by default | |||
gop | Depends on quality required and bandwidth available | Key frames frequency (GOP) | |||
fps | Depends on quality required and bandwidth available | Frames frequency per second | |||
quality | Depends on quality required and bandwidth available | Video quality | |||
preset | ultrafast superfast veryfast faster fast medium slow slower veryslow placebo | FF preset, ultrafast by default | |||
profile | Depends on required quality | FF profile, Baseline by default | |||
level | Depends on required quality | FF level, 3.1 by default |
...
REST query | REST query body example | Response body example | Response states | Description | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
/cdn/profile/add |
| 200 – OK 400 - Bad Request 409 - Conflict 500 – Internal Server Error | Add transcoding profile | ||||||||
/cdn/profile/modify |
| 200 – OK 400 - Bad Request 404 - Not Found 500 – Internal Server Error | Change transcoding profile | ||||||||
/cdn/profile/print |
| 200 – OK 404 - Not Found 500 – Internal Server Error | Get the transcoding profiles list | ||||||||
/cdn/profile/remove |
| 200 – OK 404 - Not Found 500 – Internal Server Error | Remove transcoding profile |
...
The mandatory profile parameters are:
- audio:
- bitrate
- codec
- ratechannels
- video:
- bitrate
- codec
- width
- height
- quality
...