Search code examples
c#.net-2.0webcamdirectshow.netwia

DirectShow.Net v2.1 show black screen with Logitech C920


I am using DirectShow.Net v2.1 to preview the webcam's image.

It works ok, but on some newer webcams like Logitech C920, which is full HD 1080p, it shows black screen instead of webcam's image.

My project is in C# WinForms and compiled with .Net v2.0 I want to run my project on Windows XP / 7 / 8 / 8.1

Can anyone help me how to fix it?


Solution

  • Replacing DirectShow.Net with WIA using this sample is the solution.

    WIA meets the requirements better because:

    1. Not focusing on Windows Vista, which does not seem to capture webcam in its WIA.
    2. Preview does not need to modify, take a picture, take a video of it.
    3. It looks much more easier to use.
    4. The project will be very lighter.
    5. Works with all cameras.
    6. Gives you built-in camera selection by OS.