41 points · by GSGBen · 3y ago · 20 comments
- There's a buzzer that plays a sound as well but the stream has no audio.
- There's a Pi Zero 2 W with a Camera Module 3 streaming the video. Streaming low latency video is painful. I tried mjpeg, Nginx+HLS/DASH, YouTube and Twitch. Twitch is definitely the easiest and best-performing.
- There's still a few seconds delay between sending your message and the video updating.
For anyone trying to do this in the future, here's the command to stream from a modern Pi camera module / driver to twitch. IIRC I also had to install the full version of the libcamera tools to use the libav switches.
libcamera-vid -v 0 -t 0 --codec libav --libav-format flv -o "rtmp://<twitch stream url>/<twitch stream key>" --rotation 180 --width 1920 --height 1080 --framerate 30 --bitrate 4000000 --autofocus-mode auto --autofocus-window 0.25,0.15,0.5,0.5EDIT: Ah, actually the unit is microseconds, so `60000` would be 60ms
I see only the hand moving.
Down now, but sounded interesting!