Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Memory error and Opensesame

Hello,

I am creating an experiment in Opensesame (3.2.6) which I want to present 63 videos at 1 second each. The videos are (currently) all .avi files and their large is (around 459 KB ). Therefore, I have added them all to the experiment folder (instead of loading them directly into the file pool) and am using legacy as a backend. I want to define four blocks with two repetitions in each block. Each block consists of 63 videos. However, every time I run the experiment I can not complete it, because it has a memory problem. It shows me "memory error''. Additionally I use media_player_mpy and some videos get stuck when I run the experiment. For example, only the sound can be heard and the image remains stuck.Do you know what I can do about it? How can I solve the problem with the memory error?


Thank you,

Mia

Comments

  • Hi @MiaLa ,

    You're using a fairly old version of OpenSesame. As a first step, I would see if this issue still persists with the latest version (currently 3.3.9). It is likely an issue with memory not being freed up by one of the underlying libraries, and it's quite possible that this issue has been resolved in the meanwhile. Could you try that first, and then report back here?

    -- Sebastiaan

  • Hi @sebastiaan ,

    First of all, thank you very much for your help. I would like to inform you that I transferred the experiment to the latest version 3.3.9 and the problem now is that the visual part of the videos is stuck. In other words, only the sound is heard and the image remains stuck. What can I do about it?

  • Hi Mia,

    You could try to convert the videos to a different format. If that doesn't solve it, you will need to provide more information on how you are actually presenting the videos. Which item are you using? The media_player is somewhat outdated. You probably have better chances if you, use a coding approach.

    Good luck,

    Eduard

    Buy Me A Coffee

  • Hi @eduard

    I tried to change the file format but the problem was not fixed. I use the media_player in order to present the videos. How can I use a coding approach? I do not know how to do it. Can you help me?

    Thank you!

  • Hi Mia,

    Check out this part of the documentation:

    It describes how to use the Python package OpenCV2 to playback videos. OpenCV2 is actually a very powerful package with which you can do all kinds of image and video processing.

    If coding itself will be a problem, I recommend you try to get familiar with Python coding before (or while) you're diving into the video playback. If you have no idea about coding whatsoever, it will be hard for me to help you without having to write everything by myself. Also, you'll learn to help yourself in the future.

    Sebastiaan made a great series of Python tutorial youtube videos. I can strongly recommend them to you:

    hope this helps,

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.