码迷,mamicode.com
首页 > 其他好文 > 详细

MATLAB读视频报错 Unable to initialize the video obtain properties (videoreader in Matlab)

时间:2018-12-17 02:18:30      阅读:492      评论:0      收藏:0      [点我收藏+]

标签:could not   install   apt-get   read   pos   记录   VID   reader   target   

这个bug卡了半天,这里记录一下

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);

环境:Ubuntu16.04

参考:stackoverflow

首先安装gstreamer0.10-ffmpeg

1 sudo add-apt-repository ppa:mc3man/gstffmpeg-keep
2 sudo apt-get update
3 sudo apt-get install gstreamer0.10-ffmpeg

重启MATLAB,如果像我一样还是报错,别慌,继续安装codecs(解码器)

sudo apt install ubuntu-restricted-extra

问题解决

MATLAB读视频报错 Unable to initialize the video obtain properties (videoreader in Matlab)

标签:could not   install   apt-get   read   pos   记录   VID   reader   target   

原文地址:https://www.cnblogs.com/demian/p/10128887.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!