Wowza Community

Rtsp auto disconnect, reconnect

hello.
There is a system consisting of cctv - wowza - player.
The cctv is serviced as rtsp and it is configured using the stream file in wowza. The problem is that cctv uses LTE communication, which incurs a lot of cost.
If there is no player, cctv and Wowza will be disconnected, and if there is a player, cctv and Wowza will be connected.
How can I do it like above? Or is there a better way?
thanks.

How do you configure your cctv now ? The key to saving cost is to either publish on demand or pull stream into wowza on demand.

  1. CCTV must publish only on events like motion detection etc to save bandwidth

  2. You can also have it in always on mode where it publishes locally and on demand restream it to online wowza instance.

Even if you want to pull on demand when a subscriber appears you will need to devise a system where you send the stream to wowza on event. Sounds like a custom app might be a good idea.

How do you wish to make this into an I demand system ?

Hi @changil_shin so we do have some customers that have set up IP cameras that will only connect to Wowza when a player or viewer tries to connect to the stream. An example would be a 24 hr wildlife live stream.

You could set this up for RTMP streams using rtp-live in Streaming Engine with Wowza MediaCaster.

https://www.wowza.com/docs/how-to-start-streams-at-server-startup


If you have advanced Java skills, you could take a peek at this as well. Good luck!

https://www.wowza.com/docs/how-to-use-the-wowza-streaming-engine-java-api-to-start-and-stop-mediacaster-streams

You can’t configure it via the manager. You just need to set the Stream Type to rtp-live in the Application.xml. It won’t work with any http streamers.

It does work with rtsp and webrtc players

Thanks for answering my inquiry.
CCTV is an rtsp server and is always encoded.
How to work with wowza must be taken by wowza by accessing cctv.
Stream Files is set in wowza’s Application.

Thanks for answering my inquiry.
What does rtp-live mean?

Thanks for answering my inquiry.
As a basic function of wowza, there is no function to disconnect the CCTV when there is no user access, right?

Hello, so if you look at the docs I sent, you will see that rtp-live is a type of streaming application you can create in the manager that pulls the stream from the camera only when a player tries to connect, so that it’s not running a stream 24 hrs costing you a fortune.

In one box, you select RTP which is a streaming protocol and in the next section, you click “live”. The images show you how to do this in the doc.

When there is no player or viewer, the stream stops after a certain amount of time and there is nothing you have to do, it’s an automatic disconnect.

This is a bit of a unique workflow and not well documented on our site, even though it is possible to set up. I would strongly encourage you to submit a support ticket and have a Wowza engineer walk you through it. Good luck to you!