Raspberry Pi Live Stream to Youtube
- Install Docker & Restart
curl -sSL get.docker.com | sh sudo usermod pi -aG docker sudo reboot
- Get your Live key from youtube and place it where it’s marked “x”.
docker run --privileged --restart=always --name cam -d alexellis2/streaming:17-5-2017 xxxx-xxxx-xxxx-xxxx
-d
means run in the background. Replace with-ti
to not.--restart=always
is to run on boot.name
is what you’re calling it, in my case it’scam
docker start cam
ordocker stop cam
will manually start and stop the camera.
Originally I wrote this post to not have this done via docker. It was error prone, and would’ve taken hours to complete if you were following all the steps.
Thankfully Alexellis did all the hard work and pushed it as a docker image that anyone could download. In fact this post is just a summary of his own: Live stream to YouTube with your Raspberry Pi and Docker
Notes:
Routers tend to overestimate data usage, so don’t be too alarmed if you see something similar: Help - Is my Pi Hacked? : raspberry_pi
I’ll follow up later with proper logging tools so we can be aware of what’s going on, all the time.