无法初始化视频获取属性(Matlab中的视频读取器)



我可以在windows中使用Matlab读取一个视频,但不能在ubuntu 14.04中从Matlab读取相同的视频。错误如下:

>> aa = VideoReader('s12_32_xvid.avi');
Error using VideoReader/init (line 619)
Could not read file due to an unexpected error. Reason: Unable to initialize the video obtain properties
Error in VideoReader (line 172)
            obj.init(fileName);

有人能帮忙吗?

这帮我解决了这个问题。你需要安装gstreamer0.10-ffmpeg.

https://in.mathworks.com/matlabcentral/answers/255157-can-t-load-video-using-videoreader-in-matlab-r2015-on-ubuntu-15-04-could-not-read-file-due-to-an-un

gstreamer 0.10-ffmpeg的安装说明如下:

https://askubuntu.com/questions/575869/how-do-i-install-gstreamer0-10-ffmpeg-on-ubuntu-14-10

希望它能帮助

安装gstreamer0.10-ffmpeg后,由于缺少编解码器,问题可能仍然存在。您可以使用安装编解码器

sudo apt install ubuntu-restricted-extras

最新更新