I would like to embed data into an H.264 stream using User data unregistered SEI messages. What is the easiest or proper way to achieve this in GStreamer?
I found this commit. It inserts SEI messages (of another kind) into the H.264 NAL stream by modifying a GstBuffer, employing a GstByteReader to find a NAL start code etc. I find this quite low level and was hoping to find an easier solution, using GstH264Parser.
Ideally, my data would be added to the RAW video frames using GstMeta before encoding. I would then put another element after the encoder to take my GstMeta data and embed it as SEI messages.