Can you test out your camera a bit? It looks like the camera isn't responding well. Try running the following command and see if your camera has taken a picture named test.jpg and saved it on your Desktop.
sudo raspistill -o /home/pi/Desktop/test.jpg
If it does this then your camera works good. If you are not able to get this, then you can refer to our video here and the Pi camera documentation to learn how to connect and have your camera working. This should fix your problem.
Please let us know if this helps,