# agora::rtc::RtmpStreamingVideoConfiguration结构体 参考 (/zh-CN/api-reference/rtc-server-sdk/cpp/structagora-1-1rtc-1-1-rtmp-streaming-video-configuration)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
## 详细描述 [#详细描述]
CDN 推流的视频编码属性。
## 构造及析构函数说明 [#构造及析构函数说明]
### RtmpStreamingVideoConfiguration() [#rtmpstreamingvideoconfiguration]
agora::rtc::RtmpStreamingVideoConfiguration::RtmpStreamingVideoConfiguration()
## 类成员变量说明 [#类成员变量说明]
### width [#width]
int agora::rtc::RtmpStreamingVideoConfiguration::width
视频宽度,单位为像素。默认值为 640。
:::info[注解]
该参数与 `height` 参数决定的视频尺寸不会影响视频编码的方向模式。 如需设置视频编码的方向模式,详见 `orientationMode` 参数。
:::
### height [#height]
int agora::rtc::RtmpStreamingVideoConfiguration::height
视频高度,单位为像素。默认值为 360。
:::info[注解]
该参数与 `width` 参数决定的视频尺寸不会影响视频编码的方向模式。 如需设置视频编码的方向模式,详见 `orientationMode` 参数。
:::
### framerate [#framerate]
int agora::rtc::RtmpStreamingVideoConfiguration::framerate
视频编码的帧率,单位为 fps。默认值为 15。
### bitrate [#bitrate]
int agora::rtc::RtmpStreamingVideoConfiguration::bitrate
视频编码码率,单位为 Kbps。默认值为 800。
### maxBitrate [#maxbitrate]
int agora::rtc::RtmpStreamingVideoConfiguration::maxBitrate
预留参数。
### minBitrate [#minbitrate]
int agora::rtc::RtmpStreamingVideoConfiguration::minBitrate
预留参数。
### gopInMs [#gopinms]
unsigned int agora::rtc::RtmpStreamingVideoConfiguration::gopInMs
两个关键帧之间的时间间隔,单位为 ms。默认值为 2000。
### encoderHwSwMode [#encoderhwswmode]
int agora::rtc::RtmpStreamingVideoConfiguration::encoderHwSwMode
设置视频编码器:
- `0`: 默认。
- `1`: 硬件编码器。
- `2`: 软件编码器。
### orientationMode [#orientationmode]
[ORIENTATION_MODE](/zh-CN/api-reference/rtc-server-sdk/cpp/namespaceagora-1-1rtc#af3d825e24a1e5dcfb74279c69b81d0c7) agora::rtc::RtmpStreamingVideoConfiguration::orientationMode
视频编码的方向模式,详见 [ORIENTATION_MODE](/zh-CN/api-reference/rtc-server-sdk/cpp/namespaceagora-1-1rtc#af3d825e24a1e5dcfb74279c69b81d0c7)。