SRTP encryption/decryption from command line

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
dcharan
New Cone
New Cone
Posts: 1
Joined: 12 Apr 2017 21:36

SRTP encryption/decryption from command line

Postby dcharan » 12 Apr 2017 21:56

I've looked through these forums, I am trying to encrypt/decrypt a video using SRTP with keys and salt. I have tried the following:
Sender:
vlc -vvv --sout-rtp-key=00000000000000000000000000000000 --sout-rtp-salt=0000000000000000000000000000 <my img> --sout='#rtp{dst=127.0.0.1,port=9001,sdp=rtsp://127.0.0.1:9001/test.sdp}'

Receiver:
vlc -vvv --srtp-key=00000000000000000000000000000000 --srtp-salt=0000000000000000000000000000 rtsp://127.0.0.1:9001/test.sdp

I don't get the image, but a black screen that drags behind a few seconds.

If I run:
Sender:
vlc -vvv <my img> --sout='#rtp{dst=127.0.0.1,port=9001,sdp=rtsp://127.0.0.1:9001/test.sdp}'

Receiver:
vlc -vvv rtsp://127.0.0.1:9001/test.sdp OR
vlc -vvv --srtp-key=00000000000000000000000000000000 --srtp-salt=0000000000000000000000000000 rtsp://127.0.0.1:9001/test.sdp

I get the image both ways. This makes me think that the srtp-key/salt on command line is not working? I've seen tons of people request a commandline way to provide the key/salt but have not seen an actual one posted. Seems like on the sender it works, but not for receiving.

Thanks.

Rémi Denis-Courmont
Developer
Developer
Posts: 15317
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: SRTP encryption/decryption from command line

Postby Rémi Denis-Courmont » 13 Apr 2017 17:15

SRTP is not meant to work with RTSP as things stand.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 49 guests