Bitrate of the video (Kbps). Refer to the table below and set your bitrate. If you set a bitrate beyond the proper range, the SDK automatically adjusts it to a value within the range. You can also choose from the following options:
Standard: (Recommended) The standard bitrate mode. In this mode, the bitrates differ between the
Communicationprofile, the video bitrate is the same as the base bitrate.
LiveBroadcastingprofile, the video bitrate is twice the base bitrate.
Compatible: The compatible bitrate mode. In this mode, the bitrate stays the same regardless of the profile. If you choose this mode for the
LiveBroadcastingprofile, the video frame rate may be lower than the set value.
Agora uses different video codecs for different profiles to optimize the user experience. For example, the Communication profile prioritizes the smoothness while the
LiveBroadcasting profile prioritizes the video quality (a higher bitrate). Therefore, We recommend setting this parameter as
Video Bitrate Table
(Kbps, for Communication)
(Kbps, for Live Broadcasting)
The base bitrate in this table applies to the Communication profile.
LiveBroadcasting profile generally requires a higher bitrate for better video quality.
We recommend setting the bitrate mode as
Standard. You can also set the bitrate as the base bitrate value × 2.
The video encoding degradation preference under limited bandwidth.
The video frame dimensions (px), which is used to specify the video quality and measured by the total number of pixels along a frame's width and height. The default value is 640 × 360. You can customize the dimension, or select from the following list:
The video frame rate (fps). The default value is 15. Users can either set the frame rate manually or choose from the following options. We do not recommend setting this to a value greater than 30.
The minimum encoding bitrate (Kbps). The Agora SDK automatically adjusts the encoding bitrate to adapt to the network conditions. Using a value greater than the default value forces the video encoder to output high-quality images but may cause more packet loss and hence sacrifice the smoothness of the video transmission. That said, unless you have special requirements for image quality, Agora does not recommend changing this value.
The minimum video encoder frame rate (fps). The default value is Min(-1) (the SDK uses the lowest encoder frame rate).
Sets the mirror mode of the published local video stream.
The orientation mode.
Generated using TypeDoc
Definition of VideoEncoderConfiguration.