Ask Your Question

Revision history [back]

Wrong frame position when using the OpenCV 4.3.0

Hi, I encountered a problem when using OpenCV 4.3.0. When I use video_capture.set(CAP_PROP_POS_FRAMES, frame_index);, if the frame is a B-frame, there will be a problem. It seems that we cannot frame_index as a B-frame. But there is no function to detect whether a frame is a B-frame.

Does anybody know the solution to this problem? Seeking to the B-frame or avoid seeking to B-frame?