MJPEG stream stops after 30 minutes. Timeout?


#1

Hi!
I am receiving a error message in my web browser console after streaming mjpeg for 30 minutes. It says Error inclomplete chunked encoding. And then the streams stop. So every 30 minutes I have to manually refresh my page.

This happens on different platforms in different browsers. What causes this? And what can I do to avoid it?
Is this a timeout issue? Is there a call I can do to keep it live?

Best regards
Rune Aspvik


#2

Hi Rune!
Is it when using embedded code or when using the web client?
-Henrik


#3

This is when embedding code.


#4

Forgot, is the camera in motion detection or recording or in any way active? If not NCS will set that camera to idle to save energy and cpu load.


#5

Not motion detection. But it is recording. And the cameras output streams to other services as well. So that is not the case I’m afraid.


#6

I have been reading this several times, but just now I really take in what you write. “And the cameras output streams to other services as well”. That will not work. These cameras can only deliver a stream to one recipient since they are single stream. If you have several services using the same URL to the camera the services compete which one will get the stream. I suggest that you turn off all other streams than this one and see what happens. When you manually refresh you send a command that will also reinitialize the stream to the camera and get priority. You can setup a Rule which sends an email when the connection is lost to the camera.
-Henrik


#7

Yes there is a size limit in the output mjpeg size. It’s about 2GB or something like that. After which a new session / mjpeg must be initiated.


#8

Okey, thank you! I will have a look at that, however, since I have 5 different streams, all stopping at the same time it might not be the case.