A Gstreamer example on how to add information (camera orientation) in the form of subtitles into the mp4 container with H265 video. Data is inserted at a periodic interval of about 10ms.
I read your requirement i have pretty well experience in this domain i can do this in less time and at best quality price .
i assure you one thing that is your satisfaction .
Best regard
zain k