I built a smart door solution with a RPi B+ (Raspbian) which makes use of three sensors (PIR, Gyroscope [I2C] and an Ultrasound). Depending on the sensor status managed by a Python script, I start recording a video by using the raspivid command and/or play sounds on Bluetooth speakers. I also have a USB WIFI dongle connected to the RPi.
This is how I call the Pi NoIR camera in my .sh file:
raspivid -w 800 -h 600 -t 15000 -o file.h264 -n -rot 270
The camera works fine for a while (I cannot precise for how long [2 hours maybe] nor what triggers the issue), but then it stops working. The funny thing is that I get no error message.
What did I do to identify the root cause:
I tried to manually kill the child process (Raspivid) but it simply doesn't work. If I kill the parent process (.sh file) then my child process gets assigned to the PID 1 (init.d).
I tried recording a new video in a new terminal window but the new process hangs too.
Rebooting the Pi doesn't work neither. It says it is rebooting but it does not (not even with the -f option).
I installed a new Pi Camera ensuring it was not a hardware or ribbon problem.
Have you ever faced this issue? How can I get it fixed? Thanks!