'#rtp{sdp=rtsp://:8554/}' :demux=h264 1) first update and then sudo apt-get install python3-picamera 2)now write this programme in python3 new file.. import picamera print("Camera is ready to take a picture") with picamera.PiCamera() as camera: camera.resolution= (1280,720) camera.capture("/home/pi/Desktop/camera/image.jpg") print("Picture is taken")