NERtc Windows SDK  V4.4.301
Public 属性 | 所有成员列表
nertc::NERtcVideoConfig结构体 参考

#include <nertc_engine_defines.h>

Public 属性

NERtcVideoProfileType max_profile
 
uint32_t width
 
uint32_t height
 
NERtcVideoCropMode crop_mode_
 
NERtcVideoFramerateType framerate
 
NERtcVideoFramerateType min_framerate
 
uint32_t bitrate
 
uint32_t min_bitrate
 
NERtcDegradationPreference degradation_preference
 
NERtcVideoMirrorMode mirror_mode
 
NERtcVideoOutputOrientationMode orientation_mode
 

详细描述

The video encoding profile configuration.

类成员变量说明

◆ bitrate

uint32_t nertc::NERtcVideoConfig::bitrate

Video encoding bitrate (kbps), use the default value if the setting is set to 0.

◆ crop_mode_

NERtcVideoCropMode nertc::NERtcVideoConfig::crop_mode_

Video crop mode, aspect ratio. The default value is kNERtcVideoCropModeDefault. For more information, see NERtcVideoCropMode.

◆ degradation_preference

NERtcDegradationPreference nertc::NERtcVideoConfig::degradation_preference

Video encoding degradation preference when the bandwidth is limited. For more information, see NERtcDegradationPreference.

◆ framerate

NERtcVideoFramerateType nertc::NERtcVideoConfig::framerate

The frame rate of the bigstream video encoding. For more information, see NERtcVideoFramerateType. By default, the frame rate is determined based on maxProfile.

  • max_profile >= STANDARD. frameRate = FRAME_RATE_FPS_30.
  • max_profile < STANDARD. frameRate = FRAME_RATE_FPS_15.

◆ height

uint32_t nertc::NERtcVideoConfig::height

Video encoding resolution, an indicator of encoding quality, is represented by width x height. You can select this profile or maxProfile.

The height represents the pixels of the video frame on the vertical axis. You can enter a custom height.

  • If you set the value to a negative number, the maxProfile setting is used.
  • If you need to customize the resolution, set this profile, and maxProfile becomes invalid.

If the width and height of the custom video input are invalid, the width and height are automatically scaled based on maxProfile.

◆ max_profile

NERtcVideoProfileType nertc::NERtcVideoConfig::max_profile

The resolution of video encoding used to measure encoding quality. For more information, see NERtcVideoProfileType.

◆ min_bitrate

uint32_t nertc::NERtcVideoConfig::min_bitrate

The minimum bitrate of video encoding in kbps. You can manually set the required minimum bitrate based on your business requirements. If the bitrate is set to 0, the SDK computes and processes automatically.

◆ min_framerate

NERtcVideoFramerateType nertc::NERtcVideoConfig::min_framerate

The minimum frame rate for video encoding. The default value is 0, which indicates that the minimum frame rate is used by default

◆ mirror_mode

NERtcVideoMirrorMode nertc::NERtcVideoConfig::mirror_mode

Set the mirror mode for the local video encoding. The mirror mode is used for publishing the local video stream. The setting only affects the video picture seen by remote users.

◆ orientation_mode

NERtcVideoOutputOrientationMode nertc::NERtcVideoConfig::orientation_mode

Set the orientation mode of the local video encoding, The orientation mode is used for publishing the local video stream, which only affects the video picture seen by remote users.

◆ width

uint32_t nertc::NERtcVideoConfig::width

Video encoding resolution, an indicator of encoding quality, is represented by width x height. You can select this profile or maxProfile.

The width represents the pixels of the video frame on the horizontal axis. You can enter a custom width.

  • If you set the value to a negative number, the maxProfile setting is used.
  • If you need to customize the resolution, set this profile, and maxProfile becomes invalid.

If the width and height of the custom video input are invalid, the width and height are automatically scaled based on maxProfile.


该结构体的文档由以下文件生成: