-
Notifications
You must be signed in to change notification settings - Fork 5
jazmit/rtmplite-s3-integration
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
More rtmplite details at http://code.google.com/p/rtmplite and http://code.google.com/p/siprtmp First, you must install boto which is Python interface to Amazon Web Services. More boto at https://github.com/boto/boto Then you must config the S3.ini with S3 identity. To run schoolshape rtmplite by typing `python main.py` using default config. If you want to run this app manually, type `python rtmp.py -h` for more details to run rtmplite. This application will upload the recorded file to S3 automatically. If you wanted to record stream with rtmpt procotol, type `python rtmpt.py -h` for more details. Logging file is stored in `/var/log/rtmplite/rtmplite.log`. ---- init for schoolshape install script: apt-get install git python-pip ffmpeg -y pip install boto git clone https://github.com/jamesinchina/rtmplite-s3-integration.git mv rtmplite-s3-integration /usr/local/share/ ## also add this 2 line to /etc/rc.local nohup python /usr/local/share/rtmplite-s3-integration/main.py > /dev/null 2> /dev/null & nohup python /usr/local/share/rtmplite-s3-integration/rtmpt.py -l 0.0.0.0:5081 > /dev/null 2> /dev/null & ## add this line to /etc/crontab 11 5 * * * root /bin/rm -f `/usr/bin/find /videoStreams -name *.uploaded -mtime +30` 30 5 * * * root /bin/rm -f `/usr/bin/find /videoStreams -mtime +60` mkdir /var/log/rtmplite/ -p chmod a+w /var/log/rtmplite/ mkdir -p /videoStreams/public mkdir -p /videoStreams/public/logo mkdir -p /videoStreams/public/logo/video mkdir -p /videoStreams/public/logo/image mkdir -p /videoStreams/public/logo/audio mkdir -p /videoStreams/public/logo/flash mkdir -p /videoStreams/public/sheet mkdir -p /videoStreams/public/sheet/video mkdir -p /videoStreams/public/sheet/image mkdir -p /videoStreams/public/sheet/audio mkdir -p /videoStreams/public/sheet/flash mkdir -p /videoStreams/private mkdir -p /videoStreams/private/answer mkdir -p /videoStreams/private/answer/video mkdir -p /videoStreams/private/answer/image mkdir -p /videoStreams/private/answer/audio mkdir -p /videoStreams/private/answer/flash mkdir -p /videoStreams/private/exam mkdir -p /videoStreams/private/exam/video mkdir -p /videoStreams/private/exam/image mkdir -p /videoStreams/private/exam/audio mkdir -p /videoStreams/private/exam/flash chmod -R a+wr /videoStreams To start rtmps: apt-get install stunnel stunnel.conf: [rtmps] accept = 443 connect = 5081
About
Adds an uploader to S3 to rtmplite
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published