whatever that did, please do this instead. I only rearranged the code to use a single nextFrame
. while-true loops are okay.
cap = cv2.cudacodec.createVideoReader(url)
while True:
(ret, frame) = cap.nextFrame()
if not ret: break
frame = cv2.cuda.cvtColor(frame,cv2.COLOR_BGRA2BGR)
image = frame.download()
pushing(image)