NERtc UE SDK  V5.4.109
Public 属性 | 所有成员列表
nertc::NERtcVideoConfig结构体 参考

#include <NertcEngineDefines.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
 

详细描述

视频编码属性配置。

类成员变量说明

◆ bitrate

uint32_t nertc::NERtcVideoConfig::bitrate

视频编码码率kbps,取0时使用默认值

◆ crop_mode

NERtcVideoCropMode nertc::NERtcVideoConfig::crop_mode

视频裁剪模式,宽高比。默认为 kNERtcVideoCropModeDefault。详细信息请参考 NERtcVideoCropMode。

◆ degradation_preference

NERtcDegradationPreference nertc::NERtcVideoConfig::degradation_preference

带宽受限时的视频编码降级偏好。详细信息请参考 NERtcDegradationPreference。

◆ framerate

NERtcVideoFramerateType nertc::NERtcVideoConfig::framerate

主流的视频编码的帧率。详细信息请参考 NERtcVideoFramerateType。默认根据设置的maxProfile决定帧率。

  • max_profile >= STANDARD,frameRate = FRAME_RATE_FPS_30。
  • max_profile < STANDARD,frameRate = FRAME_RATE_FPS_15。

◆ height

uint32_t nertc::NERtcVideoConfig::height

视频编码分辨率,衡量编码质量,以宽x高表示。与maxProfile属性二选一。
height表示视频帧在纵轴上的像素,即自定义高。

  • 设置为负数时表示采用 max_profile 档位。
  • 如果需要自定义分辨率场景,则设置此属性,maxProfile属性失效。
    自定义视频输入width和height无效,会自动根据 maxProfile 缩放。

◆ max_profile

NERtcVideoProfileType nertc::NERtcVideoConfig::max_profile

视频编码的分辨率,用于衡量编码质量。详细信息请参考 NERtcVideoProfileType。

◆ min_bitrate

uint32_t nertc::NERtcVideoConfig::min_bitrate

视频编码的最小码率,单位为 Kbps。您可以根据场景需要,手动设置想要的最小码率,若设置为0,SDK 将会自行计算处理。

◆ min_framerate

NERtcVideoFramerateType nertc::NERtcVideoConfig::min_framerate

视频编码的最小帧率。默认为 0,表示使用默认最小帧率

◆ mirror_mode

NERtcVideoMirrorMode nertc::NERtcVideoConfig::mirror_mode

设置本地视频编码的镜像模式,即本地发送视频的镜像模式,只影响远端用户看到的视频画面。

◆ orientation_mode

NERtcVideoOutputOrientationMode nertc::NERtcVideoConfig::orientation_mode

设置本地视频编码的方向模式,即本地发送视频的方向模式,只影响远端用户看到的视频画面。

◆ width

uint32_t nertc::NERtcVideoConfig::width

视频编码分辨率,衡量编码质量,以宽x高表示。与maxProfile属性二选一。
width表示视频帧在横轴上的像素,即自定义宽。

  • 设置为负数时表示采用 max_profile 档位。
  • 如果需要自定义分辨率场景,则设置此属性,maxProfile属性失效。 自定义视频输入width和height无效,会自动根据 maxProfile 缩放。

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