All
Someone asked if there was anything to record cam4 streams and I had cobbled together a python script which send out email alerts, it was quite simple to setup the auto record.
Description
The script will check if a user is online, if they are it will spawn a chrome browser which passes the video to rtmpsuck and send and alert email. If there are 2 users online at the same time rtmpsuck cannot cope, so the script sends an alert so that you can manually override the current recording stream.
I have this running on a media server, i have an additional X server running on display :2 so when the browser starts i need to export the display, if you are running this local then remove the export display command on line 45.
Requirements
Unix system
python
chromium-browser (update the flash)
rtmpsuck
sendmail
Setup
1: Setup rtmp suck using the following
Tutorial
I have it running within a screen session on boot
2: Setup sendmail, there's enough on Google for this.
3: Download the python script from
Here
4: Edit the parameters to reflect the user running the display, email address and profiles to monitor
5: Add to a cron job to run every 5/10/15 minutes
I have tested this for a number of scenarios but it may fall on its ass, let me know if it needs debugged.