How to use srtpdec with gstreamer on Android.

Aleix Conchillo FlaquƩ aconchillo at gmail.com
Mon Oct 13 10:39:09 PDT 2014


On Mon, Oct 13, 2014 at 2:04 AM, darvin <matthias.schlesinger at gmx.at> wrote:
> Hi,
>
> I use the following pipeline to receive a video stream:
> udpsrc port=5000 do-timestamp=true ! queue !
> application/x-rtp,clock-rate=90000,payload=96 ! rtpjitterbuffer latency=100
> do-lost=true ! rtph264depay ! h264parse !
> video/x-h264,stream-format=byte-stream,alignment=nal ! queue ! appsink
> name=appsink max-buffers=100 drop=true async=false (...)
>
> What do I have to do to decode (unprotect) the videostream before processing
> it any further? Just add srtpdec to the pipeline? But how to provide
> information about the used encryption methode and key? gst-launch1.0 tells
> me that srtpdec omits the signal "request-key" but how do I use such a
> signal?
>

I think you will have to write a little bit of code to do this. You
might want to look at this example:

http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/examples/rtp/client-rtpaux.c

It doesn't handle the signals you need for SRTP but other similar RTP signals.

Aleix


More information about the gstreamer-devel mailing list