bug
ffmpeg reports an error, the video frames read and written are seriously damaged
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