简体   繁体   English

无法创建Windows Media编码器库

[英]Windows media encoder Library cannnot be created

I have an application that records video from webcam. 我有一个可以录制网络摄像头视频的应用程序。 It works on my 64-bit window, but this doesn't work in 32-bit version. 它可以在我的64位窗口上运行,但是在32位版本中则无法运行。

Actually I just try to initiate an WME Object from this below statement. 实际上,我只是尝试从以下声明中启动WME对象。 But it seems not work. 但这似乎行不通。 When I try to do debugging, it cannot detect any exceptions and it just terminate the debugging process. 当我尝试进行调试时,它无法检测到任何异常,而只是终止了调试过程。

WMEncoder Encoder = new WMEncoder();

So I am confuse now, is the problem caused by the version that I used does not support for window 32bit? 所以我现在感到困惑,是我使用的版本不支持32bit窗口引起的问题吗?

any helps would be appreciated. 任何帮助将不胜感激。 thanks 谢谢

Try targeting x86 instead of Any CPU in the properties of your .NET project. 尝试在.NET项目的属性中定位x86而不是Any CPU。 IIRC Windows Media Encoder is a native 32 bit component. IIRC Windows Media Encoder是本机32位组件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM