Warning: Unable to determine the number of frames in this file
来源:互联网 发布:淘宝江水平装修 编辑:程序博客网 时间:2024/05/22 14:42
之前通过下面的代码读取,没有错误:
videoObj = VideoReader('..\..\dataset\smoke-detection\ForestSmoke\Smoke_Manavgat_Raw.avi');numFrames = get(videoObj, 'NumberOfFrames');后来在安装了一堆其他软件之后,特别是安装完美解码之后,就产生Warning: Unable to determine the number of frames in this file的警告,参考[1][2]给出了一种解决方法:
frame=read(obj,inf);obj.NumberOfFrames是通过读取最后一帧图像来确定的,但是当视频有点长的时候,确定这最后一帧就会特别慢。
在我运行程序之前
在我点击运行中断后:
这个LAV是一个什么东西?
我想大概就是这个LAV Splitter影响了Matlab,因此只需关闭它既可。找了好久发现在在完美解码的设置里面可以关掉:
这个分离器对AVI格式默认的是LAV,需要改回system既可。然后在运行matlab,就不会产生Warning: Unable to determine the number of frames in this file了,
参考:
【1】matlab VideoReader Warning: Unable to determine the&nb http://blog.sina.com.cn/s/blog_6051d8810101js31.html
【2】Thread Subject: Video info for non-AVI's http://www.mathworks.com/matlabcentral/newsreader/view_thread/139245
0 0
- Warning: Unable to determine the number of frames in this file
- matlab:Warning: Unable to determine the number of frames in this file.
- TFS2010问题:unable to determine the workspace for this solution
- 解决 Error:The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this
- PHP Warning: SQLite3::query(): unable to open database file in
- strip: Unable to recognise the format of the input file
- strip: Unable to recognise the format of the input file
- Failed to transfer file could not determine the type of file "ftp
- [CrackCode] 5.5 Determine the number of bits required to convert integer A to integer B
- 解决异常Unable to determine the provider name for connection of type SqlCeConnection的方法之一
- Interface builder was unable to determine the type of xxx.xib
- Interface builder was unable to determine the type of xxx.xib
- iOS Interface builder was unable to determine the type of xxx.xib
- Interface builder was unable to determine the type of xxx.xib
- PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
- Unable to determine the workspace. You may be able to correct this by running 'tf workspaces /collec
- Some text formatting may have changed in this file because the maximum number of fonts was exceeded解决办法
- How to determine the size of a class/struct in the C++?
- Android--Handler的post方法详解
- Spark源码阅读笔记:TaskScheduler
- 人太多特人特人特让他爷爷
- 商脉财富民间借贷全国诚招加盟商
- linux c编程open() read() write()函数的使用方法及实例
- Warning: Unable to determine the number of frames in this file
- MYSQL远程登录权限设置
- 用C++开发Hadoop应用程序
- mongodb介绍与官网安装步骤
- 征信体系P2P行业头上的“紧箍咒
- linux-2.6内核模块引用计数的实现
- Java高手速成秘籍——Eclipse鲜为人知的快捷键
- 姿撞捉孜尊尊走缀赚奏诅渍阻状座住走缀
- Linux系统调用详解(如何从用户空间进入内核空间)