Roverr / rtsp-stream

Out of box solution for RTSP - HLS live stream transcoding. Makes RTSP easy to play in browsers.
MIT License
712 stars 167 forks source link

what's the meaning of start api returns running:true #42

Open zaozhao opened 4 years ago

zaozhao commented 4 years ago

Hi,Roverr, Thanks for your last help,and it's effective. I changed the setting of RTSP_CLEANUP_ENABLED:false , but start api responsebody returns 'running:false' in the course of time. So i want to know what's the meaning of 'running' , and final purpose is knowing the RTSP stream trans state. Thanks again!

Roverr commented 4 years ago

Hi @zaozhao ,

Actually running should indicate if your transcoding process for the stream is started running or not. It states that the underlying ffmpeg process is still working or not. However, it does not do it perfectly as it is building on the underlying rate limiter's activity status. Which is in your case matters in absolutely no way, because your streams are always "active".

That's actually a good catch, I will take look on the weekend how it could be made more consistent to reflect the transcoding process better

zaozhao commented 4 years ago

thanks!