Video recording problem

Hi,

I am using OS win10 and Psychopy 2021.2.1. I am using moving gratings as the visual stimuli to test the visual function of the rat. As a response, the rat will move the head with the same direction in which the gratings move. I will need to record the video of this rat analyze the visual function. But How could I record the video simultaneously when the stimuli is running, this way is more precise for video recording.

Then I would not need to edit and cut video if I use another video recording software e.g. OBS outside Psychopy. In this way, I need to decide personally at which time point to cut the video and would not so precisely.

Any ideas?? Many Thanks in advance!

Jing