Error loading a vide file using VideoReader

조회 수: 5 (최근 30일)
Sahand
Sahand 2012년 12월 23일
댓글: Julien 2014년 3월 12일
After:
vidObj = VideoReader('test-mpeg.mpg');
I get this error:
Error using VideoReader/init (line 442)
File could not be read due to an unexpected error. Reason: Class not registered "
Error in VideoReader (line 132)
obj.init(fileName);
I also tried an ".avi" file and got the same error message. I am using Matlab R2011b (64-bit) on my school's Windows Server 2008 by remote logging in. What is the cause of this? Could it be that I am missing a Windows library file? If so what should tell our IT guy to add?

채택된 답변

Walter Roberson
Walter Roberson 2012년 12월 23일
How are you logging in? The audio and video facilities have difficulty in MS Windows if you log in via remote desktop or terminal server. You should be able to use them if you use VNC however.
  댓글 수: 1
Daniel
Daniel 2013년 7월 26일
Hi, I am having similar problems and I have tried using teamviewer to connect to the server. I am still getting the same error. Is there another reason for this error?

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

추가 답변 (2개)

Matthew Cordaro
Matthew Cordaro 2013년 12월 18일
What you are seeing is an error where a class (I believe it's Windows Media Foundation stuff) that matlab is expecting to find in the registry, isn't installed.
So you need to install "Desktop User Experience" which is turned off by default in server 2012. It contains the necessary registrations that the Video Reader Class requires.
I had the same problem. Once I turned this on, everything worked fine.
  댓글 수: 1
Julien
Julien 2014년 3월 12일
Thank you. It solved perfectly my problem

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


Sahand
Sahand 2013년 1월 4일
I do in fact log in via Remote Desktop. I'll try VNC and post an update.
Thanks!

Community Treasure Hunt

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

Start Hunting!

Translated by