Video plug-in on OS Catalina
Hi all!
I'm trying to get 4 short videos to run on my experiment, but when I try to put the video player on my sequence it says that it failed to load "media_player_mpy". It says I need to download ffmpeg, and to use imageio to download it. The thing is imageio seems to run only on Python 3 and Opesesame for Mac is only in Python 2.
Please, help ?
the full error message:
Traceback (most recent call last): File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libqtopensesame/widgets/tree_overview.py", line 783, in dropEvent self.drop_event_item_new(data, e) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libqtopensesame/widgets/tree_overview.py", line 702, in drop_event_item_new item, new_items = self.drop_get_item_snippet(data) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libqtopensesame/widgets/tree_overview.py", line 588, in drop_get_item_snippet catch_exceptions=False) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libqtopensesame/misc/qtitem_store.py", line 118, in new allow_rename=allow_rename File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/item_store.py", line 195, in new exception=e osexception: Failed to load plugin 'media_player_mpy' item-stack: exception type: NeedDownloadError exception message: Need ffmpeg exe. You can obtain it with either: - install using conda: conda install ffmpeg -c conda-forge - download using the command: imageio_download_bin ffmpeg - download by calling (in Python): imageio.plugins.ffmpeg.download() time: Sat Mar 7 12:10:17 2020 Traceback: File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/item_store.py", line 190, in new self.experiment.item_prefix() File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/plugins.py", line 428, in load_plugin item_module = import_plugin(plugin, _type=_type) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/plugins.py", line 395, in import_plugin return imp.load_source(plugin, path) File "/Applications/OpenSesame.app/Contents/Resources/share/opensesame_plugins/media_player_mpy/media_player_mpy.py", line 42, in <module> import mediadecoder File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/mediadecoder/__init__.py", line 6, in <module> from mediadecoder.decoder import Decoder File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/mediadecoder/decoder.py", line 9, in <module> from moviepy.video.io.VideoFileClip import VideoFileClip File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/moviepy/video/io/VideoFileClip.py", line 3, in <module> from moviepy.video.VideoClip import VideoClip File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/moviepy/video/VideoClip.py", line 18, in <module> from ..config import get_setting File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/moviepy/config.py", line 35, in <module> FFMPEG_BINARY = get_exe() File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/imageio/plugins/ffmpeg.py", line 127, in get_exe "Need ffmpeg exe. " NeedDownloadError: Need ffmpeg exe. You can obtain it with either: - install using conda: conda install ffmpeg -c conda-forge - download using the command: imageio_download_bin ffmpeg - download by calling (in Python): imageio.plugins.ffmpeg.download()
Comments
Hi Nathacia,
Maybe this discussion can help?
Other than that, I don't know what could be it. Maybe you could browse the forum for other discussion involving the media player on Macs.
Eduard