# initWithSize:frameRate:bitrate:orientationMode:mirrorMode: (/zh-CN/api-reference/rtc/macos/api-videoencoderconfiguration-initwithsize) > For AI agents: see the complete documentation index at [llms.txt](/llms.txt). ```objc - (instancetype _Nonnull)initWithSize:(CGSize)size frameRate:(NSInteger)frameRate bitrate:(NSInteger)bitrate orientationMode:(AgoraVideoOutputOrientationMode)orientationMode mirrorMode:(AgoraVideoMirrorMode)mirrorMode NS_SWIFT_NAME(init(size:frameRate:bitrate:orientationMode:mirrorMode:)); ``` ## 参数 [#参数] 视频分辨率。 视频帧率,详见 [AgoraVideoFrameRate](/zh-CN/api-reference/rtc/macos/enum-framerate)。 编码视频的码率。 编码视频的方向模式,详见 [AgoraVideoOutputOrientationMode](/zh-CN/api-reference/rtc/macos/enum-orientationmode)。 设置本地视频流的镜像模式,仅影响远端用户看到的视频,详见 [AgoraVideoMirrorMode](/zh-CN/api-reference/rtc/macos/enum-videomirrormodetype)。 ## 返回值 [#返回值] 方法调用成功,返回初始化后的 [AgoraVideoEncoderConfiguration](/zh-CN/api-reference/rtc/macos/class-videoencoderconfiguration) 对象。 ### 所属接口类 [#所属接口类] - [AgoraVideoEncoderConfiguration](/zh-CN/api-reference/rtc/macos/class-videoencoderconfiguration)