Issue with video lag and audio

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2021.2.3

I am trying to run an experiment with a video presented next to a task. However, when the video plays it lags. The video runs fine on the computer alone, but is dropping frames when played in the experiment. As well, the audio seems to restart at the beginning of each trial but the video will continue without restarting.

I have tried altering just about every setting in the movie stimulus category. It is currently backending through moviepy, and although vlc is downloaded to the computer it will not run the video (returns ‘VlcMovieStim’ object has no attribute ‘_player’).

I received this message for the frames being dropped

20.9289 WARNING 0.01924156676977873: Video catchup needed, advancing self._nextFrameT from 0.0 to 0.008333333333333333
20.9600 WARNING 0.05026166676543653: Video catchup needed, advancing self._nextFrameT from 0.016666666666666666 to 0.025
20.9600 WARNING 0.05029106675647199: Video catchup needed, advancing self._nextFrameT from 0.025 to 0.03333333333333333
20.9600 WARNING 0.05030416673980653: Video catchup needed, advancing self._nextFrameT from 0.03333333333333333 to 0.041666666666666664
21.0109 WARNING 0.1012054665479809: Video catchup needed, advancing self._nextFrameT from 0.049999999999999996 to 0.05833333333333333
21.0109 WARNING 0.10123576666228473: Video catchup needed, advancing self._nextFrameT from 0.05833333333333333 to 0.06666666666666667
21.0109 WARNING 0.10124926664866507: Video catchup needed, advancing self._nextFrameT from 0.06666666666666667 to 0.075
21.0110 WARNING 0.1012641666457057: Video catchup needed, advancing self._nextFrameT from 0.075 to 0.08333333333333333
21.0110 WARNING 0.10127536673098803: Video catchup needed, advancing self._nextFrameT from 0.08333333333333333 to 0.09166666666666666
21.0765 WARNING 0.1667958665639162: Video catchup needed, advancing self._nextFrameT from 0.09999999999999999 to 0.10833333333333332
21.0765 WARNING Max reportNDroppedFrames reached, will not log any more dropped frames

I’m wondering how to run the video without the lag and with the audio playing consistently throughout. Any insights would be much appreciated!

Hi There,

Please may you try updating your psychopy version? version 2022 onwards should also have included ffpyplayer as a backend - with the intention of helping solves reported issues of lag!

thanks!
Becca

Hi Becca!

This seems to solve the lag issue, but now the experiment is crashing when the first response is entered. This is the error message that is being shown:

OSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted: (‘’, 9034)