Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5045

Troubleshooting • Re: USB Camera Detects but video won't work?

$
0
0
As it says it hasn't found a USB camera....

Try this and show me the output

Code:

   # find USB cameraimport osx = 0while x < 42:    txt = "v4l2-ctl -d " + str(x) + " --list-ctrls > /run/shm/cam_ctrls.txt"    os.system(txt)    ctrls = []    with open("/run/shm/cam_ctrls.txt", "r") as file:        line = file.readline()        while line:            ctrls.append(line)            line = file.readline()    print(x,ctrls)     x += 1 

Statistics: Posted by gordon77 — Thu Aug 08, 2024 3:44 pm



Viewing all articles
Browse latest Browse all 5045

Trending Articles