I'm really not sure where to ask this question.
I've set up two bird boxes each with a pi zero w with ir camera in them.
When I start the cameras streaming with raspivid streaming to youtube they are sending the signal nicely but I want the stream to only last about 30 minutes at a time. I've looked at the documentation which says that you use the -t variable to set the length of the capture in milliseconds. I've done this but the stream does not stop!
What I really want to do is set the command as a bash script which is called by cron each hour to stream for half an hour with each pi alternating so it doesn't kill my bandwidth too much! Any thoughts or help appreciated!
I'll then start on my "why does the cron job work on one pi and not the other" question!
Code as below:
Code:
raspivid -t 180000 -o - -w 1080 -h 720 -fps 25 -b 4000000 -g 50
The code then pipes to ffmpeg but that bit works fine!
Edited to add:
I know that 180000ms would be 3 minutes not 30 minutes but it doesn't even do just 3 minutes it won't blooming stop!