在 Windows 8 上获取 DirectShow 示例 [英] Getting DirectShow Samples on Windows 8

查看:25
本文介绍了在 Windows 8 上获取 DirectShow 示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为 Windows 8 创建一个虚拟网络摄像头,我有两个选择:DirectShow 或 Microsoft Media Foundation.环顾四周后,我发现 DirectShow 有更多的例子,甚至在 Stackoverflow 上,它也比 MMF 得到推荐.所以我想从一些示例开始,为此我需要 strmbase.dll,我需要从 DirectShow 示例的 BaseClass 示例中自己编译它.

I want to create a Virtual Webcam for Windows 8 and I have two choices: DirectShow or Microsoft Media Foundation. After some looking around I found out that DirectShow has much more exmples and even here on Stackoverflow it gets recommended over MMF. So I want to get started with some examples and for this I need strmbase.dll, which I need to compile myself from the BaseClass sample of the DirectShow samples.

但是在 Windows 8 上获取样本似乎是不可能的.根据 this 页面它应该是 Windows 8 SDK 的一部分,但它已完全安装,并且在我的计算机上任何地方都不存在名为 baseclass 的文件夹.它也是 Windows 7 sdk 的一部分,但它拒绝安装.我还读到它应该是 DirectX SDK 的一部分,但根据 MS 的说法,它已包含在 Windows 8 SDK 中,因此 DirectX SDK 拒绝安装.

But getting the samples seems freaking impossible on Windows 8. According to this page it should be a part of Windows 8 SDK, but this is fully installed and no folder by the name of baseclass exists anywhere on my computer. It is also part of Windows 7 sdk, but this refuses to install. I also read that it should be part of DirectX SDK, but this has, according to MS, been included into Windows 8 SDK, and thus the DirectX SDK refuses to install.

如何在 Windows 8 上安装 DirectShow 示例?

How do I install the DirectShow samples on Windows 8?

推荐答案

我得到了它们,但这是通过一个肮脏的把戏:

I got them, but it was through a dirty trick:

下载 Win 7 SDK ISO,解压它,进入 WinSDKSamples_amd64 文件夹并运行安装程序.所有 Win 7 SDK 示例现在都将安装到 C:Program FilesMicrosoft SDKsWindowsv7.1.

Download the Win 7 SDK ISO, extract it, go into the WinSDKSamples_amd64 folder and run the installer. All Win 7 SDK samples will now be installed to C:Program FilesMicrosoft SDKsWindowsv7.1.

这篇关于在 Windows 8 上获取 DirectShow 示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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