<div dir="ltr">Hi Gstreamer-devel, <div><br><div>Does anyone have idea above above issue</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best regards,<div>Hau Lam</div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Vào CN, 28 thg 5, 2023 vào lúc 16:34 Hau Lam <<a href="mailto:lthau91@gmail.com">lthau91@gmail.com</a>> đã viết:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I knew that srtpenc and srtpdec using the libsrtp but currenltly libsrtp having a bug related Rollover Counter <a href="https://github.com/Kurento/bugtracker/issues/587" target="_blank">https://github.com/Kurento/bugtracker/issues/587</a>.<br>If the ROC not in sync between Sender and Reciveier, it will cause srtpdec authenticate failed. <br>-----<br>Example I have 2 pipelines <br><br>1/ Sender <br>gst-launch-1.0 filesrc location = ./BigBuckBunny.h264 ! h264parse ! video/x-h264,stream-format=byte-stream,alignment=nal ! rtph264pay ! 'application/x-rtp,payload=96,ssrc=(uint)1356955624' ! srtpenc key="012345678901234567890123456789012345678901234567890123456789" ! udpsink host=127.0.0.1 port=5000<br><br>2/ Reciveier<br><br>gst-launch-1.0 udpsrc port=5000 caps='application/x-srtp, payload=(int)96, ssrc=(uint)1356955624, srtp-key=(buffer)012345678901234567890123456789012345678901234567890123456789, srtp-cipher=(string)aes-128-icm, srtp-auth=(string)hmac-sha1-80, srtcp-cipher=(string)aes-128-icm, srtcp-auth=(string)hmac-sha1-80' !  srtpdec ! rtph264depay ! h264parse ! queue ! avdec_h264 ! xvimagesink sync=false<br><br>---<br>The 2 above pipelines will work fine if Sender and Reciveier have the same ROC. <br><br>But for any reason, if Sender and Reciver not start at the same time like : <br>1/ Sender start first and Rollover Counter incease from 0 to 1, 2.. And then Reciver start later it doesn't know the current ROC of Sender then authentication will fail<br>2/ Sender is crashed and ROC is started  again from 0 it also cause un-sync ROC between Sender and Receiver.<br><br>So could Gstreamer team suggest how to deal with the un-sync ROC issue between Sender and Receiver ? <br>Thank you very much<br></div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr">Best regards,<div>Hau Lam</div></div></div></div></div>
</blockquote></div>