Hacker News new | ask | show | jobs
by forgotthetimer 955 days ago
(OP, temp user, forgot to disable the HN procrastination timer)

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.5
3 comments

Update: there's been a bunch of great messages so far, from people all over. But most importantly we've had a

    ');DROP TABLES;
Make a few model tables and have a lever on a servo push the tables off the desk upon DROP TABLES.
Did it work?!
Haha nope!
Check out the `--shutter` option for `libcamera-vid`, it allows you to tweak the camera's exposure time which might help with the screen refresh banding. `--shutter 60` sets the exposure time to 60ms, which might be a good starting point.

EDIT: Ah, actually the unit is microseconds, so `60000` would be 60ms

Hey thanks, this was a good catch. `--shutter 12000` fixes the screen, and is bright but not too bright.
Update 2: The servo's gears are absolutely grinding at the moment