Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 10 Camera frame server, identify actual app using webcam

On windows 10, apps that need access to webcam, communicate with frame server which is a service that runs under svchost.

I filter out the webcam stream and the process id i get is of svchost. I want to identify the actual process that is using the webcam.

Is there a definite way to identify programmatically what is the actual app that is using the webcam? I have looked into enumerating handles of processes(have to deal with NtQueryObject() hang as well), but i am looking for a better definite solution.

like image 242
user3819404 Avatar asked Oct 31 '18 10:10

user3819404


People also ask

How do I change what camera my camera app uses Windows 10?

Switch to a different cameraOpen the Camera app. Swipe in from the bottom edge to see the app commands. If you're using a mouse, right-click within the app. Select Change camera.

Why does my camera say it's being used by another application?

One of the reasons why you're getting this error message when trying to use the camera is closing your Windows 10 operating system without closing the application you used the camera on. In this case, the camera is still running in the background registries of Windows 10.

What is the Windows camera frame server?

Windows Camera Frame Server (FrameServer) Service Defaults in Windows 10. Enables multiple clients to access video frames from camera devices.


1 Answers

I doubt you can identify the applications capturing video using frame server (well, actually the same applies to those applications not using frame server in current or older versions of Windows).

Microsoft added frame server to insert a proxy between video capture applications and actual drivers implementing such capture. Even though the declared intention is to share video camera device between applications, I don't think it is operational and frame server is at all remains almost undocumented. My personal understanding is that Microsoft needed to hook in in the convenient way to enable access to video cameras for their Windows Hello technology and so they tee'd the media pipeline. No further steps were done to offer any new options to user applications.

Minimalistic desktop video capture applications trying to share a webcam still receive a failure suggesting that sharing is impossible for general purpose applications (I guess Microsoft's like Hello are likely to have an undocumented backdoor in frame server for camera sharing purposes, or alternatively sharing is enabled for specific class of clients such as using Capture Engine API or alike):

enter image description here

That is, there is no API to enumerate frame server clients, and overall application are not even aware of whether they are talking to real driver or frame server proxy.

I think that attempts to obtain related information indirectly, such as by checking which applications use video related modules, is not reliable and even more confusing in case of multiple video capture devices, including virtual ones.

like image 188
Roman R. Avatar answered Oct 25 '22 02:10

Roman R.