Read h264 encoded mp4 video files with VideoReader using Linux

8 ビュー (過去 30 日間)
Christopher
Christopher 2012 年 12 月 12 日
I am trying to open a h264 encoded file contained in a mp4 container using the VideoReader class like this:
video_data = VideoReader(['test.mp4']);
But when doing so i get the following error:
Error using VideoReader/init (line 447)
Failed to initialize internal resources.
Error in VideoReader (line 132)
obj.init(fileName);
Error in import_data (line 27)
video_data = VideoReader(['test.mp4']);
gstreamer-plugins are all installed, i am able to play the video in a external player, so apperantly the needed codecs work fine. I´m on a 64bit machine with Ubuntu 11.10 and i´m using Matlab2012a. Help would be appreciated. Thanks!
Edit: Calling
VideoReader.getFileFormats
results in
.avi - AVI File
.mj2 - Motion JPEG2000
.ogg - Ogg File
.ogv - Ogg Video
So it seems Matlab doesnt recognize the installed codecs.. What do i have to do to make these codecs accessible by Matlab?
  2 件のコメント
Christopher
Christopher 2012 年 12 月 12 日
編集済み: Christopher 2012 年 12 月 12 日
i tried some more stuff and found that mmfileinfo does not work neither, even with avi files:
>>mmfileinfo 'test.avi'
Error using mmfileinfo (line 68)
Failed to initialize internal resources.
Germán
Germán 2013 年 3 月 18 日
I have the exact same problem running R2012b on OpenSuse 64bits. Codecs are installed but matlab doesn't use them...

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by