Howdy, Stranger!

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

Supported by

[open] Video files not playing in Opensesame 0.27

joejoe
edited November 2013 in OpenSesame

I'm running Opensesame 0.27 on my Macbook pro with Mountain Lion OS. I'm using the version without the psychopy back end. I can Run the experiment, but once I get to the point when the videos should play the program crashes with the following error:

Integer argument expected, got float. 

I'm not familiar with coding too much and would prefer to do this through the GUI. If that not possible I could try to code, but I'm just not very good at it.

Can anyone assist me with this please?

Comments

  • edited 12:37PM

    Hi Joe,

    Could you provide some more details, such as how you specify which video should be played. Please also include the full error message.

    Cheers,
    Sebastiaan

  • joejoe
    edited 12:37PM

    Hi Sebastian,

    I just have a video .mov file in the video player file pool. Then I click Run and the experiment starts with the text I have specified in the initial sketchpad item. I have the video player item under the loop sequence. After I run the experiment it and it crashes the full error message is:

    An unexpected error occurred, which was not caught by OpenSesame. This should not happen! Message: integer argument expected, got float

    image

    image

    I tried to upload two screenshots. Not sure if they went through.

  • edited 12:37PM

    Hi Joe,

    There is a bug in the video_player plug-in that triggers an error when not running in fullscreen, i.e. when 'Resize to fit screen' is set to 'no'. If you set this to 'yes', the video should play again. I filed an issue on this, but until this is fixed I'm afraid that this functionality is not available. Is this important for your experiment?

    Also, for future reference, there is (usually) a more elaborate error message in the debug window, which can be very helpful for debugging (and for people who try to help you on the forum!). See:

    Cheers!
    Sebastiaan

  • joejoe
    edited 12:37PM

    Hi Sebastian,

    Sorry for the really late response. I had given up on Opensesame, but now I am trying to get this working again. When I set Resize Screen to Yes i get another error when playing video files. The error i receive is: object has no attribute 'surface'. i have tried avi, mov, mpg, mp4 video files and I get the same error message. Do you have any suggestions?

  • joejoe
    edited February 2014

    the debug windows says the following:

    File "/usr/share/opensesame/plugins/video_player/video_player.py", line 141, in run
        self.experiment.surface.blit(pg_img, (self._x, self._y))
    AttributeError: 'experiment' object has no attribute 'surface'
    
  • edited February 2014

    Hi Joe,

    Right, the video_player plug-in requires the legacy back-end, because it relies on certain back-end specific functionality. So switching the back-end should solve this issue.

    If you find the video_player plug-in a bit unsatisfactory, which I can understand, you could also try the media_player_gst plug-in, developed by @dschreij. You can find installation instructions here:

    Cheers!
    Sebastiaan

  • edited 12:37PM

    Hi Joe,

    you can also have a look at the gstreamer variant of the media_player plugin. It has a built-in looping option, and also allows you to draw stuff on top (or below) a video frame. If you don't manage to do this by yourself, let me know and I may be able to help you with this.

    Good luck

    Buy Me A Coffee

Sign In or Register to comment.