如何流用C#网络摄像头视频? [英] How can I stream webcam video with C#?

查看:139
本文介绍了如何流用C#网络摄像头视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想作一个简单的服务器应用程序,人们可以使用基于浏览器的客户端(我将在后面作)观看流媒体视频连接。我想用C#。

I want to make a simple server application where people can connect using a browser-based client (which I will make later) to watch streaming video. And I want to use C#.

什么我需要通过一个摄像头捕捉到的视频或图像的快速和送他们通过网络?

What do I need to capture video or rapid images through a webcam and send them over the network?

推荐答案

如果你想组件在一个盒子里捕获/流光,还有如其他人所说的几个在那里。

If you want a "capture/streamer in a box" component, there are several out there as others have mentioned.

如果你想踏踏实实地在它所有的低级别的控制,你需要使用的DirectShow作为thealliedhacker指出。在C#中使用DirectShow的最好的办法就是通过 DirectShow.Net 库 - 它包装所有的DirectShow COM API,并包含了许多有用的快捷键功能给你。

If you want to get down to the low-level control over it all, you'll need to use DirectShow as thealliedhacker points out. The best way to use DirectShow in C# is through the DirectShow.Net library - it wraps all of the DirectShow COM APIs and includes many useful shortcut functions for you.

在除了捕获和流媒体,还可以做记录,音频和视频格式转换,音视频实时滤镜,和一大堆东西。

In addition to capturing and streaming, you can also do recording, audio and video format conversions, audio and video live filters, and a whole lot of stuff.

微软称DirectShow是要走了,但他们还没有释放这是否DirectShow中都提供了新的库或API。我猜想很多,他们都发布在引擎盖下仍DirectShow的最新的东西。由于其在微软的地位,没有一大堆的就可以了书籍或引用MSDN比其他什么你可以找到在论坛上。去年,当我们开始使用它的一个项目,关于这个问题的最好的书是绝版,去为大约350 $的使用拷贝!

Microsoft claims DirectShow is going away, but they have yet to release a new library or API that does everything that DirectShow provides. I suspect many of the latest things they have released are still DirectShow under the hood. Because of its status at Microsoft, there aren't a whole lot of books or references on it other than MSDN and what you can find on forums. Last year when we started a project using it, the best book on the subject was out of print and going for around $350 for a used copy!

下面是本书: 编程Microsoft DirectShow中 。你可以得到一个新的副本(截至此公告的时间)为$ 299或亚马逊$ 149使用的复印!

Here is the book: Programming Microsoft DirectShow. You can get a new copy (as of the time of this posting) for $299 or a used copy for $149 at Amazon!

这篇关于如何流用C#网络摄像头视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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