Why Nostr? What is Njump?
2025-04-23 23:41:35

Dr. jonny phd on Nostr: Helping a labmate stream a video from python that gets processed framewise as a ...

Helping a labmate stream a video from python that gets processed framewise as a series of arrays to the browser for some dashboard, and the amount of tutorials that encourage you to encode every frame as a b64 JPEG and dynamically update the src attribute on an img element are too damn high. I even saw an example in a major package that converted to jpg, rendered the jpg in a canvas element, and then re-rendered the canvas to a b64 jpeg string before setting it as an img src.

Sometimes it feels like the python ecosystem has just never heard of "video codecs" before
Author Public Key
npub1nyn0d3f3vgefljenfq0schd55q2mm43a2errd6sncdw5jawpwm3s3dxmrh