Error using VideoReader/init (line 607)
显示 更早的评论
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 个评论
Geoff Hayes
2019-1-28
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.
回答(0 个)
类别
在 帮助中心 和 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!