Clear Filters
Clear Filters

Can not open any movie file

4 views (last 30 days)
Muhammad Awais
Muhammad Awais on 9 Oct 2016
Edited: Marc Jakobi on 10 Oct 2016
I am trying to open movie file but it does not open. I have movies in current folder of Matlab. Every time this error comes;
"Movie destructor, delete movie object
Error using Movie (line 98)
Can't find file: 1.MOV"
I have tried to open mpg and mp4 files also. I am getting same error.
  6 Comments
Walter Roberson
Walter Roberson on 10 Oct 2016
That appears to be Peter Corke's toolbox
But possibly in a different edition than would be downloaded from there.
Are you specifically wanting to use that Machine Vision toolbox, or are you trying to open a movie for another use? If you have a different use then use a different routine name to open the movie.
Muhammad Awais
Muhammad Awais on 10 Oct 2016
I am specifically using this toolbox, provided by Peter Corke. And I want to use this because I am doing online course and it is requirement of the course to use this toolbox.

Sign in to comment.

Answers (2)

Marc Jakobi
Marc Jakobi on 10 Oct 2016
Edited: Marc Jakobi on 10 Oct 2016
A google search revealed various versions of the Machine Vision Toolbox. The Movie class in the most recent version on this link (posted by Walter Robertson) does not seem to contain the error you are encountering. However, the same class in this GitHub download does contain the error in the Movie constructor. If I download the toolbox from Walter Robertson's link, it works without problems and creates a Movie object. I can't get the GitHub version to work on my Matlab release (R2016b).
Unfortunately, I cannot reproduce the error using that version of the toolbox because I can't find the function "path2cell". But it seems like it fails if the video file is not in the Matlab search path (so one thing you could try is adding the directory that contains the video file to the Matlab search path). And when you add a toolbox, you should always add the folder that contains the toolbox and all of its subfolders to the search path.
What does
which('iread')
return?
If adding the current directory fails, I would suggest you download the toolbox provided in Walter Robertson's link and see if it fixes your problem. I downloaded vision-3.4.zip and Images.zip and it worked just fine.

Jan
Jan on 9 Oct 2016
The error message means, that the file "1.mov" does not exist in the current folder. Perhaps you have to specify the path of the file also.
  1 Comment
Muhammad Awais
Muhammad Awais on 10 Oct 2016
I have tried the path also, like this:
cam=Movie('C:\Users\Awais\Documents\MATLAB\Work\1.MOV', 'double', 'grey');
Still same error.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!