如何使用 c# 在 Visual Studio 上创建实时视频录制程序? [英] How do I create a live video recording program on Visual Studio using c#?

查看:73
本文介绍了如何使用 c# 在 Visual Studio 上创建实时视频录制程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为学校做一个项目,急需帮助.

I am currently doing a project for school and desperately in need of help.

项目的主要要点:

  • 我正在使用 3 台 Bosch Dinion IP 摄像机在讲座期间拍摄学生.我必须在 Visual Studio 上创建一个程序,使讲师能够在一个屏幕上查看所有 3 个摄像头,能够记录所有 3 个镜头,然后将它们保存在数据库中.
  • 关于博世的事情是,可供我在线参考的资料非常有限.

我已经参考了 Bosch 和 Ozeki 的 SDK,但我似乎无法弄清楚代码.我向一些人寻求帮助,他们告诉我使用 Onvif(我不确定如何使用它).

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!

推荐答案

ONVIF(开放网络视频接口论坛)是一个全球开放的行业论坛,其目标是促进基于 IP 的物理安全产品接口的全球开放标准的开发和使用——或者换句话说,为视频监控和其他物理安全领域内的 IP 产品如何相互通信制定标准.ONVIF 是一个由 Axis Communications、Bosch Security Systems 和 Sony 于 2008 年创立的组织.

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.

感谢维基百科^

首先,您应该尝试使用 OnvifDeviceManager(可在此链接)

At first, you should try to establish a connection to your camera using the OnvifDeviceManager (disponible at this link)

OnvifDeviceManager 是一种用于测试您的相机是否符合 ONVIF 标准的工具.

The OnvifDeviceManager is a tool made to test if your camera is ONVIF conformant.

如果您能够获得对摄像机的视频输入/ptz 控制,则意味着根据您的需要制作应用程序应该不难.

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) 与相机通信.

2) 显示/录制视频流

2) Showing/recording the video stream

在第 1 部分中,您希望能够向您的相机发送请求并从中获得响应.您可以使用本示例向您的一台相机发出第一个 ONVIF 请求.. 然后,您将希望通过您将发出的请求获取流 URL

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

在第 2 部分中,您想要获取从请求中获得的流链接并使用一些工具将其显示在某处...我个人使用 VLC.DOTNET 将 vlcControl 添加到我的 C# 表单并显示我的流相机.在这个链接上有帮助.

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!

这篇关于如何使用 c# 在 Visual Studio 上创建实时视频录制程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆