Howdy, Stranger!

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

Supported by

[open] Playing Separate Video and Audio Files Simultaneously

edited December 2013 in OpenSesame

I'm currently working on a crossmodal experiment that uses .avi files of a face saying a word (without sound) and separate .wav files of that word being spoken. So far, I have been able to play the video and the sound files in succession, but I have been unable to figure out how to play the audio file at the same time as the video (so that the spoken word matches up in time with the movement of the mouth). The procedure will ultimately be adaptive and move the sound file more out of sync with the video. First, however, I need to be able to play the video file in sync with the sound file. Is there a way to do this with Open Sesame?

Comments

  • edited 12:42AM

    It is not really possible from the GUI and you will need to use an inline script to achieve this. I haven't tried out myself what I'm proposing below, so I can't guarantee that it is a working solution:

    Add the following three items in a sequence:

    • a sampler item with your audio file loaded (/its file name indicated in the Sound file field). Rename this sampler item to something appropriate (in this example I will just call it "video_dub").
    • an inline script item with the following code in the run phase:

      exp.items["video_dub"].run()

    • a media_player item with the audio muted and your video file loaded.

    In the configuration pane of the sequence item in which you have placed these three items, change the run if field of video_dub from always to never. This will cause the audio file to be loaded, but not played once the sampler item is encountered in the run phase.

    You start playback of your audio file with the inline_scipt, and because this item doesn't pause the experiment, playback of the movie should start immediately after. It might still be that your audio and video stream are out of sync, but I think it's easier to correct for this by incorporating a silence in the audio file itself. There's no easy way to correct for audio delays in OpenSesame.

    That being said, why don't you incorporate the audio streams you would like to use in the movie file itself, by using VirtualDub or such? I think that is a much easier and more durable solution than the OpenSesame one that I just described.

    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