How can I solve readFrame error?

When I execute the following code in Matlab 2015a:
v=VideoReader('\\192.168.10.88\sgs\2016\c1\120_Apr.29\1461924001_Fri_Apr_29_10_00_01_GMT_2016_SGS_c1_movie.avi');
while hasFrame(v)
video = readFrame(v);
end
whos video_
The VideoReader properties seems to be regularly created as follow:
General Properties:
Name: '1461924001_Fri_Apr_29_10_00_01_GMT_2016_SGS_c1_movie.avi'
Path: '\\192.168.10.88\sgs\2016\c1\120_Apr.29'
Duration: 599.4280
CurrentTime: 0
Tag: ''
UserData: []
Video Properties:
Width: 3376
Height: 2704
FrameRate: 2.0236
BitsPerPixel: 24
VideoFormat: 'RGB24'
but going into while cycle, I get the error:
Error using VideoReader/readFrame (line 111)
Could not read file due to an unexpected error. Reason: read failed reason: Errore non specificato.
If I use one the Matlab example videos, such as 'shaky_car.avi', the code works regularly. I get the same error if I use the command read(v). The computer has installed Windows 7. The full properties of my video are:
Format : AVI
Format/Info : Audio Video Interleave
Format profile : OpenDML
File size : 2.40 GiB
Duration : 9 min
Overall bit rate : 34.3 Mb/s
Video
ID : 0
Format : JPEG
Codec ID : MJPG
Duration : 9 min
Bit rate : 34.3 Mb/s
Width : 3 376 pixels
Height : 2 704 pixels
Display aspect ratio : 5:4
Frame rate : 2.023 FPS
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 1.858
Stream size : 2.40 GiB (100%)

1 件のコメント

Nagini Venkata Krishna Kumari Palem
Nagini Venkata Krishna Kumari Palem 2017 年 3 月 29 日
There could be an issue with the video file you are using (might be an issue with compression). Did you observe the same results in the latest release of MATLAB R2017a?

サインインしてコメントする。

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by