Logitech Webcam Issues - Raspberry Pi Forums


hello,

trying connect logitech hd pro webcam c920 via usb raspi, out hdmi port tv.

have written program (which working), seems raspi isn't able recognize webcam. getting error message:

"systemerror: ioctl(vidioc_s_fmt) failure: no supported formats."

here code:

code: select all

import pygame, sys import pygame.camera pygame.locals import *  mkrgr_1 = '/dev/video0' size = (1280, 720) filename = 'capture.jpg'  def camstream():      pygame.init()     pygame.camera.init()     display = pygame.display.set_mode(size, fullscreen)     camera = pygame.camera.camera(mkrgr_1, size)     camera.start()     screen = pygame.surface.surface(size, 0, display)     caption = pygame.display.get_caption()     pygame.display.set_caption(*caption)     capture = true       while capture:         screen = camera.get_image(screen)         display.blit(screen, (0,0))         pygame.display.flip()           e in pygame.event.get():             if e.type keydown , e.key == k_escape:                 capture = false      camera.stop()     pygame.quit()     return  if __name__ == '__main__':     pygame.display.set_caption('makergear m2')     camstream()
know way raspi work consistently webcam i'm using? what's frustrating work, , won't, no real discernible pattern.

help!



raspberrypi



Comments

Popular posts from this blog

Static ip - Raspberry Pi Forums

arduino bug sur secteur, batterie, mais pas en usb?

What voltage is sent to the arduino GND when a transistor is used