Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

srtp-key server and client #1

Open
ideechaniz opened this issue Nov 17, 2017 · 2 comments
Open

srtp-key server and client #1

ideechaniz opened this issue Nov 17, 2017 · 2 comments

Comments

@ideechaniz
Copy link

I am trying to use the gst-variable-rtsp-server examples with srtp-key but I am not able to reproduce anything. Any idea why?

@lmtan91
Copy link
Owner

lmtan91 commented Nov 20, 2017

@ideechaniz Have you installed libsrtp?

@ideechaniz
Copy link
Author

yes I have it and srtp works with gstreamer.
I am just trying to use gst-rtsp-server to send srtp content to various client and I am not able to give the srtp-key to rtspsrc.

This without srtp works for many clients:
Server:
./test-launch "( videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96 )"
Clients:
gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test latency=10 ! decodebin ! autovideosink

From one computer to one client this with srtp works:

Sender:
gst-launch-1.0 audiotestsrc ! alawenc ! rtppcmapay !
'application/x-rtp, payload=(int)8, ssrc=(uint)3412089386' ! srtpenc
key="000000000000000000000000000000000000000000000000000000000001" !
udpsink port=5004

Receiver:
gst-launch-1.0 udpsrc port=5004 caps='application/x-srtp,
payload=(int)8, ssrc=(uint)3412089386,
srtp-key=(buffer)000000000000000000000000000000000000000000000000000000000001,
roc=(uint)0, 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
! autoaudiosink

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants