Howdy, Stranger!

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

Supported by

[solved] media_player_gst changing defualt file location

edited October 2014 in OpenSesame

Hello,

I recently installed the plugin media_player_gst into OpenSesame (v. 2.8.3) and needed to change the default file location for GStreamer. The plugin documentation states:

If you needed to install [GStreamer] to a different folder, you will need to edit the variable GSTREAMER_PATH somewhere at the top section of media_player_gst.py and make it point to the location at which you have installed GStreamer.

However, I am not adept enough with code to find where I need to replace the default path with the real path for GStreamer. I can see, however, that in media_player_gst.py there is no variable called "GSTREAMER_PATH." Any help resolving this issue would be greatly appreciated.

Thanks.

Comments

  • edited 11:37AM

    Hi,

    Judging by media_player_gst's media_player_gst.py lines 52 to 76, a very decent attempt is made to automatically locate the GST folder wherever it is (assuming you are on Windows). Are you actually experiencing any trouble when using the plug-in?

    If so, could you paste the contents of your Debug Window after a crash?

    Thanks!

  • edited 11:37AM

    Hi,

    The issue is that on my work's servers we are only allowed to save software to a certain network drive, which the script would have no reason to look in.

    When I launch OpenSesame and try to add media_player_gst to a new experiment I simply get OpenSesame could not find the GStreamer framework!.

    Any ideas on how to remedy the issue would be appreciated!

    Thanks!

  • edited October 2014

    Ah, I see, thanks for the information.

    What I think is going on, is that the environment variable for GStreamer is not set. You can do so manually, by adding in a wee bit of code to the start of the media_player_gst.py script:

    os.environ["GSTREAMER_SDK_ROOT_X86"] = "C:/example/path/to/GStreamer/dir"
    

    Obviously, you will have to change the example path to the actual path in your setup.

    Good luck!

    PS: alternatively, you could manually set the path in your Windows setup as well. Follow the instructions on this page, and make sure that the name you use for the environment variable is GSTREAMER_SDK_ROOT_X86, and the value the absolute path to the directory (using backward slashes).

  • edited October 2014

    Thanks for the help! Unfortunately, it appears to be giving me a different error now.

    Failed to load plug-in 'media_player_gst'
    line: 2
    exception message: name 'os' is not defined
    exception type: NameError
    
    Traceback (also in debug window):
      File "dist\libqtopensesame\qtopensesame.py", line 1356, in add_item
      File "dist\libopensesame\plugins.py", line 293, in load_plugin
      File "dist\libopensesame\plugins.py", line 267, in import_plugin
      File "R:[path]\OpenSesame\plugins\media_player_g\media_player_gst.py", line 2, in <module>
    NameError: name 'os' is not defined
    
    

    Sorry to keep bothering you, but I feel like this is so close to being resolved!

    Thanks

  • edited 11:37AM

    Sorry to keep bothering you, but I feel like this is so close to being resolved!

    It is! os is a Python module that you need to import before you can use it with the following line:

    import os
    

    Buy Me A Coffee

  • edited 11:37AM

    Thank you both! After adding that one line of code it appears to be up and running!

    Best

  • edited 11:37AM

    Oh, sorry, I should have specified to place the line of code after os is imported. Glad you got things up and running!

  • edited November 2014

    Hello OpeSesameTeam,

    I followed the instructions as written here above and still when I run an experiment with xpyriment-gst back-end I get the following:

    Starting experiment as ExperimentProcess-1
    Expyriment 0.7.0 (Revision 7a6b73d; Python 2.7.6)
    File: opensesame.exe (6a8b7f)
    Warning: OpenGL does not support window mode. OpenGL will be deactivated!
    An Exception occurred during exp.end():
    OpenSesame could not find the GStreamer framework!
    
    OpenSesame could not find the GStreamer framework!
    

    gstreamer path is: C:/gstreamer-sdk
    in media_player_gst.py I have added:
    import os (in line 32)
    os.environ["GSTREAMER_SDK_ROOT_X86"] = "C:/gstreamer-sdk" (in line 49)
    media_player_gst.py path is: C:\Program Files\OpenSesame\plugins\media_player_gst-master

    Thank you for your time!

  • edited November 2014

    You should not need to manually add the

    os.environ["GSTREAMER_SDK_ROOT_X86"] = "C:/gstreamer-sdk"
    

    line if the gstreamer framework is installed correctly. The installation process should automatically add this entry to your environment variables. You can check if it is present by going to your system properties windows (or press win key + pause/break) > Advanced System settings > Environment variables. If it isn't there, your installation did probably not complete succesfully. The line should also read something like

    C:\gstreamer-sdk\0.10\x86\
    

    Another thing that I can think of is that the python modules were not selected during installation and thus they are not present to be found by this plugin.
    Let me know if this worked for you somehow.

    Buy Me A Coffee

  • edited 11:37AM

    Hello dschreij,

    thank you very much for your response!
    I checked everything you suggested but nothing could resolve the problem.
    In our experiment we are using sound and that's why I wanted to use xpyriment-gst back-end.
    So, we shall use only "legacy Pygame".
    Thank you again for your time and your suggestions.

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