srtpenc/dec gstreamer issue

Muhammad Farooq mhdfarooq90 at gmail.com
Fri Feb 27 04:24:32 PST 2015


Hi everyone,
  I am trying to use srtp element in gstreamer pipeline (gstreamer-1.2.4 on
ubuntu 14.04 LTS with good,base and bad plugins installed). I want to
encrypt an H264 encoded stream after rtph264pay element in a pipeline and
then transmit using udpsink but i am unable to do it. Here is my test
setup.
  On the trasmission side, i am transmitting the data on localhost using
port '5000'

Transmit-encrypt command:
gst-launch-1.0 -v uridecodebin uri=file:///home/username/Hugo.mkv ! x264enc
! rtph264pay ! srtpenc
key="012345678901234567890123456789012345678901234567890123456789" !
udpsink host="127.0.0.1" port="5000"

  On the receiving side, i have the following command with caps copied from
the transmission side.

Recieve-decrypt command:
gst-launch-1.0 -v udpsrc port="5000" caps = 'application/x-srtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
payload=(int)96,
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 ! avdec_h264 ! xvimagesink

  When i start playing pipeline, there is no error on the command prompt,
however there is no output dispaly at the recieving end. What could i
possibly be missing in this configuration. If i do encrypt and decrypt on
the transmit side as below, everything works fine.

gst-launch-1.0 -v uridecodebin uri=file:///home/burqstream/Hugo.mkv !
x264enc ! rtph264pay ! srtpenc
key="012345678901234567890123456789012345678901234567890123456789" !
srtpdec ! udpsink host="127.0.0.1" port="5000"

  kindly guide me in fixing this pipeline. Your help will be highly
appreciated.

-- 
Regards
M - Farooq

Email :- mhdfarooq90 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150227/59fc2d66/attachment.html>


More information about the gstreamer-devel mailing list