DFKI-Interactive-Machine-Learning / multisensor-pipeline

The core library of the DFKI multisensor pipeline framework.
https://dfki-interactive-machine-learning.github.io/multisensor-pipeline/
Other
9 stars 8 forks source link

Webcam Windows #65

Closed ombh01 closed 2 years ago

ombh01 commented 2 years ago

Check best settings for Windows Webcam

MichaelBarz commented 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

MichaelBarz commented 2 years ago

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.