I was trying different solutions to stream my Raspian desktop to a second computer using Raspberry Pi 4b 4GB. I tested solutions closed source like UV4L (raspidisp) or open-source like v4l2tools/v4l2rtspserver with similar outcomes. The goal is trying to stream desktop compressed at a minimum of 720p/25fps, but in both cases, although the connection is reliable, the image produced is full of artifacts, sometimes 30% bottom of the screen is totally distorted for some seconds. This happens mostly in scenes with too much movement or big changes between frames (games, videos, quickly browsing up/down webpages...) and not still desktop images, making it unusable. These video glitches are present in all raspberry versions from 2 to 4.
In the background, these tools seem to use OMX for h264 encoding, and that seems to be causing the issues. When configured for using libx264 as encoder these issues disappear, but consumes all CPU resources being unable to keep up the pace
Is anybody aware of any other alternatives not affected by this issue? Gstreamer V4L2 pipeline?.