Using video to record participant responses

Hi. I’m planning an experiment in which I want to record participants’ facial expressions while they are viewing short (5 sec) videos. I understand from a recent post that recording video is not possible with Psychopy in online studies. This will be a lab study requiring no online access, using an HD camera. Wondering if this is possible with Psychopy as currently running. Thanks for any help you can provide.

This might be a starting point.

https://www.psychopy.org/recipes/webcam.html

Many thanks.