srtpdec: example pipelines do not work, caps are not detected
Submitted by Kevin Mullican
Link to original bug (#796941)
Description
The example pipelines on the docs page https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad/html/gst-plugins-bad-plugins-srtpdec.html do not work.
System:
$ uname -a
Linux big-p 4.4.0-17134-Microsoft #137
-Microsoft Thu Jun 14 18:46:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux
$ dpkg -l | grep gst | grep bad
ii gstreamer1.0-plugins-bad:amd64 1.8.3-1ubuntu0.2 amd64 GStreamer plugins from the "bad" set
source:
gst-launch-1.0 audiotestsrc ! alawenc ! rtppcmapay ! 'application/x-rtp, payload=(int)8, ssrc=(uint)1356955624' ! srtpenc key="012345678901234567890123456789012345678901234567890123456789" ! udpsink port=5004
dest:
GST_DEBUG=srtpdec:5 gst-launch-1.0 udpsrc port=5004 caps='application/x-srtp, payload=(int)8, 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 ! rtppcmadepay ! alawdec ! pulsesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.080196000 5703 0x26388f0 WARN srtpdec gstsrtpdec.c:770:request_key_with_signal:<srtpdec0>
Could not get caps for stream with SSRC 1356955624
0:00:00.083958000 5703 0x26388f0 WARN srtpdec gstsrtpdec.c:1212:gst_srtp_dec_chain:<srtpdec0>
Invalid buffer, dropping
...
repeats forever
Version: 1.8.3