Stream to Any Platform That Supports RTMP With Raspberry Pi Zero W and Docker

Post last updated:2020-10-19

What you need:

  • Raspberry Pi Zero W(can use any pi, but zero w come with wifi)
  • Pi Camera
  • Your Hand
  • Time

Complete these steps first:

  1. Set up Pi headlessly:
  2. Install Nano:apt-get install nano
  3. Enable root:
    3.1. Edit this file sudo nano /etc/ssh/sshd_config
    3.2. Find this line PermitRootLogin without-password
    3.3. Change it to PermitRootLogin yes
    3.4. Restart Pirebootor restart service /etc/init.d/ssh restart
    3.5. Set password for rootsudo passwd root
  4. Login with root
  5. Enable camera:
    5.1. Go to settings raspi-config
    5.2. Find Interfacing Options
    5.3. Enable camera

Livestream with Docker

  1. Install Docker:curl -fsSL -o && sh
  2. Download Docker Image:docker pull cocdeshijie/pi_stream
  3. Create container:docker run --privileged --name cam -d --restart=always cocdeshijie/pi_stream {RTMP link}
    • change {RTMP link} to your RTMP link
    • Example(Youtube): url: rtmp:// key: xxxx-xxxx-xxxx-xxxx url + key = RTMP link = rtmp://

All content on this site uses CC BY-SA 4.0 license!