CV_CAP_PROP_POS_FRAMES problem (Bug #225)


Added by Georgios Petrou almost 15 years ago. Updated over 12 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:- % Done:

0%

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

Description

When setting this property in SVN version i can't get the right frame. It moves from 0 to 250, 500 and so on.
However in the version 2.0 it works fine.
The video codec in 4CC is DX50 (DivX I guess).


Associated revisions

Revision 09be997e
Added by Vadim Pisarevsky about 12 years ago

Merge pull request #225 from pieleric:2.4

Revision 4b0e9185
Added by Vadim Pisarevsky over 10 years ago

Merge pull request #225 from vpisarev:fix_upnp_perf

History

Updated by guan-jhih chen almost 15 years ago

I meet the same problems too.
For many types of video codecs.

Updated by Georgios Petrou almost 15 years ago

The problem remains in the last SVN revision (2999)
I forgot to mention I am using windows vista.

Updated by Benoit R almost 15 years ago

Have the same problem, with more type of videos.

Updated by He Yang over 14 years ago

Has the same problem, I have a video file which has total 389 frame
It can correctly set during 0-385, when I try to set frame to 386-389
It will show
HIGHGUI ERROR: AVI EROOR: can't not seek to position 0.0000

I know there is key-frame in avi file. However, It should be process by api transparently.

Updated by Georgios Petrou over 14 years ago

The problem still remains at the current SVN version (3584)
I tried it both at Vista and Windows 7.

I managed to solve the problem by replacing the following line

result = cvCreateFileCapture_Win32 (filename);

with the line

result = cvCreateFileCapture_VFW (filename);

in the file cap.cpp

I think the cvCreateFileCapture_Win32 uses ffmpeg which has some kind of problem I haven't manage to find yet.

Updated by anonymous - over 14 years ago

Same problem here on Windows 7.

Updated by Georgios Petrou about 14 years ago

The problem seems to have been solved in the 2.2 version for me. I have tested the zip version of the library not the VS2010 installer. But the https://code.ros.org/svn/opencv/branches/2.2 does not work again. Can someone confirm this?

Updated by Vadim Pisarevsky over 13 years ago

The problem should have been solved now. If not, please, reopen the ticket.

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Updated by Vadim Pisarevsky over 13 years ago

I mean, the problem is fixed in trunk version, which should become OpenCV v2.3 in a few days.

Updated by Andrey Kamaev over 12 years ago

  • Category changed from highgui-images to highgui-video

Also available in: Atom PDF