How can I reduce network data usage when no one watch stream thread ? #293
Replies: 3 comments
-
I find that rtspclientsink(I'm using it to stream video to your rtsp-simple-server) have a property called "do-rtsp-keep-alive". Did it work with your rtsp-simple-server ? If it's working, how can I use it? Thank you so much! |
Beta Was this translation helpful? Give feedback.
-
Hello, the server can be configured to start a GStreamer pipeline when someone requests a path, and to shut it down if all clients disconnect: paths:
ondemand:
runOnDemand: gst-launch-1.0 -v ... rtspclientsink location=rtsp://localhost:8554/mystream
runOnDemandRestart: yes If the pipeline can't be launched from the server side, an alternative consists in launch two instances of rtsp-simple-server, one on the device, and the other one on the server; you make the device publish to the first instance, and configure the second one to receive the first one, but only when someone requests it: paths:
proxied:
source: rtsp://first-instance The property |
Beta Was this translation helpful? Give feedback.
-
Great. I can understand your feature. May you explain to me about property |
Beta Was this translation helpful? Give feedback.
-
Which version are you using?
v0.9.15
Which operating system are you using?
Ubuntu 16.04.7 LTS
Question
Assume that: I have a device which pushes stream video to rtsp://IP:PORT/path. But in some cases, no one access on this rtsp link to view. But my device is still stream video and consumes network data. It's very wasted. How can I solve it ?
Beta Was this translation helpful? Give feedback.
All reactions