Video and Audio lag in psychopy when running on pavlovia

Solution: Resolved Video Lag Issue on Pavlovia

The video lag issue was caused by how the video files were encoded. Initially, we tried using various advanced encoding settings, but the solution turned out to be much simpler than expected.

Here’s what worked:

  1. Open the video file in VLC Media Player.
  2. Go to Media > Convert/Save.
  3. Choose Convert, and in the settings, select MP4 as the output format without tweaking any additional encoding settings.
  4. Save and use the newly converted video file in the experiment.

This straightforward re-encoding process resolved all lag issues, and the videos now play smoothly in Pavlovia. Hopefully, this helps anyone else facing similar problems!