Potential fix to lower h.264 decode latency
Posted: Fri Jul 31, 2026 3:40 pm
Recently I was watching an interesting video by MattKC about Nintendo Wii U gamepad video stream reverse engineering and something caught my eye that I think would be helpful for Hudiy (linking a time stamped part of the video): https://youtu.be/si-TUEwC5_M?t=814
Similarly to my experience with Hudiy, openDsh, Crankshaft, OpenAuto Pro on Raspberry Pi, MattKC has found significant latency of h264 decoding on Raspberry Pi. While Hudiy does the best job with performance out of all the android auto emulators I've tried, at least on my setup - the latency is still fairly high.
Fortunately, MattKC was able to find and implement a fix that greatly reduced h264 decode latency, essentially leaving only a tiny 4 frame delay (for which currently the cause is unknown, this doesn't happen on Allwinner based Orange Pi Zero 3).
The video explains the issue and solution nicely.
I'm linking the actual relevant commit here: https://github.com/vanilla-wiiu/vanilla ... 4f46dc7115
And the Raspberry Pi forum post that discovered the fix: https://forums.raspberrypi.com/viewtopi ... 01#p334801
Could this also be applicable to Hudiy?
Similarly to my experience with Hudiy, openDsh, Crankshaft, OpenAuto Pro on Raspberry Pi, MattKC has found significant latency of h264 decoding on Raspberry Pi. While Hudiy does the best job with performance out of all the android auto emulators I've tried, at least on my setup - the latency is still fairly high.
Fortunately, MattKC was able to find and implement a fix that greatly reduced h264 decode latency, essentially leaving only a tiny 4 frame delay (for which currently the cause is unknown, this doesn't happen on Allwinner based Orange Pi Zero 3).
The video explains the issue and solution nicely.
I'm linking the actual relevant commit here: https://github.com/vanilla-wiiu/vanilla ... 4f46dc7115
And the Raspberry Pi forum post that discovered the fix: https://forums.raspberrypi.com/viewtopi ... 01#p334801
Could this also be applicable to Hudiy?