skip to Main Content

How-To: Using an RTSP Stream as a Source for a WebRTC application

This post arises from a question posed by someone via Quora. I’m not all that engaged with that Q&A platform, but this question seemed novel, so I offered an answer. I thought the answer worth sharing in a little more depth, so I offer it here as well.

The question was, “How can I use the RTSP stream from an IP camera as a source for a WebRTC application?”

There are two parts to solving this puzzle; (1) Connect to the RTSP stream and (2) Make it appear like a webcam to the client application.

Obvious Answer: vMix

At the outset, let me say that I would address this using vMix. vMix solves both parts of the puzzle handily. If this is all that you needed to achieve, the $60 Basic HD license would suffice.

Of course, you’d need to learn a little about the application, which is deep. To my mind it’s fun, but some might find it daunting. Further, vMix requires a considerable host platform. You’re not going to run it on trivial hardware.

Let’s just say that we’d like to solve the problem with less spending and requiring less knowledge overhead.

Less Obvious Answer: VLC & NDI Tools

VLC is the ubiquitous, open source media player. Available on all platforms it can play anything I’ve every wanted to open. Beyond files, it can open network streams. I’ve used it to listen to my local PBS radio station. I’ve also used it to watch video streams from our Grandstream surveillance cameras, as shown below.

VLS viewing RTSP stream

NDI stands for Network Device Interface. It’s a network protocol, developed by Newtek of TriCaster and Video Toaster fame, that allows low-latency, lightly compressed video to be passed over a gigabit Ethernet network. NDI is impressive, but I won’t wax poetic about that here.

Read More

Warning! Avoid Everquote.com

We’d all like a deal, right? Most especially a better deal on something that you have to buy anyway, like car insurance. So it was that a couple of weeks ago I succumb to an online ad for EverQuote, a company that purports itself as disrupting the insurance business. I regret the decision to try the service. It was a moment of weakness that haunts me still.

We’ve been with the same company for auto insurance for a long time. They are not the company that has our household insurance. I had thought that it would be worth the time, on a Saturday morning, to see if this disruptive young startup could provide me with a couple of quotes. My hope was that, with just a few minutes at the keyboard (actually my phone in this case) I’d have some insight as to whether we were paying too much.

It didn’t work out that way.

Read More
Back To Top