VFW in C#
-
Is it possible to call upon video for windows VFW in C#? Is there any existing code for compressing an AVI in C#? Thanks for any help or links you can provide.
-
Is it possible to call upon video for windows VFW in C#? Is there any existing code for compressing an AVI in C#? Thanks for any help or links you can provide.
Anything you do with WIN32 and C/C++ is possible in C# thanks to interop. When you know the method signature, you just need to declare it in your code with a
[DllImport("dllname")]
attribute like in::SendMessage
:[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam);Even more interesting is that in your case there are COM components. And the VS.NET IDE automatically imports their type-library, wrap interfaces and makes them look like any namespace to you. That's what you get for instance when you need integration with Internet Explorer, MS Office, ... Now about DirectShow itself, this SDK has both COM Components and simple low-level APIs. Just help yourself. Below is 2 CP articles about it : DirectShow media player[^] DirectShow.NET[^] You've got an introductory article about DirectShow in MSDN Mag - july 2002[^].
if you start putting in too manay features, it no longer remains useful for beginners quote in a CP article comment, shiraz baig
-
Is it possible to call upon video for windows VFW in C#? Is there any existing code for compressing an AVI in C#? Thanks for any help or links you can provide.
Take a look on DirectShow.NET. -- Nice greets, Daniel.