<div dir="ltr">Hi ,<div> I want to delay a rtp  stream by some precise amount of time</div><div>I am using a browser client which send h264 encoded (webrtc) rtp stream to server then i pass this rtp stream to a gstreamer pipeline and add the amount of dealy i want in the stream PTS and DTS and the receive back the rtp stream in server and the sends back to the browser-client.</div><br>  GST_BUFFER_PTS (buffer)+=<span style="color:rgb(181,206,168);background-color:rgb(30,30,30);font-family:"Droid Sans Mono","monospace",monospace,"Droid Sans Fallback";font-size:14px;white-space:pre-wrap">5000000000</span>;(nano sec)<br>  GST_BUFFER_DTS (buffer)+=<span style="color:rgb(181,206,168);background-color:rgb(30,30,30);font-family:"Droid Sans Mono","monospace",monospace,"Droid Sans Fallback";font-size:14px;white-space:pre-wrap">5000000000</span>;<br><div> </div><div><pre style="white-space:pre-wrap;margin-top:0px;padding:12px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:1.30769;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:5px"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit;border-radius:0px">  browser-sender-client --->media-server---> Gstreamer-C-pipeline ---> media-server ---> browser-receiver-client
</code></pre>i want the stream to be played at browser-receiver-client by some precise amount of delay from the time it was created at sender side.<br></div><div><br></div><div>but the problem is i am getting some extra delay then 5s</div><div>udp sink blocking the pipeline until the timestamp that i have changed</div><div>extra delay is due to  the amount of time stream takes to reach back </div><div>to the browser client.</div><div>and when I set udpsink to sync =false the browser plays the stream without any delay even though I have changed pts dts in the pipeline at the server side.</div><div>   </div><div>on localhost amount of extra delay varies between 5.55 s to 5.158 s</div><div>but when i hosted to aws the amount if delay increased upto 6 to 7 s</div><div><br></div><div>Thank you</div></div>