【Debug】could not find ref with poc XXX解决

bug

ffmpeg reports an error, the video frames read and written are seriously damaged
Please add image description

Error reporting location:

cap= cv2.VideoCapture(video)
cap.set(cv2.CAP_PROP_POS_FRAMES, ith)

solution:

To convert the video encoding format from H265 to H264, other people's solution on the Internet is to add threads to increase the reading speed of the 265 format to follow up the processing speed.
My suggestion is to transcode

In summary, I am convinced of Hikvision cameras.

Guess you like

Origin blog.csdn.net/qq_41950533/article/details/125216412