I’m doing video tests from an Aver Media GL310 capture device to a ps4, but when I show it in Python, only a black screen appears.
I’m using OpenCV and with the webcam everything works fine. Also, at first it didn’t recognize the USB index until I installed the Aver Media software, but now it shows up as black. From the software the image appears fine.
I’m using some simple code, and after searching I tried to change resolution, fps, add python exceptions in antivirus, timeouts, but nothing seems to work.
import cv2
cap = cv2.VideoCapture(2)
cap.set(3,640)
cap.set(4,480)
while True:
ret, img = cap.read()
cv2.imshow("input", img)
key = cv2.waitKey(1)
if key == 27:
break
cap.release()
cv2.destroyAllWindows()
Here is an image, at low resolution it seems to be trying to show something, but at high resolution it is totally black. I appreciate any response. https://i.stack.imgur.com/YtCUv.png