我正在尝试在Mac 10.13.2中的Matlab R2017b中使用VideoReader来读取.avi文件,但它给出了如下错误:
Error using VideoReader/init (line 619)
Could not read file due to an unexpected error. Reason: Cannot Decode
Error in VideoReader (line 172)
obj.init(fileName);
Error in Project1 (line 3)
vidObj = VideoReader('jan28.avi')
我尝试引用多个堆栈溢出问题但无法找到解决方案。请帮助我阅读和处理.avi文件。
下面是我在样本中使用的avi文件的aviinfo输出
>> aviinfo('jan28.avi')
Warning: AVIINFO will be removed in a future release. Use VIDEOREADER instead.
> In aviinfo (line 66)
ans =
struct with fields:
Filename: '/Users/nagakukunuru/Matlab_work/jan28.avi'
FileSize: 8642702
FileModDate: '26-Jan-2018 02:13:59'
NumFrames: 1600
FramesPerSecond: 30
Width: 704
Height: 480
ImageType: 'truecolor'
VideoCompression: 'XVID'
Quality: 100
NumColormapEntries: 0