Cannot read video Matlab 2014b Linux!

I am trying to read a h264 video in Matlab Ubuntu 14.10 using VideoReader, and i get an error.
"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);
I have the codecs installed as i can play the file from Ubuntu player. Does some one experienced some thing like that. By the way the files are from GoPro and Android camera.

2 件のコメント

Nima Tajbakhsh
Nima Tajbakhsh 2015 年 5 月 10 日
I have the same problem, Have you found the fix?
Pepe Mandioca
Pepe Mandioca 2015 年 7 月 3 日
編集済み: Pepe Mandioca 2015 年 7 月 3 日
Exactly the same error. It seems wierd that the error is in line 617 of VideoReader,
try
obj.VideoReaderImpl = audiovideo.mmreader(fullName);
catch exception
VideoReader.handleImplException( exception );
end
But audiovideo.mmreader(fullName) is a deprecated object. Indeed:
function obj = mmreader(fileName, varargin)
error(message('MATLAB:audiovideo:mmreader:mmreaderToBeRemoved'));
end

サインインしてコメントする。

回答 (2 件)

vicky
vicky 2015 年 5 月 28 日
編集済み: Walter Roberson 2017 年 8 月 21 日

3 投票

ffmpeg had removed repo of Ubuntu, instead of libav. you should add ppa:
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg gstreamer0.10-ffmpeg

3 件のコメント

Pepe Mandioca
Pepe Mandioca 2015 年 7 月 3 日
Adding ffmpeg didn't work for me.
Or Shamir
Or Shamir 2017 年 8 月 21 日
for me neither, nor did installing gstreamer libraries. No solution yet?
HAOJUN JIANG
HAOJUN JIANG 2018 年 1 月 27 日
me neither

サインインしてコメントする。

tang chuangao
tang chuangao 2015 年 11 月 10 日
編集済み: Walter Roberson 2015 年 11 月 10 日

0 投票

sudo apt-get install libgstreamer0.10-dev gstreamer-tools gstreamer0.10-tools gstreamer0.10-doc
sudo apt-getinstall gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse
At last,restart.

1 件のコメント

Walter Roberson
Walter Roberson 2015 年 11 月 10 日
Should the "apt-getinstall" in the second line be two words like it is on the first line?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

質問済み:

2014 年 12 月 5 日

コメント済み:

2018 年 1 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by