NERtc Windows SDK
Public Attributes | List of all members
nertc::NERtcVideoConfig Struct Reference

#include <nertc_engine_defines.h>

Public Attributes

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
 

Detailed Description

视频配置的属性。

Member Data Documentation

uint32_t nertc::NERtcVideoConfig::bitrate

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

NERtcVideoCropMode nertc::NERtcVideoConfig::crop_mode_

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

NERtcDegradationPreference nertc::NERtcVideoConfig::degradation_preference

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

NERtcVideoFramerateType nertc::NERtcVideoConfig::framerate

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

  • max_profile >= STANDARD,frameRate = FRAME_RATE_FPS_30 。
  • max_profile < STANDARD,frameRate = FRAME_RATE_FPS_15 。
uint32_t nertc::NERtcVideoConfig::height

视频编码分辨率,衡量编码质量,以宽x高表示。与maxProfile属性二选一。

height表示视频帧在纵轴上的像素,即自定义高。

  • 设置为负数时表示采用 max_profile 档位。
  • 如果需要自定义分辨率场景,则设置此属性,maxProfile属性失效。

自定义视频输入width和height无效,会自动根据 maxProfile 缩放。

NERtcVideoProfileType nertc::NERtcVideoConfig::max_profile

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

uint32_t nertc::NERtcVideoConfig::min_bitrate

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

NERtcVideoFramerateType nertc::NERtcVideoConfig::min_framerate

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

uint32_t nertc::NERtcVideoConfig::width

视频编码分辨率,衡量编码质量,以宽x高表示。与maxProfile属性二选一。

width表示视频帧在横轴上的像素,即自定义宽。

  • 设置为负数时表示采用 max_profile 档位。
  • 如果需要自定义分辨率场景,则设置此属性,maxProfile属性失效。

自定义视频输入width和height无效,会自动根据 maxProfile 缩放。


The documentation for this struct was generated from the following file: