hasFrame returns a zero value

조회 수: 1 (최근 30일)
Lauren Eberly
Lauren Eberly 2016년 3월 30일
댓글: Clifford King 2018년 8월 23일
I'm trying to convert a .avi file to a sequence of images. I followed the example shown here: http://www.mathworks.com/help/matlab/examples/convert-between-image-sequences-and-video.html
However, my hasFrame returns a zero value. What's odd is that VideoReader gives me the correct information about the video - including the correct frame rate. Any ideas as to why hasFrame is not working properly?
  댓글 수: 1
Clifford King
Clifford King 2018년 8월 23일
I was using this function to pull that last ~60 frames from a video. I changed the CurrentTime slightly and was able to get it to work.

댓글을 달려면 로그인하십시오.

답변 (1개)

James Johnson
James Johnson 2018년 5월 11일
same problem, the documentation is really poor on VideoReader

Community Treasure Hunt

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

Start Hunting!

Translated by