What are need:
- Raspberry Pi Zero W (Any Raspberry Pi will work)
- Raspberry Pi compatible camera
- Time
Complete the following:
- Set up Pi headlessly:https://desertbot.io/blog/setup-pi-zero-w-headless-wifi
- Install Nano:
apt-get install nano
- Enable root:
3.1. Edit this filesudo nano /etc/ssh/sshd_config
3.2. Find this linePermitRootLogin without-password
3.3. Change it toPermitRootLogin yes
3.4. Restart Pireboot
or restart service/etc/init.d/ssh restart
3.5. Set password for rootsudo passwd root
- Login with root
- Enable camera:
5.1. Go to settingsraspi-config
5.2. Find Interfacing Options
5.3. Enable camera
Livestream with Docker
- Install Docker:
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
- Download Docker Image:
docker pull cocdeshijie/pi_stream
- 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
Comments NOTHING