OpenCV uses ffmpeg and gstreamer.
reproduce this with those first, standalone. when that works, it’s an OpenCV problem. if that doesn’t work, it’s not an opencv problem but an ffmpeg/gstreamer problem.
that will receive no support at all in any case. why? if there was an issue, and it was fixed since then, you’re causing everyone pointless detective work.