Skip to content

Instantly share code, notes, and snippets.

@alexellis
Last active March 25, 2022 19:28
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save alexellis/9e3db965518dd3795708ef13b3bc89f3 to your computer and use it in GitHub Desktop.
Save alexellis/9e3db965518dd3795708ef13b3bc89f3 to your computer and use it in GitHub Desktop.
Live Stream to YouTube from your RPi with Docker

Live Stream to YouTube from your RPi with Docker

Normally ffmpeg needed to stream to YouTube takes 8-9 hours to build on a PiZero. You can download my image here and run it with your secret key:

docker run --privileged -ti alexellis2/streaming:17-5-2017 <secret>

Bill of materials:

  • Raspberry Pi Zero

  • RPi camera and cable

  • Latest Docker version via curl -sSL get.docker.com | sh

Thanks to Richard Gee for the inspiration of streaming from a Pi Zero and for helping to test between 8 hours builds.

The download is around 640mb compressed and a 1.3GB image but way quicker than compiling this from scratch.

Feel free to ask questions on Twitter @alexellisuk

Do you want to build it yourself?

Gists for base ffmpeg and streaming Dockerfile

Sample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment