I only needed a simple webcam solution so I’ve used one called ‘webcam’ installed using
apt-get install webcam
this creates a config file /root/.webcamrc edit this file to suit your needs. Here’s mine for my own reference….
[grab]
      device = /dev/video0
      text = Logitech 3000 %d-%m-%Y %H:%M:%S (BST)
      fg_red = 255
      fg_green = 255
      fg_blue = 255
      width = 640
      height = 480
      delay = 30
      wait = 1
      input = usb
      norm = webcam
      rotate = 0
      top = 0
      left = 0
      bottom = -1
      right = -1
      quality = 75
      trigger = 0
      once = 0
      archive = /home/blah/archives/cam0 cam0 %d-%m-%Y %H-%M-%S.jpeg
[ftp]
      host = 127.0.0.1
      user = root
      pass = xxxx
      dir = /var/www/cams
      file = cam0.jpeg
      tmp = uploading.jpeg
      passive = 1
      debug = 0
      auto = 0
      local = 1
      ssh = 0