Page 1 of 1

Server RTSP streaming with Vlclib

Posted: 30 Jul 2014 11:06
by GrzegorzWirtVest
I am working on modyfying our communication serwer to work with vlc rtsp streaming. I am using vlc 2.1.3 on client and server side.
I can't properly setup comunication. Server is struggling to open stream from client.

sample code from server
VlcControl tempVlc2 = new VlcControl();
LocationMedia tempmedia2 = new LocationMedia("rtsp://:49154/" + _avAccepted.SenderId.ToString() + ".sdp");
tempmedia2.AddOption(("#rtp{sdp=rtsp://:49154/" + _avAccepted.SenderId.ToString() + ".sdp"));
tempVlc2.Media = tempmedia2;
tempVlc2.Play();

i make new VlcControl, read the stream and send it to client. There was problem with port binding so we changed port to 49154.
Am i missing something?
Lastly i got connection timeout error.
I think the vlc is trying to make new stream before it start receiving stream from client. How to change it?
Do i need to change ports for every stream on server?

Re: Server RTSP streaming with Vlclib

Posted: 30 Jul 2014 17:16
by Rémi Denis-Courmont
Firewall problem would be my guess.

Re: Server RTSP streaming with Vlclib

Posted: 29 Aug 2014 14:50
by GrzegorzWirtVest
I got it working fine. We needed to change otuput and input stream ports. I wanted to protect the stream with key and salt.
We are generating it on server side and sending it to client. It seems that vlc has problems with them.
It's hanging up on client when executing vlccontrol with set key nad salt or we are not getting the stream from server.
The streams on server are set to use keys and salt too but it doesnt seem to work because i can receive the streams without them set on client side.
I think that rtsp impelementation in vlc is just wrong.
Have anyone has any ideas?
Which is the best method to prostect rtp streams in vlc? Maybe it would be better to use usernames and passwords?

Re: Server RTSP streaming with Vlclib

Posted: 29 Aug 2014 22:13
by Rémi Denis-Courmont
RTSP 1.0 does not have any reasonable security mechanism for media. As far as I know, this would need an upgrade to RTSP 2.0 and some extras, on both sides.

This is a lot of work. Like several man-years.

Re: Server RTSP streaming with Vlclib

Posted: 01 Sep 2014 13:57
by GrzegorzWirtVest
Do you plan to enable RTSP 2.0 support in vlc?

Re: Server RTSP streaming with Vlclib

Posted: 01 Sep 2014 17:39
by Rémi Denis-Courmont
I would if I had time. But that would require a lot of time and I have very little.