Currently more of a goal, I don't have a working POC yet.
While looking into solutions for recording directly to video, I wanted to still have a GUI for interactivity (for pygfx/shadertoy#55). One thing I read in the documentation is https://www.ffmpeg.org/ffmpeg-devices.html#lavfi if it works could open up some potential. Like writing frames to a encoder (which could also be the streamed remotely).
There is a GUI to this to via ffplay but I haven't had the time to look into potential python bindings.
Worst case it's a worse offscreencanvas, which wouldn't make sense to upstream.
Opening this issue to invite suggestions, I hope to have a prototype sometime later this week.