Error using VideoReader/init (line 607)

2 views (last 30 days)
tewei li
tewei li on 28 Jan 2019
Commented: Geoff Hayes on 28 Jan 2019
1:
When I run "video=VideoReader('va‎‏.mp4')" in M-file untitled.m(only one line command in the file), some errors occured in command window as flows:
-----------------
Error using VideoReader/init (line 607)
The filename specified was not found in the MATLAB path.
Error in VideoReader (line 172)
obj.init(fileName);
Error in Untitled (line 1)
video=VideoReader('va??.mp4')
------------------
2:
When I close untitled.m and exit MATLAB, and then restart MATLAB and reopen untitled.m, it shows "video=VideoReader('va??.mp4')" but not "video=VideoReader('va‎‏.mp4')".
When I delete the characters "??", and then run the new untitled.m, the same errors still occured.
  1 Comment
Geoff Hayes
Geoff Hayes on 28 Jan 2019
tewei - try including the full path to the file when calling
video=VideoReader('/Users/geoff/etc/va.mp4')
or whatever the path might be (the above is just an example). Else ensure that the directory for the file can be found from within the MATLAB MATLAB search path.

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!