Can not open any movie file
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2016-10-10
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.
回答(2 个)
Marc Jakobi
2016-10-10
编辑:Marc Jakobi
2016-10-10
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.
0 个评论
Jan
2016-10-9
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!