Preview Yes, Full screen No
Preview window 700,200,200,100
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip Yes, vflip Yes
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
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
I get the above but only when running a bash script. Googleing ENOSPC seems to be related to too many open files. In bash how does one close down raspivid properly and close all files?
I have tried updating the software and firmware. i tried changing the /etc/modules.
rastistill and raspivid work fine from the command line. i actually get files saved some of the time. i want to bee sure i get recorded video for 5 or 10 minutes. i tried the memory split. i tried under and over clocking. something strange here.
Code: Select all
#!/bin/bash
#for automatically taking timelapse photos
sudo modprobe bcm2835-v4l2
sleep 10;
SAVEDIR=/home/pi/images/
while [ true ]; do
filename=PiCam-$(date +"%Y%m%d%H%M%S").h264
raspivid -o $SAVEDIR/$filename -t 600000 -vf -hf -p 700,200,200,100 -v
#sleep for 10 ten seconds
sleep 10
done;