Windows media encoder Library cannnot be created

448 Views Asked by At

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.

Actually I just try to initiate an WME Object from this below statement. 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?

any helps would be appreciated. thanks

1

There are 1 best solutions below

0
On

Try targeting x86 instead of Any CPU in the properties of your .NET project. IIRC Windows Media Encoder is a native 32 bit component.