Howdy, Stranger!

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

Supported by

Showing multiple videos on OpenSesame

Hi!

I'm new to OpenSesame, and I would like to conduct an experiment where a sound plays at the beginning, followed by the simultaneous display of three or more videos on the screen in different positions. Participants need to match the sound with the correct video by touching and subsequently stopping it. I have successfully implemented a similar task with images, but I'm unsure how to achieve this with videos.

So far, I've set up a loop and a sequence inside that includes a sound and a media player. In the loop, I defined variables such as Video1, Video2, and Video3 in their respective columns. I also added three columns for different positions (e.g., Posx1, Posy1, Posx2...), and I scripted the shuffling of positions and videos to ensure a varied order, similar to what I did with images in a previous task.

I attempted to add a video in the media player (mpy), aiming to replace the file name with the variable names [Video1][Video2][Video3], but this approach did not work as expected.

Additionally, I would like to link the columns Posx1 and Posy1 to Video1 and so on. However, unlike with images, there is no editable script to replace the x and y values. I read in the forum that using an inline script with OpenCV might be a solution, but I'm not sure how to implement it. Is there a way to accomplish this task without adding a script directly? I truly hope someone can provide guidance!

Thanks so much!


Comments

  • Hi @Giuliannicch,

    No, unfortunately this won't work without scripting. The Media player only works for a single video at a time. So yeah, I would go for OpenCV. But start simple, don't focus too much on your paradigm. Perhaps first try to present a single video on the canvas. If that works, try to adjust the size/position of it. And if that works, Adding other videos to other locations will not be as challenging as it seems now.

    And if you get stuck on the way, we can try to help out.

    Eduard

    ps, you can always get inspiration from examples/tutorials: https://osdoc.cogsci.nl/4.0/manual/stimuli/video/#opencv

    Buy Me A Coffee

  • Thank you so much for the answer and the advice!

    I'll give it a try!


    Giulia

  • I have another, perhaps silly, question, but as i said I am new to programming and OpenSesame. Once I manage to define the four videos I want to present simultaneously with an inline script, to create the loop, set the correct responses, add sound, etc., can I use the graphical part, meaning adding columns with the variable "sound," the variable "correct_resp," etc., or do I have to do everything through the script? I mean, now that I've added the inline script, my experimental loop will execute that, but I would like to use it only as an instruction to display the four videos simultaneously, not also, for example, to give the random order, associate the sound, etc. And where is the right part where to put the script? I hope I have explained myself well!

    Thanks again,


    Giulia

  • Hi Giulia,

    Normally you should still be able to use the loop table. However, depending on your setup you might need to be a bit creative with the labeling. For example, because all the videos are now in one trial, you essentially need 4 columns with video_name, 4 columns regarding the sounds, correct_response, etc. But sure, there is no reason why this shouldn't be possible.

    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