Matlab:加载wmv视频文件
我试图在 Matlab 中加载 wmv 视频,如下所示:
vidObj = mmreader('video.wmv');
但是,我收到以下错误:
The file requires the following codec(s) to be installed on your system: video/x-ms-asf
我不明白为什么收到此错误,因为我能够在我的系统上播放 wmv 文件。我在 Ubuntu 11.04 上运行 Matlab 7.10.0 (R2010a)。我该如何解决这个问题?
I am trying to load a wmv video in Matlab as follows:
vidObj = mmreader('video.wmv');
However, I receive the following error:
The file requires the following codec(s) to be installed on your system: video/x-ms-asf
I don't understand why I am receiving this error, since I am able to play wmv files on my system. I am running Matlab 7.10.0 (R2010a) on Ubuntu 11.04. How can I fix this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Linux 系统上实现这个功能可能很难甚至是不可能的。或者,您可以编写自己的 wmv 导入函数(如果您知道如何与 Linux 系统上的底层库(即 vlc)对话)。
it might be hard to impossible to get this working on a linux system. Alternatively, you could write your own wmv import function (if you know how to talk to the underlying libraries on your linux system, i.e. vlc).
由于标准 C++ 库的版本冲突,我收到了相同的错误消息。
我已在控制台窗口中启动 MATLAB,并发现 Gstreamer 无法加载插件。
问题是,MATLAB 附带了 libstdc++.so.6.0.10,而 GStreamer 抱怨它应该与 libstdc++.so.6.0.13 一起使用,
因此您应该将 MATLAB 目录中的符号链接替换为系统中的符号链接。
I have received the same error message because of a version conflict for the standard c++ library.
I have started MATLAB in a console window and recognized that Gstreamer fails to load a plug-in.
The problem is, MATLAB ships with libstdc++.so.6.0.10 and GStreamer complains that it should work with libstdc++.so.6.0.13
So you should replace the symbolic link in MATLAB dir with the one in your system.