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

#videoreader #imageanalysis #videoreas #frames #error

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.

Best Answer

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.
Related Question