Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (Adult streaming videos) (http://stream-recorder.com/forum/forumdisplay.php?f=40)
-   -  

How-To - Automatically record cam4 profiles [unix]

(http://stream-recorder.com/forum/showthread.php?t=11135)

randombod 03-02-2012 03:39 AM

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.

clist 05-21-2012 03:23 PM

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?


All times are GMT -6. The time now is 10:25 AM.