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.