Custom SEI message in H265 enc

We’re running on a Xavier NX streaming over RTSP with this pipeline:

GST_DEBUG=3 ./test-launch
“filesrc location=gray8.raw !
rawvideoparse width=1920 height=1200 framerate=25/1 format=gray8 !
nvvidconv ! video/x-raw(memory:NVMM),format=NV24 !
nvv4l2h265enc bitrate=2000000 !
h265parse !
rtph265pay name=pay0 pt=96”

How can I embed custom SEI messages (for example, GPS or camera metadata) into the H.265 stream using nvv4l2h265enc, and then extract that metadata on the client side? Any suggestions ..?

Maybe check H265 spec to check if able append the data to the header for it.

Thank you for your response. I don’t see any option in nvv4l2h265enc for inserting custom SEI metadata (for example, GPS or camera data). Is there a custom plugin available for adding SEI messages and extract it on rtsp client side?