Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork51
Native WebRTC low-latency P2P video streaming on Raspberry Pi and NVIDIA Jetson with both hardware and software encoding support.
License
TzuHuanTai/RaspberryPi-WebRTC
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Turn Raspberry Pi or NVIDIA Jetson into a low-latency ~200ms WebRTC streaming platform.
Native WebRTC with hardware/software encoding
Support snapshot, recording andbroadcasting
Remote control and IoT messaging via WebRTC DataChannel
Signaling options:
MQTT
WebSocket
- picamera.js - SFU signaling & broadcast
- Raspberry Pi (Zero/3/4/5) orNVIDIA Jetson (Nano/NX/Orin)
- CSI or USB camera (supports libcamera, libargus or V4L2)
Check out thetutorial video or follow these steps.
UseRaspberry Pi Imager to flashLite OS to SD card.
sudo apt updatesudo apt install libcamera0.5 libmosquitto1 pulseaudio libavformat59 libswscale6 libprotobuf32
Get the latestrelease binary .
wget https://github.com/TzuHuanTai/RaspberryPi-WebRTC/releases/latest/download/pi-webrtc-v1.2.0_raspios-bookworm-arm64.tar.gztar -xzf pi-webrtc-v1.2.0_raspios-bookworm-arm64.tar.gz
UseHiveMQ,EMQX, or aself-hosted broker.
Tip
MQTT lets your Pi camera and client exchange WebRTC connection info.WHEP doesn’t need a broker but requires a public hostname.
- Openpicamera-web, add MQTT settings, and create a
UID. - Run the command on your Pi:
./pi-webrtc \ --camera=libcamera:0 \ --fps=30 \ --width=1280 \ --height=960 \ --use-mqtt \ --mqtt-host=your.mqtt.cloud \ --mqtt-port=8883 \ --mqtt-username=hakunamatata \ --mqtt-password=Wonderful \ --uid=your-custom-uid \ --no-audio \ --hw-accel# Only Pi Zero 2W, 3B, 4B support hw encoding
Important
Remove--hw-accel for Pi 5 or others without hardware encoder.
About
Native WebRTC low-latency P2P video streaming on Raspberry Pi and NVIDIA Jetson with both hardware and software encoding support.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.


