DirectShow-Microsoft LifeCam Studio-丢失RBG24格式 [英] DirectShow - Microsoft LifeCam Studio - RBG24 format lost

查看:129
本文介绍了DirectShow-Microsoft LifeCam Studio-丢失RBG24格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#中使用DirectShowNet。我一直在开发一个与网络摄像头一起使用的应用程序,以显示视频,更改分辨率和拍照(静止图钉或来自捕获流)。我已经在2台不同的计算机(Win 7 64位和Win 8 64位)上以及在这些计算机上的内部网络摄像头(它们是笔记本电脑)和另外2个网络摄像头(罗技C920和Microsoft LifeCam Studio)上对其进行了测试。 / p>

一天,LifeCam Studio停止在我的Win 8机器上工作。使用GraphEditPlus,检查Capture引脚的VideoFormats,我注意到,不再神秘地列出RGB24格式。我已编写应用程序以仅使用24位颜色格式。仅列出YUY2 16位格式。如果我在Win 7机器上检查相同的网络摄像头,则会看到同时列出YUY2和RGB24格式。以前,我的Win 8计算机确实列出了这两种格式。



问题是,是什么会导致DirectShow更改Capture引脚的VideoFormat列表? 到目前为止,我已经注意到更改驱动程序版本对于网络摄像头在支持的引脚方面有很大的不同,但是我还没有看到它们会像这样改变视频格式。据我所知,我尚未在两台计算机上更新网络摄像头的驱动程序。



这是两台计算机的驱动程序版本。






LifeCam Studio-Windows 7-64位





LifeCam Studio-Windows 8-64位



解决方案

我想出了如何找回格式。我进入设备管理器,找到了 Microsoft LifeCam Studio设备。我将其卸载,然后单击复选框也删除该设备的驱动程序。之后,我刷新了设备管理器,找到该设备后,其名称为Microsoft®LifeCam Studio(TM),但随后更改为 Microsoft LifeCam Studio。这使我意识到它会自动更新驱动程序。



正如您在上面的Win 8屏幕截图中注意到的那样,启用了回滚驱动程序按钮。这意味着驱动程序已在某个时刻进行了更新。我继续回滚该驱动程序,将其名称更改为Microsoft®LifeCam Studio(TM)。



现在,在GraphEditPlus中,该设备列出了YUY2,MJPG (Capture)引脚(24位)和M420(12位)视频格式。这似乎是我过去的经历。由于可以使用24位格式,因此它现在可以与我的应用程序正常工作。



总体而言, Microsoft在制作设备时删除了设备的某些DirectShow功能。 Windows 8驱动程序。该旧驱动程序来自2006年,可与Windows 8完美兼容。我假设它是从旧Windows操作系统继承而来的一个内置操作系统。



希望其他Windows上的LifeCam Studio提供更多视频格式的工作驱动程序的屏幕截图。






LifeCam Studio -Windows 8-64位-原始驱动程序




I'm using DirectShowNet in C#. I've been developing an application to work with webcams to display video, change resolution, and take pictures (either Still pin or from the Capture stream). I've been testing it on 2 different machines (Win 7 64-bit & Win 8 64-bit) and with the internal webcams on those machines (they are laptops) and 2 other webcams, Logitech C920 and Microsoft LifeCam Studio.

One day, the LifeCam Studio stopped working on my Win 8 machine. Using GraphEditPlus, checking the VideoFormats for the Capture pin, I notice that, mysteriously, the RGB24 formats are no longer listed. I have written my application to use only 24-bit color format. Only YUY2 16-bit formats are listed. If I check the same webcam on my Win 7 machine, I see both the YUY2 and the RGB24 formats being listed. Previously, my Win 8 machine did list both of these formats.

The question is, what could cause DirectShow to change the list of VideoFormats for the Capture pin? So far, I've noticed that changing driver versions makes a huge difference for webcams in what pins they support, but I haven't seen them change video formats like this. As far as I know, I have not updated the drivers for the webcam on either machine.

Here are the driver versions for both machines.


LifeCam Studio - Windows 7 - 64-bit

LifeCam Studio - Windows 8 - 64-bit

解决方案

I figured out how to get the formats back. I went into device manager and found the "Microsoft LifeCam Studio" device. I uninstalled it and hit the checkbox to "Also delete the driver for this device". After that, I refreshed device manager, and when the device was found, it had the name "Microsoft® LifeCam Studio(TM)", but then changed to "Microsoft LifeCam Studio". That made me realize that it automatically updated the driver.

As you notice in my Win 8 screenshot above, the button "Roll Back Driver" is enabled. This means that the driver was updated at some point. I proceeded to roll back the driver, which changed the name back to "Microsoft® LifeCam Studio(TM)".

Now, in GraphEditPlus, the device lists YUY2, MJPG (24-bit), and M420 (12-bit) video formats for the Capture pin. This seems to be what I have had in the past. It works properly with my application now since a 24-bit format is available.

Overall, Microsoft removed some of the DirectShow functionality of the device when they made the Windows 8 driver. This old driver is from 2006 and works fantastically with Windows 8. I'm assuming it is one built into the OS that was carryover from old Windows OS's.

Here is a screenshot of the working driver for others that would like more video formats available for the LifeCam Studio in Windows 8.


LifeCam Studio - Windows 8 - 64-bit - Original Driver

这篇关于DirectShow-Microsoft LifeCam Studio-丢失RBG24格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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