Howdy, Stranger!

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

Supported by

[open] video

edited November 2012 in OpenSesame

Hi, I have an experiment in which I want to show the clips with sound. I've inserted the media-player in my experiment. However, only by the first clip, i have sound and video, by the next clips, i have only video without any sound. What am I doing wrong?
thx
Madjid

Comments

  • edited 12:40PM

    Hi Madjid,

    You're probably not doing anything wrong. The media_player is known to be a bit flaky sometimes, and this issue could be due to any number of things. You might try the following:

    • Convert the video to a different format, and see if this resolves the issue.
    • Explicitly quit and reinitialize the PyGame mixer at the beginning of each trial. Something like the following (as a starting point, you can try variations):
    import pygame
    pygame.mixer.quit()
    pygame.mixer.init()

    For more information, see http://www.pygame.org/docs/ref/mixer.html

    If neither of these options work, perhaps you could post some more information (operating system, version of OpenSesame, video format, etc.) and I'll forward your issue to the developer of the media_player plugin.

    Hope this is of some use!

    Cheers,
    Sebastiaan

  • edited 12:40PM

    I'll see if I can replicate and solve this problem soon. The pygame mixer reinitialization should do the trick. I also hope to release an updated version of media_player soon that is rid of all these quirks, but playing video in Python is still dodgy business...

    Buy Me A Coffee

  • edited November 2012

    Hi sebastian,

    i have converted all videos in .avi format, but the problem has not been resolved. At the first round, i have video and sound, at the second no sound and at the third round, i have sound and video, ... .
    i have windows XP, opensesame 0.26 and all videos have the avi format.
    thx Madjid

  • edited 12:40PM

    I see, that's unfortunate!

    As a workaround, you could try running your experiment in a separate process. To do this, you open Menu→ Tools → Preferences and under Run options select Run experiments in a separate process. You can leave the run command on Auto-detect.

    What this essentially does is start your experiment through opensesamerun, which is an external program. Therefore, it will be like you close and open OpenSesame for every run. Presumably, this will resolve your problem.

    Hope this helps!

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