Server RTSP streaming with Vlclib

This forum is about all development around libVLC.
GrzegorzWirtVest
New Cone
New Cone
Posts: 3
Joined: 30 Jul 2014 10:58

Server RTSP streaming with Vlclib

Postby GrzegorzWirtVest » 30 Jul 2014 11:06

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?

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

Re: Server RTSP streaming with Vlclib

Postby Rémi Denis-Courmont » 30 Jul 2014 17:16

Firewall problem would be my guess.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

GrzegorzWirtVest
New Cone
New Cone
Posts: 3
Joined: 30 Jul 2014 10:58

Re: Server RTSP streaming with Vlclib

Postby GrzegorzWirtVest » 29 Aug 2014 14:50

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?

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

Re: Server RTSP streaming with Vlclib

Postby Rémi Denis-Courmont » 29 Aug 2014 22:13

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

GrzegorzWirtVest
New Cone
New Cone
Posts: 3
Joined: 30 Jul 2014 10:58

Re: Server RTSP streaming with Vlclib

Postby GrzegorzWirtVest » 01 Sep 2014 13:57

Do you plan to enable RTSP 2.0 support in vlc?

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

Re: Server RTSP streaming with Vlclib

Postby Rémi Denis-Courmont » 01 Sep 2014 17:39

I would if I had time. But that would require a lot of time and I have very little.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 28 guests