SRTP audio encryption problems

Toby Jaffey toby at ringtailsoftware.co.uk
Mon Mar 26 09:35:53 UTC 2018


Hello,

I am attempting to use gstreamer for audio encryption using SRTP but am unable to get a working pipeline.
Can anyone suggest what is wrong here:

	GST_DEBUG=2 gst-launch-1.0 -v audiotestsrc wave=2 freq=200 ! alawenc ! rtppcmapay ! 'application/x-rtp, payload=(int)8, ssrc=(uint)123' ! srtpenc key="012345678901234567890123456789012345678901234567890123456789" ! udpsink host=127.0.0.1 port=5555

	GST_DEBUG=2 gst-launch-1.0 udpsrc port=5555 caps='application/x-srtp, payload=(int)8, ssrc=(uint)123, 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 ! rtppcmadepay ! alawdec ! pulsesink

The receiver is dropping data with the following warning:

	:770:request_key_with_signal:<srtpdec0> Could not get caps for stream with SSRC 123
	0:00:12.994153383  7472      0x202e770 WARN                 srtpdec gstsrtpdec.c:1212:gst_srtp_dec_chain:<srtpdec0> Invalid buffer, dropping

Thanks.

--
toby at ringtailsoftware.co.uk
+44 (0)7588 606410



More information about the gstreamer-devel mailing list