Howdy, Stranger!

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

Supported by

Movie (media_player_mpy) not playing

hi,

I'm new to Opensesame and am trying to play a movie file (1-2 second duration).

I'm using OpenSesame 3.3.6 on a Mac OS X 10.15.

I have tried this with an AVI file and a mp4 file both with the same results.

I can't work out if I need to set the 'Call custom Python code' to "on keypress" or to "after every frame".

If I set this to "on keypress" I can run the task and at the point of the sequence where the movie should be I get a brief flash of a black box, and then the sequence continues.

If however I set the Call custon pythod code to "after every frame", as soon as the sequence reaches the movie, i get a black box image and then the task crashes with the following message:

(actually, I got a much longer and different error message when trying this with an mpeg file)

I have just found a discussion post that indicated I might need to install a plugin (the folder at the below location was empty, so I've now manually downloaded the ffmpeg.os file and put in this folder:

/Users/<your_username>/Library/Application Support/imageio/ffmpeg

Any help would be much appreciated!

Robin

Comments

  • Hi @rlaycock ,


    I'm tagging @Daniel ; Daniel, could you perhaps have a look at this?


    Cheers,


    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • Hi both,

    I tried to reproduce this, but I do not get this error. I do think the problem description is incomplete though, because you do not directly mention it, but I distill from your description that you are trying to run custom python code in the movie player? I tried to do this too (just a simple print() statement) and this still worked, so you must be doing something else in the event handling that causes this error. If the movies are small, can you share this experiment so I can try to run it?

    Buy Me A Coffee

  • Hi @Daniel,

    many thanks for having a look. You are correct that i also have some inline scripts in the task (to run some triggers), though not linked to the movie itself.

    I've attached my task - please let me know if I need to send anything else to allow you to test this. Thanks so much!

    Robin


  • Hi @rlaycock,

    Thanks for sending the experiment. I have to find some time to check this out, but I will hopefully be able to do so this weekend.

    Buy Me A Coffee

  • HI @Daniel, I've been a bit busy but just returning to this. I think you might've been very busy also :)

    I wonder if it's possible to get these videos working?

    Thanks!

  • Hi @rlaycock,

    Sadly I haven't been able to look at it yet. I'm in a really busy period at the moment. Hope to find some time soon!

    Buy Me A Coffee

  • Hi @rlaycock, I just came across this exact same error message when trying to run a video and found the solution is as simple as setting the Call custom Python code to "on keypress" in addition to setting the backend to legacy. Hope that helps you out!

    Cela

  • Hi Cela,

    Thanks for sharing!

    Buy Me A Coffee

  • Hi @cela thanks for the message. Yea when I change to "on keypress" I no longer get the error message and the task runs fine.. except that instead of playing the video it just flashes maybe 1 frame of the video box (it's all black) and then keeps going. So no video plays!

    I've tried a couple of video file types, but maybe it is a problem with my video rather than OS..

  • Hi @Daniel

    Because of other commitments this project has been on hold, but I'm now looking to see if i can get my videos to play. Is it possible to take a look some time soon?

    Many thanks.

  • Hi, I'm just updating this discussion, just in case there are some other solutions I'm not aware of.

    I've been able to use Expyriment as the backend, and then setting the call custom Python code to "on keypress", and my movies play fine (using media_player_mpy). This also worked with Legacy as the backend as mentioned above.

    However, I am running this task while recording with fNIRS and need to display the task on a second monitor (so that I can monitor the fNIRS trace on my laptop). I've discovered that there is no option for a second monitor using Expyriment (or Legacy). I would have to use Psychopy, as this has the option for selecting a different monitor. But then I'm back to where I started, with the media_player_mpy not able to play my videos.

  • Hey rlaycock,

    maybe what I am saying is nonsense, but if frame rate is not a big concern to you, could you try to extend your screen, i.e. pretending it is one big screen, and adjust the coordinates of experiment such that it will be presented on the 2nd screen only?

    Alternatively, you could always try a different mode of video playback. Personally, I had good experiences with OpenCV.

    Hope this helps,

    Eduard

    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