Can not open any movie file
3 ビュー (過去 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!