vzhn / bstreamer

RTSP/h264 ip camera emulator
61 stars 11 forks source link

Connection drops during multiple streams #14

Open KarthikaKumar opened 1 year ago

KarthikaKumar commented 1 year ago

Hi @vzhn we are trying to run 64 streams, basically 64 connections have been made by the clients. But when we leave the bstreamer simulator for longer run, after few hrs, we are seeing recording gaps observed on the client, and on bstreamer lag count is increasing. Any reason this could happen or do you have any suggestions please ?

vzhn commented 1 year ago

Hi! When lag count is increased it means that server is trying to send next chunk of video, but not all clients received current chunk of video. When server could not send chunk of video, it just skip it. Maybe client is slow, maybe it is network problems, maybe recorder is not fast enough to record video, and so on.

KarthikaKumar commented 1 year ago

Thanks for your response. The problem here is it works with the real cameras without any recording gaps. How do we get the root cause? right now we have plans to move the simulator to a physical machine instead of VM and also reduced the load from 64 to 32.

vzhn commented 1 year ago

Hmm, what is VM? Is it Windows VM? I have similar problems with Window in the past. Also you can increase following setting values: watermarks.high: limits.size:

KarthikaKumar commented 1 year ago

Yes it is windows VM. Ok I will try increasing those values.Thanks for helping

On Fri, 25 Nov 2022 at 4:49 PM, Vladimir Zhilin @.***> wrote:

Hmm, what is VM? Is it Windows VM? I have similar problems with Window in the past. Also you can increase following setting values: watermarks.high: limits.size:

— Reply to this email directly, view it on GitHub https://github.com/vzhn/bstreamer/issues/14#issuecomment-1327353519, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGSVKVBQSNCLK43MCUQ3QTWKCOE7ANCNFSM6AAAAAASLDAA4Q . You are receiving this because you authored the thread.Message ID: @.***>

vzhn commented 1 year ago

Oh, Windows is terrible for some reason, don't know why.

KarthikaKumar commented 1 year ago

Ok will try it in Linux as well then, thanks again

On Fri, 25 Nov 2022 at 5:20 PM, Vladimir Zhilin @.***> wrote:

Oh, Windows is terrible for some reason, don't know why.

— Reply to this email directly, view it on GitHub https://github.com/vzhn/bstreamer/issues/14#issuecomment-1327381270, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGSVKTMB7JT7B7IKRH73OTWKCR2FANCNFSM6AAAAAASLDAA4Q . You are receiving this because you authored the thread.Message ID: @.***>