So I first tried this on a PiZeroW, but seeing the slow response (despite plenty of CPU headroom), I tried a Pi4. Same results.
First off, here's what I'm seeing:
tl;dr - how do I reduce the 'lag'?
Details:
HyperBian 2.0.0-alpha.11
Controller Type: ws2812x
GPIO 18
DMA 10 (and I tried 5, no difference)
PWM Channel 0
Hardware LED Count 256
Capture Device Res: 720x480,5 FPS, 4 Size Dec.
Capture Device is this -
LED's: WS2812B (5 wires on each side, 2 power and gnd and then 3 (Red/Grn/Wht) on each end) -
Wiring/Cables:
Barrel Female - PC PSU (temporary but plenty of amps), 5V and GND off 4 Pin Molex
Barrel Male - Positive (MicroUSB +, Start of LED Strip Red, End of Strip Red) - Negative (MicroUSB -, Start of LED String White, End of Strip White)
HDMI Splitter is powered separately (for now) via 5V micro USB, 2A. 4K HDR in, Scale down to 1080 out to Capture Device
Green (Data) from start of LED Strip -> GPIO 18 (Pin 12)
White (GND) from start of LED Strip -> GND (Pin 2)
Not connected: Red from start of LED Strip, Red/Green or White wires from end of LED Strip.
Notes:
1. With the PiZero I use the MicroUSB, with the Pi4 right now because it's USB-C, I'm powering it separately. Same behavior regardless of Pi.
2. Hyperion is running under root (this was needed)
3. Set audio off in config.txt (no difference in response between it being on, or off in my case)
4. At the moment, I'm using the full 5m/300LED strip, but only 256 on the strip (just didn't want to cut it if I have to return them), the remaining LED's don't light up (as expected)
5. No difference in response when I didn't have the tail end of the strip +/- connected to the PSU.
6. Currently running no resistors or caps... seems to be several out there with better response that I'm seeing without doing any of that. As I'm not trying to power the strip off the Pi (it doesn't have the current anyhow).
7. FWIW, the Live Video preview in LED Layout Preview looks terrible, massively desaturated.. is this by 'design'? Clearly it's getting more color detail than it shows here because the strip does set the right (close enough, haven't bothered calibrating yet) colors.
I've seen other videos of people claiming to do this same setup, even in a PiZero and video of their setup looks more responsive.
Could this be a problem with the capture card (or the scaling to it)? Any ideas on how to test if it's the weak link?