Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How-To - Automatically record cam4 profiles [unix]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. |
#2
|
|||
|
|||
Re: How-To - Automatically record cam4 profiles [unix]Well done,
I'm going to test it out. I've just finished to compile the rtmp pack (rtmp/rtmpsuck/srv...) and i was wondering how to use it... so here it is By the way: Did you try get_flash_videos? It claims to do the job very easly.. you just have to lunch it with the URL of the html page but in my case, it can't find any video I have to figure out why... because if i find a way, i could just use cron directly with this application. EDIT: Well, i thought it was easier it looks like hard for a newbie like me to get chromium... and anyway my server doesn't run a X server... shell only.. will it run? any other way to record? Last edited by clist : 05-21-2012 at 05:43 PM. |
Tags: auto, cam4, record, unix |
Thread Tools | |
Display Modes | |
|
|