# OpenCV capture black screen video

**URL:** <https://forum.opencv.org/t/opencv-capture-black-screen-video/7197>\
**Category:** Python\
**Created:** [January 19, 2022, 3:53am UTC](https://forum.opencv.org/t/opencv-capture-black-screen-video/7197 "2022-01-19T03:53:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/alejandro/32/4274_2.png) [@Alejandro](https://forum.opencv.org/u/Alejandro)\
**Post date:** [January 19, 2022, 3:53am UTC](https://forum.opencv.org/t/opencv-capture-black-screen-video/7197/1 "2022-01-19T03:53:01Z")

</div>

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.

```auto
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](https://i.stack.imgur.com/YtCUv.png)

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [January 19, 2022, 7:47am UTC](https://forum.opencv.org/t/opencv-capture-black-screen-video/7197/2 "2022-01-19T07:47:27Z")

</div>

related:

> <https://stackoverflow.com/questions/70764229/opencv-capture-black-screen-video>
