Raspberry Pi Live Streaming & WebRTC Talkback Rig

    1

    Deploy low-latency video streaming and WebRTC talkback on Raspberry Pi with optimized BLE/Wi-Fi co-existence.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Raspberry Pi Live Streaming & WebRTC Talkback Rig

    Example session with this skill installed

    Write a systemd unit file for the srs-publisher service and provide the ffmpeg command to stream 720p video from a CSI camera to a local SRS instance.

    • Read your context and instructions
    • Compiled the raspberry pi live

    I have generated the systemd unit configuration and the optimized FFmpeg pipeline for your Raspberry Pi smart helmet.

    Service Configuration and Media Pipeline

    [Unit]
    Description=Raspberry Pi Smart Helmet SRS Publisher
    After=srs.service network-online.target
    Wants=network-online.target
    
    [Service]
    Type=simple
    User=pi
    WorkingDirectory=/home/pi/helmet
    ExecStart=/bin/bash -c 'rpicam-vid -t 0 --inline --width 1280 --height 720 --framerate 24 --bitrate 1100000 -o - | ffmpeg -re -f h264 -i - -f alsa -ar 16000 -ac 1 -i hw:3,0 -c:v copy -c:a aac -b:a 64k -f flv rtmp://127.0.0.1:1935/live/helmet'
    Restart=always
    RestartSec=5
    
    [Install]
    WantedBy=multi-user.target
    

    Implementation Details:

    • Video Pipeline: Uses rpicam-vid for hardware-accelerated H.264 encoding to minimize CPU load.
    • Audio Mixing: Captures mono audio from ALSA device hw:3,0 (adjust based on arecord -l) and encodes to AAC.
    • Latency Control: Piped directly into RTMP at 1.1Mbps to maintain sub-second latency for the HTTP-FLV egress.

    Next steps

    1. Run arecord -l to verify your USB microphone is mapped to hw:3,0.
    2. Enable the camera overlay in /boot/firmware/config.txt and reboot.
    3. Start the service with sudo systemctl enable --now srs-publisher.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Struggling with high-latency video and Wi-Fi drops on Raspberry Pi IoT projects? This skill provides the configuration and logic needed to build a low-latency smart helmet system using SRS (Simple Realtime Server) and ARM-optimized media pipelines.

    What it does

    • Low-latency streaming implements sub-800ms video egress using HTTP-FLV and mpegts.js for real-time monitoring.
    • Two-way talkback routes browser-based WebRTC audio directly to physical Pi speakers via dedicated ingress scripts.
    • Radio contention management provides specific configurations to prevent Bluetooth LE scans from dropping Wi-Fi video frames.
    • Offline-resilient capture automates video chunking and metadata logging to ensure data integrity during network outages.
    • Edge provisioning enables zero-touch Wi-Fi onboarding via optical QR code scanning at boot.

    How it works

    1. Configure hardware by enabling CSI/USB camera overlays and identifying ALSA audio device indices.
    2. Deploy SRS via Docker or native binary to act as the media broker for RTMP, FLV, and WebRTC protocols.
    3. Initialize daemons using the provided systemd units for isolated video publishing, API handling, and GPIO monitoring.
    4. Proxy traffic through a public gateway or local subnet to bridge the gap between cloud frontends and local Pi APIs.

    Frameworks & tools

    Raspberry Pi (4B/5), SRS (Simple Realtime Server), FFmpeg, Python (Flask), Next.js, mpegts.js, WebRTC, BLE (Cypress CYW43455), and systemd.

    Why this beats prompting it yourself

    Generic AI prompts often suggest high-overhead tools like LiveKit or Ngrok which fail on resource-constrained ARM hardware. This skill enforces specific hardware-level optimizations for ALSA mixing and radio frequency isolation that general LLMs typically miss.

    Use cases

    • Industrial safety for real-time remote inspection with two-way audio and PPE detection.
    • Field service to provide hands-free technical support via low-latency head-mounted video.
    • Edge monitoring for remote sites where cellular bandwidth requires strict 50MB file chunking.

    Known limitations

    Requires hardware-specific paths for ALSA (e.g., hw:3,0) and CSI camera overlays. High-throughput video requires 5GHz Wi-Fi to avoid 2.4GHz BLE interference.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    Requires manual ALSA device indexing. 2.4GHz Wi-Fi will experience frame drops during active BLE scans. Designed specifically for Raspberry Pi 4B/5 hardware.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 12 days ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files
    Listed12 days ago

    What's inside

    Frequently Asked Questions

    This skill solves the common 'stuttering' issue on Raspberry Pi by implementing hardware-level radio contention management, ensuring Bluetooth activity doesn't drop your Wi-Fi video frames.

    The skill is optimized for Raspberry Pi 4B and 5; it requires a CSI or USB camera and a standard ALSA-compatible audio output for the talkback feature.

    The package includes the SRS (Simple Realtime Server) configuration, systemd service units, the media pipeline logic, and the edge provisioning scripts for QR-based Wi-Fi onboarding.

    Setup involves configuring your camera/audio overlays and deploying the provided daemons via Docker or native binaries, all of which are guided by the included deployment logic.

    Yes, the skill is designed to work with any AI agent or frontend capable of interacting with Flask APIs and rendering mpegts.js or WebRTC streams.

    The skill utilizes automated video chunking and metadata logging to ensure that if the network drops, your footage is safely stored locally until connectivity is restored.

    New in APIs & Backend

    Free