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 6:15PM

    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 6:15PM

    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 6:15PM

    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 6:15PM

    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 6:15PM

    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.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games