← Open Source

Low-latency hardware-accelerated WebRTC video streaming and remote control for Raspberry Pi & NVIDIA Jetson.

AI EngineeringMake agent see hear talkC++
Momentum
+0stars in 24 hours0.0%
999
Stars
58
Forks
+1
This week
3
Contributors
Created 2022-05-09 · Updated 2026-12-03 · #15206 today
Top developers
TzuHuanTaithomergilKevinXuxuxu
README

pi-webrtc

What is pi-webrtc?

A single binary that streams a camera from a Raspberry Pi or Jetson to a browser over WebRTC, and carries control messages back to the device. It delivers sub-100ms latency on LAN and works remotely over WiFi, LTE, or 5G with no public IP.

▶ Watch the full demo

Features

  • Low-latency video — WebRTC with NAT traversal and congestion control.
  • Remote control — commands and telemetry over WebRTC DataChannels.
  • Hardware acceleration — H.264/AV1 on supported devices.
  • RTSP input — add WebRTC and DataChannels to an existing IP camera.

Signaling

Signaling Use case
WHEP Playback with any standard WebRTC player
MQTT Peer-to-peer from anywhere, with device control
SFU Many viewers at once via LiveKit or Cloudflare Realtime

Several signaling options can run at the same time. See Signaling.

Quick Start

On a Raspberry Pi with Raspberry Pi OS Trixie (64-bit) and a CSI camera:

sudo apt update
sudo apt install libmosquitto1 libpulse0 libyaml-cpp0.8 libavformat61

wget https://github.com/mazupo/pi-webrtc/releases/latest/download/pi-webrtc_raspios-trixie-arm64.tar.gz
tar -xzf pi-webrtc_raspios-trixie-arm64.tar.gz

./pi-webrtc --camera=libcamera:0 --uid=my-pi --no-audio --use-whep

Sign in to Mazupo Cloud for free, open WHEP, enter http://<your-pi-ip>:8080, and select Play.

Step-by-step guides: Raspberry Pi · NVIDIA Jetson · Watch from anywhere with MQTT

Hardware

Platform Camera backend Hardware encoding
Raspberry Pi libcamera H.264 on supported models
NVIDIA Jetson libargus H.264 / AV1 on supported models

USB cameras (V4L2) and RTSP streams work on both platforms.

Documentation

📚 Full documentation, also readable in docs/.

pi-webrtc Pro

pi-webrtc Pro adds object detection and tracking on Jetson, all cameras in one process, and LiveKit without a token server. It comes with every paid plan of Mazupo Cloud. See pi-webrtc Pro.

License

Apache-2.0 — see LICENSE. Third-party notices: see NOTICE.

Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store