-
Notifications
You must be signed in to change notification settings - Fork 50
Operating
Following these instructions you'll be able:
- Get flumotion streaming collector running
- Get flumotion streaming encoder running
- Register the encoder with the website
- Start the watchdog on the encoder
Assumption: software and config files are installed for:
- dvswitch (aka mixer)
- collector - setup: https://github.com/timvideos/streaming-system/blob/master/tools/setup/runall.sh
- encoder
- web site
- The room (or organization / event) has already been setup on the website
- There is SSH access to the encoder
To do all that: InstallApps put this in ~/.bashrc
export ROOMNAME=room338
export USER=abc
export PASSWORD=def
export SECRET=ghiWhere USER, PASSWORD, SECRET is the same as in the planet.xml which comes from config.private.json.
Operation:
- Modify file
/usr/share/etc/flumotion/managers/default/planet.xml
- Look for
<flow name="default">Under here update<property name="uri">dvswitch://DVSWITCHHOST:2000</property>replacing DVSWITCHHOST with your dvswitch's host name. - Next look for
<component name="fgdp-audio-video"Under here update<property name="host">ENCODERHOST</property>replacing ENCODERHOST with the host name or IP address of your encoder.
- Restart flumotion
sudo service flumotion restart
sudo service flumotion start- run the register and watchdog in a tmux session:
tmux(tmux attachwill get you back into an existing session) cd streaming-system/tools/registerwhile true; do python register_wrapper.py -g $ROOMNAME -m $USER:$PASSWORD@localhost:7531 -s "$SECRET" ; sleep 3 ; done- new tmux session and run the watchdog Ctrl-B, c for a new window in tmux
cd streaming-system/tools/watchdogwhile true; do sudo python watchdog_wrapper.py -m $USER:$PASSWORD@localhost; sleep 1; done
This script restarts the flumotion service if any of subparts of flumotion go hungry for 30 seconds.
More notes: Start a virtual env install boto download the script Get Carl's pw.py file credentials (he said he found them, and didn't clear sending them by email...). check status "python list_aws_hosts.py" start mission "python list_aws_hosts.py start mission" get the status of mission (wait a little bit first) "python list_aws_hosts.py status mission" If the status says pending, wait longer. Once it says running ssh in with your key to the ubuntu user (the status command also gives the IP address based domain name).
The room will be chipy, the user:password and secret are common to the webserver. The past commands are in "history" once you ssh in to mission, be sure to run the watch dog as root (it restarts the service, alternatively you can restart the service by hand).