Howdy, Stranger!

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

Supported by

problems with file path

Hi,
I am almost done with designing my first experiment in opensesame (awesome program!), but I have a problem. In between my stimuli I want to show my participants a relaxing movie of some fishes with classical music in the background. My files seem to be to large to put in the file pool so I tried putting them in the experiment folder as suggested in this discussion: forum.cogsci.nl/index.php?p=/discussion/2013/moving-files-from-file-pool-to-experiment-folder
That did not seem to work. My main concern is that when I open the path of the files in the pool it does not lead back to the same folder as my experiment but a whole different folder which seems to be in my temporary files. With the following path: C:\users\310256~1\appdata\local\temp\tmppwtrz4.opensesame_pool
It seems that I cannot change the path How can I solve this and why is my _ _ pool _ _ not in the experiment folder?
thanks a lot in advance.
best wishes,
Hanne

Comments

  • Hi Hanne,

    Did you try adding your files to the filepool and see what the performance is? It is true that a big pool can cause trouble, but this doesn't have to affect you much. If the performance issues are too severe, we can try to fix it.

    Eduard

    Buy Me A Coffee

  • Hi Eduard,
    Thanks for responding. It does effect the performance of my experiment. It are two movies of approx. 123MB played six times. Since I measure physiological responses to my stimuli the timing is kind of important.
    Hanne

  • Alright. Well, what you need eventually is a full path to the video file of yours, that you can put into the plugin with which you're going to play back the video. So, maybe coding it in a permanent way, would suit you? Before every time you load/play the video, you can put this in an inline_script:

    if videofile == 'fish1':
         path = "\full\path\to\your\file"
    elif videofile == 'fish2':
        # load another file
    

    Afterwards, use the variable path to load the video in the plugin. I haven't tested this and I don't work myself with videos, so whether it will work or not, I don't really know :)

    Eduard

    Buy Me A Coffee

  • Thank you Eduard!
    I changed the location of the experiment folder to my C:/ directory and used the path command.
    Now it is working

  • Hi Spanne,
    you can also place files in folders relative to your OpenSesame experiment, if I'm correct (See this function in the documentation). So if you place your videos in a subfolder videos in the folder at which your experiment is located, you should be able to get the path to a file called fish.mp4 with pool['videos/fish.mp4' ] for instance. This should also work if you place such a reference in the media_player_mpy item (thus simply videos/fish.mp4 in the file box).

    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