Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.1 KB

docker_instructions.md

File metadata and controls

35 lines (21 loc) · 1.1 KB

Install docker

curl -sSL https://get.docker.com | sh
sudo usermod pi -aG docker
sudo reboot

Pull Docker Image

docker pull alexellis2/streaming:07-05-2018

Clone Repository and Rebuild

cd ~
git clone https://github.com/jneilliii/youtubelive --depth 1
cd youtubelive
docker build -t octoprint/youtubelive .	

Test

Set up your stream on the YouTube Live Dashboard and enter your stream id and IP address in the command below in place of xxxx-xxxx-xxxx-xxxx and .

docker run --device=/dev/vchiq --network="host" --name YouTubeLive -ti octoprint/youtubelive:latest http://<ip>:8080/?action=stream xxxx-xxxx-xxxx-xxxx null

Stream should go live and re-encode the OctoPrint stream to YouTube. Once verified close ffmpeg and remove docker container.

ctrl+c
docker rm YouTubeLive

OctoPrint Settings

  • Enter your stream id used above in the OctoPrint-YouTubeLive plugin settings.

  • Change your webcam stream url to a fully quliafied url using the ip address of your pi like

    http://192.168.1.101/webcam/?action=stream