matlab:Warning: Unable to determine the number of frames in this file.
2017-04-21 17:42
851 查看
在使用 VideoReader读视频时经常会遇到这样的问题:Warning: Unable to determine the number of frames in this file.
没有找到更好的解决办法,如果你是做研究的话,不要求实时性的话,可以这样解决:采用语句:
filename='video.avi';
vidObj=VideoReader(filename);
numFrames=read(vidObj,inf);
numFrames=vidObj.NumberOfFrames ;% 帧的总数
参考自matlab官方帮助:
http://www.mathworks.cn/cn/help/matlab/import_export/read-video-files.html
没有找到更好的解决办法,如果你是做研究的话,不要求实时性的话,可以这样解决:采用语句:
filename='video.avi';
vidObj=VideoReader(filename);
numFrames=read(vidObj,inf);
numFrames=vidObj.NumberOfFrames ;% 帧的总数
就可返回视频的帧数
参考自matlab官方帮助:
http://www.mathworks.cn/cn/help/matlab/import_export/read-video-files.html
相关文章推荐
- Warning: Unable to determine the number of frames in this file
- "Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased."
- Unable to find a version of the runtime to run this application.【matlab】
- Some text formatting may have changed in this file because the maximum number of fonts was exceeded解决办法
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- Determine whether the concatenation of a and b in this order is a square number.
- Unable to determine the principal end of an association between the types '***. The principal end of this association must be explicitly configured using either the relationship fluent API or data annotations.
- Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap"
- We are already in the process of making 11 connections and the number of simultaneous builds has been throttled to 10
- strip: Unable to recognise the format of the input file
- 关于“This file has been modified outside of the source editor. Do you want to reload it?”错误的处理
- ORA-30926: unable to get a stable set of rows in the source tables
- IsolatedStoreExceptio:Unable to determine application identity of the caller
- TFS2010问题:unable to determine the workspace for this solution
- VC6编辑时提示This file has been modified outside of the source of editor.Do you want to reload it?解决方法
- java.lang.unsupportedclassversionerror bad version number in .class file unable to load class
- Unable to See the Legal Entity List of Value in the Bank Account Owner Field [ID 415529.1]
- FIX: Unable to find a version of the runtime to run this application.
- the connection to the VMware USB Arbitration Service was unsuccessful.Please check the status of this service in the Microsogt M
- 让人哭笑不得的“Unable to load one or more of the types in the assembly”问题的解决!