psieg / Lightpack

Lightpack and Prismatik open repository
GNU General Public License v3.0
1.57k stars 188 forks source link

Feature Request: Screen grabbing method from OBS / as streaming server. #481

Open Cekol93 opened 3 years ago

Cekol93 commented 3 years ago

Hello! I was wondering can you implement "screen grabbing method" as "streaming server". Already screen grabbing method - Win8 Screen duplication or WinAPI , they are slow, and not customable. There also is a big latency between screen output and leds action... Prismatic is amazing software, and probably most expandable right now. When I was running OBS Studio, it can handle streaming even constant 144FPS on low end hardware! We can set low bitrate, and output resolution for fast computing, and then stream it into prismatic software! Low latency and a lot of stable frames! Please!! Think about it!

Benik3 commented 2 years ago

There also is a big latency between screen output and leds action...

What you mean? I use 144Hz grabbing with Prismatik and I don't see any lag with my eye. Prismatik use same Desktop Duplication API for screen capture as OBS.

Cekol93 commented 2 years ago

Sorry for not responding ellier, but i "kind of fixed my issue". I just use beta version of prissmatik, where you can set high baud rate on com port (I use adalight / arduino nano ), and this fixed my problem :)

zomfg commented 2 years ago

and which one you were using and which one are you calling beta?

Cekol93 commented 2 years ago

I use this https://github.com/psieg/Lightpack/releases version. Its not beta, but its unofficial. I make my Ambilight lighting with this tutorial: https://www.youtube.com/watch?v=nzDnr76fZCc&ab_channel=BorisDusnoki I incresed baud rate to 1000000 and it works perfectly now (But sometimes my led strip blinks with wrong colors )

zomfg commented 2 years ago

the blinking is probably because of a too high baud rate, you can try lowering by something like 50k until it doesn't blink

Benik3 commented 2 years ago

The blinking can also be caused by faulty LEDstrip.
For high buadrates is better to use Arduino Pro Micro (which has only SW serial over USB, not HW like Nano), but with WS2812 and similar strips (without clock line) I recommend to use ESP8266 with non-blocking LED library: https://github.com/Benik3/Adalight_WS2812_ESP8266_Non-blocking