What are need:

  • Raspberry Pi Zero W (Any Raspberry Pi will work)
  • Raspberry Pi compatible camera
  • Time

Complete the following:

  1. Set up Pi headlessly:https://desertbot.io/blog/setup-pi-zero-w-headless-wifi
  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 get.docker.com -o get-docker.sh && sh get-docker.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://a.rtmp.youtube.com/live2/ key: xxxx-xxxx-xxxx-xxxx url + key = RTMP link = rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx

qwq~