Migrated from x11 grabber to v4l2 - now lights are lagging behind the TV image.

  • Hello,


    I am currently evaluating capturing the HDMI signal directly using an HDMI splitter with an HDMI to USB capture card.


    Some history:
    I'm currently using the x11 capture and the lights sync up perfectly to the tv. So I know the current setup works fine. I'd like to change the x11 capture to capturing the HDMI so that I can get the lights for video games, etc.


    Problem:
    So I've gone through the setup to get the HDMI capture working, and while it does work, there is definitely a delay in when the lights react to the tv, but the delay does seem constant.


    Debugging:
    I've tried disabling both black border detection and smoothing but that did not seem to help. I attached the same USB capture device on another computer and verified that the two HDMI streams are in sync. So at least the data that comes out of USB should be more or less synced with what the TV has. This leads me to believe that it's just the overhead related to v4l2 and at least as far as I know, there's nothing I can do about that.


    Long post short - is anyone else running v4l2 and have experienced a similar delay and if so, is there a fix for this? FWIW I am running this on a relatively low power device (intel compute stick with an m3 proc) so it's not the top of the line device it still is no slouch.

  • Dropping the res seems to have helped. THANK YOU!!!


    Are we talking about the frame size decimation? Or the usb grabber resolution. I haven't messed with the grabber resolution. Those settings sound like the same thing to me so I don't understand. I had a lot of flickering issues at decimation 8, due to poor quality video and noise in the image. I couldn't go lower due to the Pi Zero using 100% cpu. I migrated to a Pi 3 which allowed me to use no frame decimation, which corrected the flickering, but there's a small, maybe 50ms delay. How long is your delay? I suppose it's personal preference on what is acceptable, but my delay is just barely enough to be distracting to other viewers. Note: when troubleshooting I do have smoothing turned off.

  • I changed Device Resolution from auto down to 720x480. There is definitely a light lag still (but much better now) but previous experience with v4l2 makes me think its expected. If there's a way to get a better response time, I'm all ears.


    I have kept decimation the Size decimation the same (8) but have not messed with that much.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!