摄像机端(而非客户端端)的ONVIF视频流 [英] ONVIF video stream on camera side (not client side)
问题描述
我正在尝试在Linux Fedora的摄像头(而不是客户端)上编写ONVIF视频流. 我已经安装了WSDL2H并运行:
I am trying to write an ONVIF video stream at the camera side on Linux Fedora (not the client side). I already installed the WSDL2H and ran:
wsdl2h -co onvif.h http://www.onvif.org/onvif/ver10/device/wsdl
此命令构建了onvif.h
This command built the onvif.h
我在Linux上编写了UDP,HTTP,TCP服务器.
I wrote a UDP, HTTP, TCP server on my Linux.
在我的UDP服务器程序中,我从ONVIF设备测试工具捕获了Hello消息. 我应该从这个阶段/这一点着手吗? 我想知道如何用C编写答案"功能?
In my UDP server program I catch the Hello message from the ONVIF Device Test Tool. How should I proceed from this stage/point? I would like to know how to write the "answer" function in C?
推荐答案
首先,您需要使用 gsoap之类的肥皂工具.
使用gsoap,您必须实现WS-Discovery
(您好消息是WS-Discovery之一)
At first you need soap tool like as gsoap.
Using gsoap you have to implement WS-Discovery
(Hello message is the one of the WS-Discovery)
在 gsoap常见问题解答中,您可以找到有用的信息.
同样在gsop文档中,有有关 WS-Discovery 一个>
In the gsoap FAQ, You can find useful information.
Also in the gsop documents, there is a information for WS-Discovery
这篇关于摄像机端(而非客户端端)的ONVIF视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!