hydra-synth / hydra

Livecoding networked visuals in the browser
https://hydra.ojack.xyz
GNU Affero General Public License v3.0
2.12k stars 255 forks source link

set initStream quality #262

Open kaosbeat opened 11 months ago

kaosbeat commented 11 months ago

When using the window sharing functionality of Chromium using initStream I cannot control the quality of the stream and it renders the window I share with terrible compression, both pixelwise and colorwise. Given that I'm sharing on a the same PC, or on a wired local network, I have the bandwidth, but I cannot find a way to increase the quality, framerate.

I tried setResolution() on both source and destination, but I achieve only minor improvements (not related to the streaming I think)

I'm using

s0.initScreen()
pb.setName("sourcewindow")
src(s0).out(o0)
render(o0)

to share a window on one PC and


s2.initStream("sourcewindow")
src(s2).out(o0);

to receive it on the other end.

Anything I should add to bump the quality up a notch?