c# wia摄像_使用WIA捕获网络摄像机的视频-不可能吗?

c# wia摄像

c# wia摄像

My Coding4Fun article using a $4 webcam would capture single frames using WIA, the WIA Automation Layer and upload them to a blog.

我在Coding4Fun上使用$ 4网络摄像头撰写的文章将使用WIA ( WIA自动化层)捕获单个帧并将其上传到博客。

However, I get 3 emails a week asking how to capture video using WIA. I don't think it's possible. WIA supports "TakePicture" but that operation isn't fast enough to get more than a few frames a second, and then even only in JPEG format.

但是,我每周收到3封电子邮件,询问如何使用WIA捕获视频。 我认为不可能。 WIA支持“ TakePicture”,但该操作的速度不足以每秒获得多于几帧,甚至仅以JPEG格式。

WIA does support Video Overlay though so you can see what you're not capturing, so that's nice. ;)

WIA确实支持视频叠加,因此您可以查看未捕获的内容,这很好。 ;)

Seriously, though, WIA isn't the way, it appears that DirectShow likely is. This .NET Library wrapper around the notoriously difficult DirectShow APIs says it supports "capture from video capture devices to WMV files." It appears that this library also exposes that notorious hardness, so take a breath before you dive in. It's hardcore.

严重的是,虽然WIA并非可行,但DirectShow似乎是这样。 这个围绕着众所周知的困难的DirectShow API的.NET库包装表示,它支持“从视频捕获设备到WMV文件的捕获”。 该库似乎也暴露出了臭名昭著的硬度,因此在潜入之前请屏住呼吸。它是核心。

Other possibilities are the CAPTURENET Sample that might do the trick. Also Kristoffer Vinther (a master sorter at least) has a library that looks pretty capable.

其他可能的方法可能就是CAPTURENET Sample 。 另外,Kristoffer Vinther(至少是一个主要的分拣员)拥有一个看起来很强大的库。

Aside: Yes, that's a signed 12" Vinyl of Bobby McFerrin's Simple Pleasures album, framed on my wall just below Miles Davis. I used to look for good echos for acappella on campus, but I am nothing compared to my buddy from Vertigo Software (and high school) Matt Hempey and the several acappella albums he has under his belt.

旁白:是的,那是Bobby McFerrin的Simple Pleasures专辑签名12英寸乙烯基,裱在我位于Miles Davis下方的墙上。我过去一直在寻找校园中无伴奏伴奏的良好回声,但与Vertigo Software(和高中) Matt Hempey和他拥有的几张无伴奏专辑。

翻译自: https://www.hanselman.com/blog/capturing-video-a-web-camera-using-wia-not-possible

c# wia摄像

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值