NERtc iOS SDK  V4.6.0
属性 | 所有成员列表
NERtcBaseVideoEncodeConfiguration类 参考

本地视频基础发送配置。 更多...

#import <NERtcEngineBase.h>

类 NERtcBaseVideoEncodeConfiguration 继承关系图:
NERtcVideoEncodeConfiguration NERtcVideoSubStreamEncodeConfiguration

属性

NERtcVideoProfileType maxProfile
 视频编码的分辨率,用于衡量编码质量。详细信息请参考 NERtcVideoProfileType更多...
 
NERtcVideoFrameRate frameRate
 视频编码的帧率。详细信息请参考 NERtcVideoFrameRate更多...
 
NSInteger minFrameRate
 视频编码的最小帧率。默认为 0,表示使用默认最小帧率。 更多...
 
NSInteger bitrate
 视频编码的码率,单位为 Kbps。
您可以根据场景需要,手动设置想要的码率。详细码表请参考设置视频属性更多...
 
NSInteger minBitrate
 视频编码的最小码率,单位为 Kbps。您可以根据场景需要,手动设置想要的最小码率,若设置为0,SDK 将会自行计算处理。 更多...
 

详细描述

本地视频基础发送配置。

属性说明

◆ bitrate

- (NSInteger) bitrate
readwritenonatomicassign

视频编码的码率,单位为 Kbps。
您可以根据场景需要,手动设置想要的码率。详细码表请参考设置视频属性

  • 若设置的视频码率超出合理范围,SDK 会自动按照合理区间处理码率。
  • 若设置为 0,SDK将会自行计算处理。
分辨率 帧率(fps) 通信场景码率(kbps) 直播场景码率(kbps)
90 x 90 30 49 73
90 x 90 15 32 48
120 x 90 30 61 91
120 x 90 15 40 60
120 x 120 30 75 113
120 x 120 15 50 75
160 x 90 30 75 113
160 x 90 15 50 75
160 x 120 30 94 141
160 x 120 15 62 93
180 x 180 30 139 208
180 x 180 15 91 137
240 x 180 30 172 259
240 x 180 15 113 170
240 x 240 30 214 321
240 x 240 15 141 212
320 x 180 30 214 321
320 x 180 15 141 212
320 x 240 30 259 389
320 x 240 15 175 263
360 x 360 30 393 590
360 x 360 15 259 389
424 x 240 15 217 325
480 x 360 30 488 732
480 x 360 15 322 483
480 x 480 30 606 909
480 x 480 15 400 600
640 x 360 30 606 909
640 x 360 15 400 600
640 x 480 30 752 1128
640 x 480 15 496 744
720 x 720 30 1113 1670
720 x 720 15 734 1102
848 x 480 30 929 1394
720 x 720 15 613 919
960 x 720 30 1382 2073
960 x 720 15 911 1367
1080 x 1080 30 2046 3069
1080 x 1080 15 1350 2025
1280 x 720 30 1714 2572
1280 x 720 15 1131 1697
1440 x 1080 30 2538 3808
1440 x 1080 15 1675 2512
1920 x 1080 30 3150 4725
1920 x 1080 15 2078 3117

◆ frameRate

- (NERtcVideoFrameRate) frameRate
readwritenonatomicassign

视频编码的帧率。详细信息请参考 NERtcVideoFrameRate

  • 使用主流时,默认根据设置的maxProfile决定帧率。
  • maxProfile>= kNERtcVideoProfileStandard,frameRate = kNERtcVideoFrameRateFps30。
  • maxProfile< kNERtcVideoProfileStandard,frameRate = kNERtcVideoFrameRateFps15。
  • 使用辅流时,frameRate 默认为 kNERtcVideoFrameRateFps7。

◆ maxProfile

- (NERtcVideoProfileType) maxProfile
readwritenonatomicassign

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

◆ minBitrate

- (NSInteger) minBitrate
readwritenonatomicassign

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

◆ minFrameRate

- (NSInteger) minFrameRate
readwritenonatomicassign

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


该类的文档由以下文件生成: