How to transcode H264 rtp packet to H265 rtp packet

Hi,
For UDP we have validated the steps in this post:
Gstreamer TCPserversink 2-3 seconds latency - #5 by DaneLLL

Please give it a try and check if it works.