Howdy, Stranger!

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

Supported by

[open] Media player (vlc) plug-in for Mac?

edited September 2013 in OpenSesame

Hi

I have recently started using OpenSesame, and now I have run in to some problems with an experiment that uses video files. I'm running opensesame on a Mac. The video player plug-in works OK on the 32bit version, but not on the 64bit, where the videos keep looping infinitely. I have tried to get the vlc plug-in to work without any success. I have downloaded all the vlc-files, and put them into a folder called media_player_vlc among the other plug-ins (opensesame/Resources/plugins). I can see the media_player_vlc under preferences>plug-ins, and in the "append new item"-list, but without any icon. When I try to add a media_player_vlc item, I get the following message: Failed to load plugin 'media_player_vlc'. Error: invalid syntax (media_player_vlc.py, line 4) (and line 4 is the first line of code in the py-file, simply saying <!DOCTYPE html>). Can this be solved, or should I just stick to the old video player (which would be unfortunate, since I would prefer to have audio support)? When I open the video files directly from the pool, they open by default in vlc.

Best

Comments

  • edited 1:11AM

    Hi Bjorn,

    and line 4 is the first line of code in the py-file, simply saying <!DOCTYPE html>

    It sounds like the media_player_vlc.py file is actually an HTML file, and not a Python script. How exactly did you install the plug-in? Did you right-click on the files on GitHub and select 'save as'? In that case you will not have saved the files themselves, but the GitHub (HTML) pages that show the files. To download the files themselves, you can use the 'Download ZIP' button on the right of the GitHub page.

    I don't think the media_player_vlc plug-in has been tested on Mac OS, so I dare not make a prediction as to whether it will work or not. But the problem right now appears to be that you have simply not installed the plug-in correctly.

    I hope this gets you any further!

    Cheers,
    Sebastiaan

  • edited 1:11AM

    Thanks! That got me a bit further (could not find the zip-file first time I looked, so I just downloaded the individual files). Now I see the vlc-icon, but when I try to use it, I get the following error message:

    Failed to load plugin 'media_player_vlc'. Error: This plug-in requires that VLC player 1.X is installed in the default location. You can download VLC player for free from http://www.videolan.org/. Error: [Errno 2] No such file or directory

    Vlc is in the applications folder, which I guess is the default folder, and I have tried both 1.1.12 and 2.0.8 version.

    Do you know if I things would run smoother if I tried to run Windows on my Mac, and open opensesame under Windows, or would I run in to other problems then?

  • edited 1:11AM

    Hi Bjorn,

    I forwarded your post to Daniel, who develops the media_player_vlc plug-in.

    Do you know if I things would run smoother if I tried to run Windows on my Mac, and open opensesame under Windows, or would I run in to other problems then?

    In principle, I think that this should work fine. I don't know the details of how Windows runs on a Mac, but I believe that there is some kind of virtualization technique involved. But even if that's the case, I would still expect it to work.

    Cheers,
    Sebastiaan

  • edited September 2013

    I haven't managed to get the vlc player working on Mac OS, because of a pygame bug on that platform. Basically I ask pygame for the id of the window it is displaying its contents in and pass this id to the vlc module to indicate where it should show its movie output. On OS X however, this functionality of pygame appears to be broken as it does not give me a window id and hence I cannot tell vlc where to display its movie. On OSX a video module based on AVbin would be a better option, but I haven't had time to dive into this yet.

  • edited 1:11AM

    Thanks for the help. We'll continue using media_player for the pilot, and see if we can shift to VLC/Windows for the real experiment.

Sign In or Register to comment.