Code: Select all
#!/bin/bash
echo "Content-type: text/html"
echo
raspistill -o -
The CGI script seems to work via command-line and the browser, but as soon as I start motion, I get this error:
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates
There seems no way to reset it; I have to reboot. Do I need to to tweak some memory settings?