|
如题,要怎么解决?
DWORD dwValue = 0;
// 设置本地视频编码的码率
dwValue = 0;
BRAC_SetSDKOption(BRAC_SO_LOCALVIDEO_BITRATECTRL,(const char*)&dwValue,sizeof(DWORD));
// 设置本地视频编码的质量因子
dwValue = 5;
BRAC_SetSDKOption(BRAC_SO_LOCALVIDEO_QUALITYCTRL,(const char*)&dwValue,sizeof(DWORD));
// 设置本地视频编码的关键帧间隔
dwValue = 25;
BRAC_SetSDKOption(BRAC_SO_LOCALVIDEO_GOPCTRL,(const char*)&dwValue,sizeof(DWORD));
// 设置本地视频编码的帧率
dwValue = 25;
BRAC_SetSDKOption(BRAC_SO_LOCALVIDEO_FPSCTRL,(const char*)&dwValue,sizeof(DWORD));
// 设置本地视频编码的预设参数
dwValue = 5;
BRAC_SetSDKOption(BRAC_SO_LOCALVIDEO_PRESETCTRL,(const char*)&dwValue,sizeof(DWORD));
// 设置本地视频采集的宽度
//dwValue = GetSystemMetrics(SM_CXSCREEN);
// dwValue = 320;
dwValue = 1000;
BRAC_SetSDKOption(BRAC_SO_LOCALVIDEO_WIDTHCTRL,(const char*)&dwValue,sizeof(DWORD));
// 设置本地视频采集的高度
//dwValue = GetSystemMetrics(SM_CYSCREEN);
// dwValue = 240;
dwValue = 800;
BRAC_SetSDKOption(BRAC_SO_LOCALVIDEO_HEIGHTCTRL,(const char*)&dwValue,sizeof(DWORD));
// 使参数设置生效
BOOL bUseAppParam = TRUE;
BRAC_SetSDKOption(BRAC_SO_LOCALVIDEO_APPLYPARAM,(const char*)&bUseAppParam,sizeof(DWORD));
|
|