...
Parameter | Values available | Description |
---|---|---|
Audio parameters | ||
codec | opus mpeg4-generic speex | Audio codec to use |
bitrate | Depends on quality required and bandwith 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 vp8 | Video codec to use |
bitrate | Depends on quality required and bandwith available | Video bitrate, kbps |
width | Depends on quality required and bandwith available | Picture width |
height | Depends on quality required and bandwith available | Picture height |
codeImpl | FF OPENH264 | Video codec used: based on FFmpeg or OpenH.264 |
gop | Depends on quality required and bandwith available | Key frames frequency (GOP) |
fps | Depends on quality required and bandwith available | Frames frequency per second |
quality | Depends on quality required and bandwith available | Video quality |
preset | ultrafast superfast veryfast faster fast medium slow slower veryslow placebo | FFmpeg preset, ultrafast by default |
profile | Depends on quality required | FFmpeg profile, Baseline by default |
level | Depends on quality required | FFmpeg level, 3.1 by default |
If picture width is not set or equal to 0, video will be scaled by height with aspect ratio preserving.
If both width and height are equal to 0, video will be scaled to resolution 160x120.
FFmpeg parameters management
When using FFmpeg codec, encoding preset, profile and level can be set. For example, the following parameters
Code Block | ||||
---|---|---|---|---|
| ||||
profile1:
audio:
codec : opus
rate : 48000
video:
width : 640
height : 360
gop : 90
fps : 30
codec : h264
profile : 77
level : 31
preset : veryfast |
defines veryfast
preset usage with Main
profile and level 3.1
When stream is transcoded on Edge server
...