How to encrypte TS stream with AES algorithm

About encoding, codec settings, muxers and filter usage
jeffreymu
New Cone
New Cone
Posts: 4
Joined: 25 Jun 2010 11:02

How to encrypte TS stream with AES algorithm

Postby jeffreymu » 25 Jun 2010 11:08

How to encrypte TS stream with AES algorithm, i have test with CSA to encrypte stream and VLC player can play it.

Any help is greatly appreciated.

thanks a lot!

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: How to encrypte TS stream with AES algorithm

Postby Jean-Baptiste Kempf » 25 Jun 2010 14:18

I don't think you can with VLC.
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: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to encrypte TS stream with AES algorithm

Postby Rémi Denis-Courmont » 26 Jun 2010 01:51

You can't do that, unless you're streaming with Secure RTP, or HTTP/TLS.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jeffreymu
New Cone
New Cone
Posts: 4
Joined: 25 Jun 2010 11:02

Re: How to encrypte TS stream with AES algorithm

Postby jeffreymu » 28 Jun 2010 03:35

Thank you very much for your information, but how i can stream by SRTP?

jeffreymu
New Cone
New Cone
Posts: 4
Joined: 25 Jun 2010 11:02

Re: How to encrypte TS stream with AES algorithm

Postby jeffreymu » 28 Jun 2010 16:06

for CAS: i can stream using command
vlc -vvv t.ts :sout=#duplicate{dst=rtp{dst=239.255.1.1,mux=ts{csa-ck=ABBBBBBBBBBBBBBB},port=5004}}
however, i want to know how to stream by SRTP using 'srtp-key'? anybody would like help me, thx!

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

Re: How to encrypte TS stream with AES algorithm

Postby Rémi Denis-Courmont » 28 Jun 2010 16:28

IIRC, you just need to set the srtp key and salt with the corresponding options.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jeffreymu
New Cone
New Cone
Posts: 4
Joined: 25 Jun 2010 11:02

Re: How to encrypte TS stream with AES algorithm

Postby jeffreymu » 29 Jun 2010 08:39

send stream:
vlc -vvv d:/t.ts :sout=#duplicate{dst=rtp{dst=239.255.1.1,mux=ts,port=5004,srtp-key=123456789ABCEF0123456789ABCEF0123456789ABCEF0123456789ABCEF0}} --loop
receive stream:
vlc -vv rtp://@239.255.1.1:5004 --sout-rtp-key "123456789ABCEF0123456789ABCEF0123456789ABCEF0123456789ABCEF0"

is it right above? but i can receive stream using command "vlc -vv rtp://@239.255.1.1:5004", so the secure RTP doesn't right? how to set the srtp key? thx!

sellabianchi
New Cone
New Cone
Posts: 3
Joined: 10 Dec 2010 21:52

Re: How to encrypte TS stream with AES algorithm

Postby sellabianchi » 10 Dec 2010 22:34

Hello,

Could someone please provide a detailed description of how the server and the client need to be setup in Linux in order to stream encrypted webcam video using SRTP/AES? I cannot find a clear answer. Command line details are preferable.

Thanks a lot in advance,
SB

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

Re: How to encrypte TS stream with AES algorithm

Postby Rémi Denis-Courmont » 11 Dec 2010 02:20

'vlc --sout-rtp-key HEXA_KEY --sout-rtp-salt HEXA_SALT' on the server.
'vlc --srtp-key HEXA_KEY --srtp-salt HEXA_SALT' on the client.
Then, it's just like normal RTP streaming.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sellabianchi
New Cone
New Cone
Posts: 3
Joined: 10 Dec 2010 21:52

Re: How to encrypte TS stream with AES algorithm

Postby sellabianchi » 11 Dec 2010 17:36

Hello Remi,

Thanks a lot. Could you please kindly post a full command line example for the server and the client? (I am using VLC 1.1.4 (Ubuntu) and I want to stream my webcam (v4l2).
I think that such complete information would tremendously help people with the same request.

Thanks a lot once again for your help.
Cheers,
SB


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests