Better HN
topnewbestaskshowjobs
Log inSign up

forgotthetimer

9 karma · joined Nov 11, 2023 (3y ago) · 4 submissions

Submissions

comment 3y ago · link · parent

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

    ');DROP TABLES;

comment 3y ago · link · parent

Getting the data onto the screen is fine, and IRL I can't see any flicker, but the OLED screen itself is apparently refreshing at something like 107 or 133 Hz.

comment 3y ago · link · parent

Yep, it should show on the screen but unfortunately the camera refresh rate is out of sync with the screen's refresh rate so it's a bit hard to see. I need to read the datasheet again and drop the screen's refresh rate - I tried adjusting the camera's instead but it was never quite right.

comment 3y ago · link · parent

(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