Revision 2401aa5bba7b1cf69aeb75e8352d43552105c891 (click the page title to view the current version)

SW/LiveStream/index

Changes from 2401aa5bba7b1cf69aeb75e8352d43552105c891 to 50cbfe350977ed7cfcf4dcd304cb221c8946e249

---
format: markdown
author: Ing. Petr Mácha
title: Golem LiveStream guide
...

# Step-by-step guide to golem LiveStream
First, several steps must be performed on youtube side:

1. Open https://www.youtube.com

2. Log into the golem account

<img src="http://golem.fjfi.cvut.cz/wiki/SW/LiveStream/images/youtube1.png" alt="drawing" width="1200"/>

3. Click on "vysilat zive"

<img src="http://golem.fjfi.cvut.cz/wiki/SW/LiveStream/images/youtube2.png" alt="drawing" width="1200"/>

4. Check if option "vkladani" is turned on.

<img src="http://golem.fjfi.cvut.cz/wiki/SW/LiveStream/images/youtube3.png" alt="drawing" width="1200"/>

<img src="http://golem.fjfi.cvut.cz/wiki/SW/LiveStream/images/youtube4.png" alt="drawing" width="1200"/>

5. Copy path of URL and copy-paste into /golem/database/www/remote_app/golem_web_app/secret_settings.py. There is a variable VIDEO_STATUS_ID. Paste the part of the path (the unique part of URL) into this variable.

<img src="http://golem.fjfi.cvut.cz/wiki/SW/LiveStream/images/youtube5.png" alt="drawing" width="1200"/>

6. Start the stream.sh script using: `bash stream.sh`. It is beneficial to start the script in tmux session.
(6). It might be necessary to restart pulseaudio services. In order to do that, first close the service with `pulseaudio -k` and than start it again with `pulseaudio -D`

7. The stream should start. Sometimes it is necessary to restart Apache2 service on the golem server (Supermicro) to refresh from old stream.
7. Start the stream.sh script using: `bash stream.sh`. It is beneficial to start the script in tmux session.

8. The stream should start. Sometimes it is necessary to restart Apache2 service on the golem server (Supermicro) to refresh from old stream.