I am currently doing a project for school and desperately in need of help.
The main gist of the project:
- I am using 3 Bosch Dinion IP Cameras to film students during a lecture. I have to create a program on Visual Studio that enables the lecturer to view all 3 cameras on one screen, able to record all 3 footages and then save them in a database afterwards.
- The thing about Bosch is that there is very limited material for me to refer to online.
I have already referred to SDKs from Bosch and Ozeki but I can't seem to figure out the codes. I sought help from a few people and they told me to use Onvif (I am unsure how to use it).
I would greatly appreciate all of the help I could get, and if possible explained in simple terms. Thank you so much!
You can view and record the Bosch Dinion camera with the TVideoGrabber SDK and this sample code:
VideoGrabber1.VideoSource = vs_IPCamera
VideoGrabber1.IPCameraURL = "rtsp://admin:password@192.168.1.34/rtsp_tunnel?h26x=4&line=1&inst=1"
VideoGrabber1.RecordingMethod = rm_MP4
VideoGrabber1.RecordingFileName = "c:\folder\filename.mp4"
VideoGrabber1.StartRecording()
ONVIF (Open Network Video Interface Forum) is a global and open industry forum with the goal of facilitating the development and use of a global open standard for the interface of physical IP-based security products – or, in other words, to create a standard for how IP products within video surveillance and other physical security areas can communicate with each other. ONVIF is an organization started in 2008 by Axis Communications, Bosch Security Systems and Sony.
Thanks wikipedia^
At first, you should try to establish a connection to your camera using the OnvifDeviceManager (disponible at this link)
The OnvifDeviceManager is a tool made to test if your camera is ONVIF conformant.
If you're able to get a video feed/ptz control of your camera, it means it shouldn't be that hard to make an app for your needs.
There's two part to the app you want to make:
1) Communicating to the camera.
2) Showing/recording the video stream
In part 1 you want to be able to send request to your camera and get responses from it. You could use this example to make your first ONVIF request to one of your camera... You'll then want to get the stream URL with a request you'll make
In part 2 you want to take the streaming link you'll get from your request and show it somewhere with some tools... I personally used VLC.DOTNET to add a vlcControl to my C# form and show the stream of my camera. There's help to do so on this link.
Good luck, have fun developing your app!
来源:https://stackoverflow.com/questions/50732384/how-do-i-create-a-live-video-recording-program-on-visual-studio-using-c