Psychtoolbox Demos / Tutorials

I also think playing video would be a great addition. There are a couple of tricks to playing video flexibly:

  1. Using with other animated stimuli – by default video playback at a framerate other than the fps of the display causes PTB to wait for the next frame. So if you also want to animate anything else at the fps of the display that is a problem. One solution is to buffer each frame, if the next frame is not ready than use the previous one.
  2. Transparent video – it is nice if the video can blend with the background, and that is possible using this trick: Playing Transparent Videos via PTB

I would be happy to contribute a demo demonstrating these two tweaks if it would help. Your demos are so useful to many new PTB users, thank you for all your work on this! :star_struck:

1 Like