Is there way to convert WebRTC stream to RTSP

1,329 views
Skip to first unread message

Stan Reshetnyk

unread,
Jun 7, 2017, 8:44:18 AM6/7/17
to kurento
Hello Kurento Group,

I want to deliver WebRTC stream to mobile browsers
One of solutions is to use long chain of WebRTC => RTSP => FFMPEG and => JSMpeg.
I see RTPEndpoint class and it's API, but I don't see any sample or descriptions if Kurento is able to deliver RTSP in form of url: rtps://kurento/streamName

Please suggest.

Thanks,
Stan

Gael Du Plessix

unread,
Jun 7, 2017, 8:51:33 AM6/7/17
to kurento
Hey,

We're also trying to use Kurento for rtsp streams. We built a proof-of-concept using a basic rtsp signaling server in javascript, but we're stuck with the problem that Kurento is re-encoding our stream whereas it shouldn't (cf: https://groups.google.com/forum/#!topic/kurento/e1lbxB55Q9Q).

We could probably open-source our rtsp signaling server if we decide to use it in the future, but for now it's not very useful to us so we're not maintaining it.

I could send you the code if you're interesting but it's far from a working product, it needs a lot of work before being really useful.

Another option could be to build a custom KMS element that uses gst-rtsp-server.

Stan Reshetnyk

unread,
Jun 7, 2017, 9:31:07 AM6/7/17
to kurento
Hi Gael,

Yes, please share your finding with me s...@trembit.com or via a public link so others can check as well.

Thanks,
Stan
среда, 7 июня 2017 г., 15:51:33 UTC+3 пользователь Gael Du Plessix написал:

Gael Du Plessix

unread,
Jun 7, 2017, 10:49:23 AM6/7/17
to kurento
Here is the code: https://github.com/EtixLabs/kms-rtsp-server

As I said, it's not something finished at all but you can use it as a basis for your project. Basically the most interesting part for you would be `server.js`. You must provide your own `Setup` handler that creates your pipeline when requested. For now it creates a basic pipeline PlayerEndpoint -> RtpEndpoint, but you should be able to hook this up with a WebRTC endpoint.

However, now that I'm re-reading your original message, if what you want if to deliver a WebRTC stream to mobile browsers, why don't you use WebRTC directly ? It's well supported on Android and support is coming to iOS with iOS 11 :) cf: https://developer.apple.com/library/content/releasenotes/General/WhatsNewInSafari/Safari_11_0/Safari_11_0.html

Stan Reshetnyk

unread,
Jun 7, 2017, 11:09:19 AM6/7/17
to kurento
Wow, WebRTC on Safari iOS will solve a lot of problems.

Thank you for sharing. I need time to understand what RTSP is and how did you handle it. Hopefully, it is not C++.

Stan
среда, 7 июня 2017 г., 17:49:23 UTC+3 пользователь Gael Du Plessix написал:
Reply all
Reply to author
Forward
0 new messages