Webcam and SMC problems
Try this: quit all apps attempting to use the camera, Finder -> Utilities -> Terminal (you'll likely be asked for your password, this is normal):

sudo killall VDCAssistant
sudo killall AppleCameraAssistant


…and reopen a camera app. I had an old MacBook Pro with a twitchy camera, and this solved it.