博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
MEX 文件 ‘...\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64‘ 无效: 找不到指定的模块。
阅读量:3950 次
发布时间:2019-05-24

本文共 5521 字,大约阅读时间需要 18 分钟。

安装好Psychtoolbox后提示以下报错,问题在于GStreamer版本不对。

>> ScreenTestMEX 文件 'D:\MATLAB2020a\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64' 无效: 找不到指定的模块。出错 ScreenTest (line 8)screens = Screen('Screens');

使用help GStreamer可以看到一段提示。其中一大堆废话,只有一句有用,就是那个。卸载原来的GStreamer,重新安装这个就行了。

>> help GStreamer  GStreamer - Installation instructions for the GStreamer media framework.   Psychtoolbox uses the GStreamer multi-media framework for all multi-media  related operations. On Windows with Matlab, GStreamer is also needed for  high quality text rendering via Screen('DrawText').   All movie playback, movie creation, video capture and video recording  operations are based on GStreamer. These functions won't work without a  working GStreamer installation on your system (with the exception of video  capture from firewire DCAM/IIDC machine vision cameras on Linux and OSX).   You will need at least version 1.4 of GStreamer on Linux and OSX and version  1.16 on Windows, but we recommend to use the latest available stable  release of the version 1 series.   Installation instructions:    GNU/Linux:   Any decent Linux distribution will include support for GStreamer-1 in its  package management system, so you can easily install it via the software  management tools of your system. If you install PTB via NeuroDebian, then most  GStreamer packages will get automatically installed, with the possible exception  of some optional packages with potential license or patent restrictions, so read on.   You may need to install those extra plugin packages to play back all  common audio and video file formats like MP3 and MP4. Video or movie  recording with high quality (DivX, H.264) may also require recent  versions of additional plugin packages which contain support for these  formats. These may not installed by default due to licensing and patent  clauses in place for some territories on this planet. You may want to  specifically add them to your system depending on your format needs.   An easy test is to run SimpleMovieDemo. If it fails or only plays sound,  but not video, then some of the plugins are missing, e.g., the important  "gst-libav" plugins.    MS-Windows and Apple OSX:   macOS: You must install GStreamer if you want to use multi-media functions or  if you want to use the high-quality text renderer with Matlab, which provides  consistent, fast, high-quality text rendering, instead of the lower quality  legacy Apple CoreText text renderer.   If you don't intend to use such functionality then installation of  GStreamer is optional on macOS. Screen will work normally, but abort with an  error message if you try to use any multi-media functions.   Windows: You must install GStreamer regardless if you want to use multi-media  functionality or not, as the Screen() mex file won't work at all without  GStreamer installed! You must install at least version 1.16.0 of the MSVC build  variant of GStreamer.   Here is a FAQ entry on resolving GStreamer problems:   
NOTE: If GStreamer complains about not being able to find some plugins, e.g., the video playback doesn't work because there is a GStreamer configuration problem, then it can help to delete the GStreamer plugin registry to force a rebuild of that database. E.g., under Windows-10, if your login user name would be Bob, you would probably have to delete the file: 'C:\Users\Bob\AppData\Local\Microsoft\Windows\INetCache\gstreamer-1.0\registry.x86_64.bin' Download and install the latest 64-Bit ("x86_64") GStreamer runtimes from:
The following GStreamer runtime packages have been tested for good compatibility with Psychtoolbox 3.0.16 as of August 2019: For MS-Windows: 64-Bit Intel MSVC runtime v1.16.0 for use with 64-Bit Matlab/Octave.
You *must* install the MSVC variants of GStreamer, not the MinGW64 variants! For Apple OSX: Runtime v1.16.0
When the installer asks you to select the components it should install, select a "Custom installation" (instead of a "Basic installation" or such). Then, if you chose a "Custom installation" in the displayed check list of packages to install, select *all* components manually, if you want support for all video formats and all functionality. Without this, many popular video formats like H264 video will not play at all, or video recording / video capture and similar functions may not work. In fact, even our own demos, e.g., SimpleMovieDemo *will fail* if you don't have all codecs installed! -> If SimpleMovieDemo doesn't work, then the most likely cause is that you didn't select all GStreamer packages for installation, so restart the installer and repeat installation with the full set of packages.

然后就遇到了下一个问题,同步错误。然后时间关系不研究了。

ARNING: Couldn't compute a reliable estimate of monitor refresh interval! Trouble with VBL syncing?!?----- ! PTB - ERROR: SYNCHRONIZATION FAILURE ! -----One or more internal checks (see Warnings above) indicate that synchronizationof Psychtoolbox to the vertical retrace (VBL) is not working on your setup.This will seriously impair proper stimulus presentation and stimulus presentation timing!Please read 'help SyncTrouble' for information about how to solve or work-around the problem.You can force Psychtoolbox to continue, despite the severe problems, by adding the commandScreen('Preference', 'SkipSyncTests', 1); at the top of your script, if you really know what you are doing.

直接在文件开头加上,不同步就是了。(后果大概是某一个东西取的时间不准确)

Screen('Preference', 'SkipSyncTests', 1);

转载地址:http://ywuzi.baihongyu.com/

你可能感兴趣的文章
idea运行gradle项目
查看>>
es安装ltr插件
查看>>
开源ltr-es-7.6.2代码到本地idea打开出现各种错误总结
查看>>
Requests实践详解&& python通过连接开启https的elasticsearch7 服务器
查看>>
ES查询流程源码解析
查看>>
ldaps与ldap over TLS
查看>>
jvm为什么把-Xms和-Xmx的值设置成一样
查看>>
2021-01-21对map进行key或者value排序
查看>>
ConcurrentHashMap 1.7和1.8的区别
查看>>
阻塞锁与自旋锁
查看>>
【面试官:select语句和update语句分别是怎么执行的
查看>>
scala学习之安装问题
查看>>
LDAP常见错误码
查看>>
linux yum安装rpm包出现问题
查看>>
idea编译报错类似xxx.java:[85,65] 错误: 找不到符号
查看>>
ArrayList复制
查看>>
idea打开项目时,文件左下角显示橙色J
查看>>
SQL注入
查看>>
linux中ldconfig的使用介绍
查看>>
ldap适合入门学习
查看>>