Hi Frank,
thank you for your answer.
the idea with the task manager was very helpful, I was not thinking of that.
I do not get the system behind this, but some of the videos do not unload after presentation, so the ffmpeg.exe-processes start to pile up over the duration of the experiment.
I found that if I include the line ‘del video._mov’ into my code, the code crashes and I get the error Message: 'AttributeError: ‘NoneType’ object has no attribute ‘reader’.
But then, I realized that the video.stop() function that I have in my code might actually be the reason the video is kept alive, or anyway, it might not make so much sense (if everything goes right, the video should stop anyway). So I got rid of that and now I can use the code line ‘del video._mov’, AND IT FINALLY WORKS!
Best wishes,
Juliane