can't load video using VideoReader in matlab R2015 on Ubuntu 15.04. Could not read file due to an unexpected error. Reason: Unable to initialize the video obtain properties

조회 수: 31 (최근 30일)
using
video=VideoReader('test2.avi');
to read avi video
but get
Error using VideoReader/init (line 619)
Could not read file due to an unexpected error. Reason: Unable to initialize the video obtain properties.
I have installed gstreamer and related plugin-ins, but it still didn't work.
could anyone to help me figure out what's wrong?
  댓글 수: 1
bluer xing
bluer xing 2015년 12월 6일
I have problem in matlab2014a in ubuntu 15.04 , as I know and you said in your other question:“gstreamer0.10-ffmpeg are not applicable on Ubuntu15.04 ”. so ,i want to know how can you install the gstreamer0.10-ffmpeg ,I want get your help ,thanks.

댓글을 달려면 로그인하십시오.

채택된 답변

Dinesh Iyer
Dinesh Iyer 2015년 11월 16일
VideoReader support GStreamer 0.10. So if you have installed Gstreamer 1.0, it will not work.
Once you install Gstreamer, you probably have to install the suitable plugins (codecs) to read the video. Try playing the video using Totem Player. I believe this uses Gstreamer.
Do not try VLC. It uses ffmpeg libraries and not gstreamer.
  댓글 수: 1
jelly
jelly 2015년 11월 16일
편집: jelly 2015년 11월 17일
Thanks guy. You are right, i forgot to install a plugin gstreamer0.10-ffmpeg. i didn't find the problem before and all problems are solved after installing the plugin.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Canh Long Nguyen
Canh Long Nguyen 2022년 8월 23일
Hi,
I have the same problem with my Matlab runing on Xfce Ubuntu ver 4.14. I have tried both version of Matlab R2021a and R2022a, however the problem is same for both version.
I have the newest Gstreamer on the system, but it's not work.
Could anyone to help me figure out what's wrong?
Many thankns

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by