- @david
Hi, I have multiple TinyPilot devices, one is working great when connected, but the other one is lagging severely. They both are on H264 setting. one follows my mouse live time, the other one lags behind at least 5-7 seconds.
Is there any other setting I should be looking at?
See log attached for the one with the issue
- David @david2024-10-25 11:05:01.762Z
Hi @arkahmw, I'm sorry you're running into this latency on one of your TinyPilot devices.
Thanks for sharing that log! I can see that although you've selected H.264 streaming, your device is actually using MJPEG streaming, which might explain this latency.
In instances like this configuring a STUN server often helps establish an H.264 stream. Could you try configuring a STUN server to see if that helps?
Can I ask whether you're connecting to your TinyPilot on the local network, or are you connecting remotely over the internet using a third-party service like Tailscale?
Please let me know if you have any questions.
I'm not using any 3rd party service, I just added a static IP in my router and then forwarded the port
- David @david2024-10-29 12:17:54.490Z
Thanks for those details. Have you tried configuring a STUN server here to try and make your TinyPilot establish the H.264 connection?
Is your other TinyPilot (the one that isn't lagging) set up identically to the one that is? i.e., forwarding the port with a static IP?
I have not used a stun server for either, they're both set up identical
- David @david2024-10-30 11:59:09.754Z
Thanks!
Could you share a TinyPilot log from the TinyPilot that's not lagging for me to review?
Could you configure a STUN server and let me know if that helps establish the H.264 connection on the lagging TinyPilot?
Please let me know if you have any questions.
I think the STUN server worked
- David @david2024-10-31 12:02:38.535Z
Thanks for the update @arkahmw! I'm glad configuring a STUN server worked.
Feel free to reach out again if you have any questions.
- Progresswith handling this problem