as some of you might remember, i switched over to the apertus/axiom team, where we are developing an opennsource 4k raw camera.
with some help from al3ks from the magic lantern team, there was a concept found, for transmitting "experimentalexperimental raw" over hdmi.
maybe this idea/code is usefull for your problem as well, as it uses an 1080p stream to record raw video to an external recorder, which thinks its recording a normal hdmi stream. the signal later gets decoded an becomes useable in the post.
the video and all of its parameter are still live viewable, so one can see the image which gets recorded

greetings
walter