Page 1 of 1

Streaming encrypted content

Posted: 18 Jan 2009 20:10
by nucleaire
Hi there,

I have successfully implemented the VLC streaming server-client scenario over a home network and its working all good.

When I broadcast a video stream to this network, all the computers in that subnet are able to view the incoming video stream. Is there any way an encryption be implemented, so that only the clients who pass the basic authentication (using password or key) be able to see the video content, and all other client just get the noise on their VLC screens.

I have searched the VLC forums but couldn't find any answer to this question.

Any help is greatly appreciated.

Re: Streaming encrypted content

Posted: 18 Jan 2009 20:13
by Jean-Baptiste Kempf
Use TS-CSA encryption.

Re: Streaming encrypted content

Posted: 18 Jan 2009 20:56
by Rémi Denis-Courmont
With RTP, you can use a static symmetric SRTP-AES key.
With HTTP, you can use TLS and a client HTTP password.

Otherwise, for MPEG-TS content, you can use a static CSA key. This is not very strong.

Re: Streaming encrypted content

Posted: 21 Jan 2009 19:19
by nucleaire
Thanks for all your suggestions, but I'm still struggling in implementing the encryption over a broadcast stream. I am trying to use MPEG-TS CSA encryption as suggested above (VLC 0.9.8a over Windows XP machine). On the client machines, the received streams are not encrypted.

I am sure answer to this question will help a lot of people who want to password protect their streams.

Here is the screenshot that shows where I'm trying to put the password, but its not encrypting the stream.
Image

And here is the string for the output stream:

:sout=#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mp4a,ab=128,channels=2}:duplicate{dst=display,dst=std{access=udp,mux=ts,dst=10.5.2.255:1234}}

Could you please give me little hint for solving this problem.

Greatly appreciated!

Re: Streaming encrypted content

Posted: 21 Jan 2009 21:35
by Rémi Denis-Courmont
Did you even read the contextual help? A CSA key is made of 16 hexadecimal digits.

Re: Streaming encrypted content

Posted: 22 Jan 2009 19:43
by nucleaire
Thanks a lot for your small hint, it meant a lot to me.

For the new users who are struggling like me, here is how I have implemented the MPEG TS-CSA encryption on both the server and client sides (and of course its working now) :oops:

Server Side:
Image


Client Side:
Image

THANKS again VLC gurus! Keep up the great work...

PS. As of my original question, on the client side I don't see the noise on the VLC screen... it just doesn't show anything (if I use the wrong decryption key or no key at all). This is also acceptable to me but for the more curious users there might be something out there that they can search on the forums.