Update : I managed to stream my video with UDP with Gstreamer on an application to VLC with a .sdp file, but I now have 500ms of latency, i use the same pipeline as before :
std::string gst_out = "appsrc ! video/x-raw,width=1920,height=1080 ! videoconvert ! timeoverlay valignment=4 halignment=1 ! nvvidconv ! video/x-raw(memory:NVMM),width=1920,height=1080 ! tee name=t ! nvv4l2h265enc insert-sps-pps=1 idrinterval=15 ! h265parse ! rtph265pay ! udpsink host=PC.Address.IP port=5000 sync=0 t. ! queue ! nvegltransform ! nveglglessink sync=0
and my .sdp file :
v=0
m=video #PORT RTP/AVP 96
c=IN IP4 192.168.1.21
a=rtpmap:96 H265/90000
Can I reduce this latency ?