Regarding srtpenc and srtpdec in gstreamer

Hau Lam lthau91 at gmail.com
Tue May 30 09:03:05 UTC 2023


Hi Gstreamer-devel,

Does anyone have idea above above issue

Best regards,
Hau Lam


Vào CN, 28 thg 5, 2023 vào lúc 16:34 Hau Lam <lthau91 at gmail.com> đã viết:

> I knew that srtpenc and srtpdec using the libsrtp but currenltly libsrtp
> having a bug related Rollover Counter
> https://github.com/Kurento/bugtracker/issues/587.
> If the ROC not in sync between Sender and Reciveier, it will cause srtpdec
> authenticate failed.
> -----
> Example I have 2 pipelines
>
> 1/ Sender
> 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
>
> 2/ Reciveier
>
> 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
>
> ---
> The 2 above pipelines will work fine if Sender and Reciveier have the same
> ROC.
>
> But for any reason, if Sender and Reciver not start at the same time like
> :
> 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
> 2/ Sender is crashed and ROC is started  again from 0 it also cause
> un-sync ROC between Sender and Receiver.
>
> So could Gstreamer team suggest how to deal with the un-sync ROC issue
> between Sender and Receiver ?
> Thank you very much
>
> Best regards,
> Hau Lam
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230530/952d2bda/attachment.htm>


More information about the gstreamer-devel mailing list