Videos become slow with 'frame by frame' inline script
in OpenSesame
Hi!
I have a small problem with my videos: when I present them with the 'frame by frame' inline script they become very slow.
I already implemented this script with Opensesame 3 and everything worked well; with Opensesame 4, the same script, generates a slower output.
Here is my code:
Does anyone have any suggestion?
Thank you!
Sara
Comments
Hi Sara,
I have no solution, but a suggestion how you can debug. Try to time each operation in the loop to find out where the delay is.Opensesame's
clock.time()will help with it. Other than that, it might help to separate reading and manipulating from playing back the video, so essentially two loops. In the first you collect the frames, in the second you play them. Like that you can move the first loop to somewhere in your experiment, where the slow reading of it is no problem (I assume the video manipulation/capture is taking much time. If this is not the case, two loops won't help you)Eduard