How do I create a live video recording program on Visual Studio using c#?

久未见 提交于 2019-12-02 13:21:32

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!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!