linux设备上的Onvif 实现14: 修改子通道的配置数据
来源:互联网 发布:ubuntu与麒麟 编辑:程序博客网 时间:2024/05/04 06:02
1 修改配置数据函数原型
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns8__SetVideoEncoderConfiguration(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct _ns8__SetVideoEncoderConfiguration *ns8__SetVideoEncoderConfiguration, struct _ns8__SetVideoEncoderConfigurationResponse *ns8__SetVideoEncoderConfigurationResponse)
2 代码实例
/* 修改配置参数 */
struct _ns8__SetVideoEncoderConfiguration setConfigReq;
struct _ns8__SetVideoEncoderConfigurationResponse setConfigResponse;
setConfigReq.ForcePersistence = "true"; //永久保存数据,摄像头重启后不会丢失
setConfigReq.Configuration = Configurations; //修改子通道的配置参数
/* 修改分辨率 */
MyModifyResolution(&setConfigReq, &getOptionsResponse);
/* 修改码率 */
MyModifyBitrateLimit(&setConfigReq, &getOptionsResponse);
/* 修改帧率 */
MyModifyFrameRate(&setConfigReq, &getOptionsResponse);
/* 修改编码格式 */
MyModifyEncoding(&setConfigReq, &getOptionsResponse);
result = soap_call___ns8__SetVideoEncoderConfiguration(soap, deviceode->mediauri, NULL, &setConfigReq, &setConfigResponse);
if(result==-1)
{
printf("soap error: %d, %s, %s\n", soap->error, *soap_faultcode(soap), *soap_faultstring(soap));
result = soap->error;
return FALSE;
}
else
{
printf(" SetVideoEncoderConfiguration OK! \n");
deviceode->profile[channel].support=1; //通过检查设置为支持
deviceode->profile[channel].Width = setConfigReq.Configuration->Resolution->Width;
deviceode->profile[channel].Height = setConfigReq.Configuration->Resolution->Height;
deviceode->profile[channel].FrameRateLimit = setConfigReq.Configuration->RateControl->FrameRateLimit;
deviceode->profile[channel].BitrateLimit = setConfigReq.Configuration->RateControl->BitrateLimit;
sleep(1);
}
3 命令及应答报文
略- linux设备上的Onvif 实现14: 修改子通道的配置数据
- linux设备上的Onvif 实现13: 获取子通道的配置数据范围
- linux设备上的Onvif 实现11: 修改媒体配置数据的流程
- linux设备上的Onvif 实现10:获取支持通道的RTSP地址
- linux设备上的Onvif 实现12: 获取媒体配置数据
- Linux设备上的Onvif实现16:实现Onvif鉴权
- linux设备上的Onvif 实现2:ONVIF框架基础知识
- linux设备上的Onvif 实现3:gsoap框架基础知识
- linux设备上的Onvif 实现1: 研究计划
- linux设备上的Onvif 实现1: 研究计划
- Linux设备上的Onvif实现18: ONVIF视频监视功能开发问题总结
- linux设备上的Onvif 实现1:onvif规范 中文介绍
- linux设备上的Onvif 实现5:实现Probe命令检测设备
- linux设备上的Onvif 实现9:检查是否支持该设备
- linux设备上的Onvif 实现7:编写设备能力获取程序
- linux设备上的Onvif 实现3 :gSOAP嵌入式linux下的移植与程序开发
- Linux设备上的Onvif实现17:实现RTSP摘要认证
- linux设备上的Onvif 实现6:获取摄像头的流媒体地址完整流程
- UITextView的用法及技巧
- Python 与 C++ 的交互编程
- Weblogic集群概念及模型
- 内存泄露检测工具 - Valgrind
- 抬头是片蓝蓝的天
- linux设备上的Onvif 实现14: 修改子通道的配置数据
- 程序猿也爱学英语
- java 最大值与第一个数调换,其他顺序不变
- Oracle 11G函数整理(层次函数)
- Struts2原理详解
- Excel VBA 入门(2) - Application常用方法
- 线性回归,偏差、方差权衡
- linux设备上的Onvif 实现13: 获取子通道的配置数据范围
- Makefile入门-多层目录