Stream From an IP Camera to Your Website

October 9, 2018 by

 

Find out how to stream from an IP camera to your website using either the Wowza Streaming Engine™ software or the Wowza Streaming Cloud™ service. Easily view streams on your own website by repackaging, or transmuxing, the video stream from Real Time Streaming Protocol (RTSP) to HTTP Live Streaming (HLS).

Watch this video or check out our docs to learn more.

Ready to start streaming? Sign up for a free trial.

Full Video Transcript:

Justin Miller:

IP cameras are pretty cool. They can send a video stream over Ethernet cables using the RTSP protocol. If you know the IP address, and you’re on the same network, it’s easy to use software like VLC Player, to pull that RTSP stream. But what if you want to send that stream somewhere online to BBU? Using either Wowza Streaming Engine, or Wowza Streaming Cloud, I’m going to show you how to repackage that stream from RTSP to HLS for viewing on your own website.

For our example, we’ll be using a PTZ optics camera. The IP camera and Wowza Streaming Engine are both going to be running locally, but if you want this viewable outside your network, you’ll need a public static IP address for Wowza Streaming Engine. Now, in Wowza Streaming Engine, we’ll go to server and setup the connection to the IP camera, under Stream Files, by adding a stream file. We’ll name this “office” and use the RTSP address appended with a “/1”. PTZ optics uses a one and two, but you’ll need to check with your IP camera manufacturer to know your settings.

Now, let’s return to Stream Files and then Connect to the stream by using the default application, live to stream. Once you’re done, go to applications, and from the dropdown, go to live for verification. Under Incoming Streams, you should see that the office stream is active. To get this running quickly on your own site, use our free Wowza Player. Launch the player builder and in the Wowza Player Builder play the video. Keep in mind, that the stream is being played locally using the HLS protocol. And, again, if you want this viewable on your outside network, you’ll need a public static IP address for Wowza Streaming Engine.

Now to place this on your own website, just use the embed code. If you plan to use a cloud service, you’ll need the IP camera on a public static IP address. Wowza Streaming Cloud is a great service option, ready to go, with a 24/7 subscription plan should you want to show the stream all the time on your own website. In Wowza Streaming Cloud go to Live Streams, and from the dropdown, Add Live Stream. I’ll name this “Office,” select the location closest to me from my media server, and then click Next. On the next page, I’ll choose IP Camera from the options, and add my source open static IP address with a slash at the end. Like before, we’ll use Apple HLS to stream, but I’ll also change the aspect ratio to 1080p. I’ll click Next through everything else, all the way to Finish, and now we can Start Live Stream.

We’ll know it’s working when it shows the updated video frame and the health monitoring under statistics. But if you want to see it working on a website, just go under Playback, and hit play. As we’re repackaging to HLS, there is going to be more latency. You’ll also find that the player embed code is on this page. When you’re done testing, be sure to stop the live stream. That’s it for IP cameras in Wowza. For more details regarding security settings for the RTSP stream, please check out our online documentation. Thanks for watching.