フィルターのクリア

Another error occurs in "aviread" .

1 回表示 (過去 30 日間)
Stephen
Stephen 2012 年 5 月 11 日
Warning: AVIREAD will be removed in a future release. Use MMREADER instead.
> In aviread at 29
In testvideo at 1
??? Error using ==> aviinfo at 90
Unable to open sample.avi for reading.
Error in ==> aviread>getAviInfo at 439
info = aviinfo(filename,'Robust');
Error in ==> aviread at 57
info = getAviInfo( filename );
Error in ==> testvideo at 1
avi = aviread('sample.avi');
My system is win7 64bit and when I try to read an avi in matlab errors occur. Could anyone tell me what's wrong?

採用された回答

Wayne King
Wayne King 2012 年 5 月 11 日
You should probably heed the warnings about deprecation and use mmreader.m
However, the problem seems more that MATLAB cannot find sample.avi Is this file located in a folder that is on the MATLAB path?
Use addpath() or pathtool to add that folder to the search path.
or pass the full path to aviread
aviread('c:\data\sample.avi')
Another thing you can if that is not the problem (if the folder containing sample.avi is on the path) is try:
[fid,msg] = fopen('sample.avi','r','l');
and see what is contained in msg

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by