Raspberry Pi Live Stream to Youtube

  1. Install Docker & Restart
    curl -sSL get.docker.com | sh
    sudo usermod pi -aG docker
    sudo reboot
    
  2. 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
    
    1. -d means run in the background. Replace with -ti to not.
    2. --restart=always is to run on boot.
    3. name is what you’re calling it, in my case it’s cam
    4. docker start cam or docker 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

Google Wifi Admin Usage

I’ll follow up later with proper logging tools so we can be aware of what’s going on, all the time.