Sascha-L/WPF-MediaKit

WPF-MediaKit not working with webcam

Closed this issue · 5 comments

I'm trying to run a Test Application from the repo to see the output of a webcam. The program works as expected on 2 of 3 of my computers (all of them on Windows 10). I installed K-Lite codec pack but that didn't seem to help. I run GraphStudioNext, inserted video source and video renderer and it displays the camera correctly.

Are there any further steps I can take to debug the problem?

Before reporting an issue, check and answer the following points if they are valid for your case:

  • Does the problem emerge on different HW, OS versions? Describe your HW configuration.
    HP Laptop with Windows 10 Home, dual graphics card (Intel HD 630, Geforce GTX 1050), built-in camera and Logitech HD Pro Webcam C920.
  • Is the problem caused by the DirectShow codecs or the player itself?
    Not sure
    • Try the clean install of DirectShow codecs.
      Tried it, didn't seem to help
    • Try another DirectShow player (e.g. MPC-HC).
      Possibly not relevant?
    • Use GraphStudioNext to see, what codecs are used for your video.
      Possibly not relevant?
  • Describe the video format. Consider providing a HTTP link to download a video which causes the problem.
    Direct connection to webcam

Any help would be highly appreciated

Do not understand what's the problem: you have 3 machines, the problem is on one machine only? Is the problem with the built-in camera or Logitech HD Pro Webcam C920?

@xmedeko Yes, the problem is on one machine only. It doesn't show camera feed for any of those two cameras (both built-in camera and Logitech C920).

Can you play a video with the Test app?

Also, do you see any error from debug trace logs?

Sorry for the late reply. Unfortunately the system I've been experiencing this problem on has been wiped and I cannot reproduce it anymore. I'm closing this issue.

I am experiencing a similar issue. I am running my app on a Bartec tablet (unsure of the exact model or specs) and the screen that is supposed to show the webcam instead shows nothing. This works on other devices and has never been reported as an issue before now. I was able to reproduce this issue by running my computer's camera application in the background and opening my app's camera screen. I know this issue happens because my webcam can only be used by one process at a time. What I can't find is any form of indication or exception that is explaining to me why the video isn't appearing on this page of my app. Any ideas?