Closed ombh01 closed 2 years ago
Workaround is to hardcode the webcam name like this
WebCamSource(web_cam_format="dshow", web_cam_id="video=HD WebCam", options={'framerate': '10'})
Device names can be listed using ffmpeg via (see http://4youngpadawans.com/stream-camera-video-and-audio-with-ffmpeg/)
ffmpeg -list_devices true -f dshow -i dummy
Solution
It seems we need to add a C++ extension that reads the device names for Windows;
In the future, we should consider to unify all video sources. Basically, all use the pyav backend... so we could have a basic pyav video source. Inheriting from this one, we can have a video file source, a webcam source, screen capture source, and maybe web streaming sources.
Check best settings for Windows Webcam