フィルターのクリア

>> VideoReader Error using VideoReader (line 160) FILENAME must be specified.

3 ビュー (過去 30 日間)
abbxucy11
abbxucy11 2016 年 9 月 26 日
コメント済み: Walter Roberson 2016 年 9 月 26 日
I run the VideoReader.m and i have this error.. any ideas what is going wrong?
>> VideoReader Error using VideoReader (line 160) FILENAME must be specified.

採用された回答

Geoff Hayes
Geoff Hayes 2016 年 9 月 26 日
I get the same error message if I simply call VideoReader from the command line as
>> VideoReader
Error using VideoReader (line 135)
FILENAME must be specified.
As per the documentation at VideoReader you need to provide a file name as
>> vidObj = VideoReader('xylophone.mp4');
or using another file name that is specific to your work.
  4 件のコメント
abbxucy11
abbxucy11 2016 年 9 月 26 日
img = frame2im(VideoReader(video,1));
basically i want to create an image img that represents the first frame of the video
Walter Roberson
Walter Roberson 2016 年 9 月 26 日
Provided that video has been initialized as
video = VideoReader('SomeFileName.avi');
then
img = readFrame(video);
There is no frame2im() requires for this use.
If you have a sufficiently old MATLAB then you might need
img = read(video, 1);

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by