Streaming encrypted content

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
nucleaire
New Cone
New Cone
Posts: 4
Joined: 18 Jan 2009 20:00

Streaming encrypted content

Postby nucleaire » 18 Jan 2009 20:10

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Streaming encrypted content

Postby Jean-Baptiste Kempf » 18 Jan 2009 20:13

Use TS-CSA encryption.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

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

Re: Streaming encrypted content

Postby Rémi Denis-Courmont » 18 Jan 2009 20:56

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

nucleaire
New Cone
New Cone
Posts: 4
Joined: 18 Jan 2009 20:00

Re: Streaming encrypted content

Postby nucleaire » 21 Jan 2009 19:19

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!

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

Re: Streaming encrypted content

Postby Rémi Denis-Courmont » 21 Jan 2009 21:35

Did you even read the contextual help? A CSA key is made of 16 hexadecimal digits.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

nucleaire
New Cone
New Cone
Posts: 4
Joined: 18 Jan 2009 20:00

Re: Streaming encrypted content

Postby nucleaire » 22 Jan 2009 19:43

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.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 22 guests