Webcam synchronization


I built an experiment in which participants watch video excerpts and rate their feeling on a 1 to 10 scale. The videos are presented in blocks, randomized using a loop.
While participants are watching, their webcam recordings are captured within the Python script of the PsychoPy experiment. These videos recordings are then analyzed using OpenFace.

Here’s my issue: when I compare the ‘videoTime’ and the start/stop times in PsychoPy, I notice that the duration in PsychoPy is longer than the ‘videoTime.’ I am confident that my video time covers the entire session in PsychoPy (with slight gaps before and after the launch of the videos in PsychoPy to ensure that my webcam is running). So, the problem seems to be in PsychoPy or within my PsychoPy script regarding the duration. What can I do to resolve this issue?

Thank you for your help ! :hugs:

Ps : I have to apologise for my english, I’m french !