Error grabbing the last video frame (Bug #2124)


Added by Philipp Werner over 12 years ago. Updated almost 10 years ago.


Status:Cancelled Start date:2012-07-02
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:highgui-video
Target version:-
Affected version:2.4.0 - 2.4.8 Operating System:Any
Difficulty: HW Platform:Any
Pull request:

Description

Hi,

after seeking to the last (or last but one) frame I get a grab() error. It only happens with some video files. While trying to find a small video example, I realized that it seems to be related to the file size or something like that (by recoding the attached video with reduced quality that bug disappears). I also only got the error for H264 videos, but I did not try a lot of codecs.

I have used r8858 and built a static version of OpenCV (SSE and SSE2 enabled) with MSVC 2008 (32 bit) under Windows 7 (64 bit).

The output of the attached sample program is:

1208 frames
set frame pos 1207, get frame pos 1206
error: read
set frame pos 1206, get frame pos 1206
error: read
set frame pos 1205, get frame pos 1205
read ok

The sample video (which is to large to uploaded here) can be downloaded here:
http://www-e.ovgu.de/werner/test.avi

PS @ all OpenCV devs: Thank you for your work on this great library!


bug.cpp (924 Bytes) Philipp Werner, 2012-07-02 11:10 am


History

Updated by Philipp Werner over 12 years ago

The above given sample video URL is broken. This should work:
http://www-e.uni-magdeburg.de/pwerner/test.avi

Updated by Philipp Werner over 12 years ago

Correction of the broken sample video link:
http://www-e.uni-magdeburg.de/pwerner/test.avi

Updated by Andrey Kamaev over 12 years ago

  • Category changed from highgui-images to highgui-video

Updated by Philipp Werner over 12 years ago

The issue seems to be resolved with current trunk. Thanks. :)

Updated by Vadim Pisarevsky almost 10 years ago

let's cancel very old bugs; if they are still valid, please, reopen

  • Status changed from Open to Cancelled
  • HW Platform set to Any
  • Operating System set to Any
  • Affected version set to 2.4.0 - 2.4.8

Also available in: Atom PDF