Ffpmeg process keeps on running after closing camera stream?


I have set up the ipcamera binding and added two Reolink cameras. I set up a widget to show a snapshot image of the cameras on a page, and when clicking on those images, the stream of those cameras opens up. When doing so, in “top” (Linux) I can see ffmpeg starting and running. I would suspect that this process should stop once I close down the stream window, but it doesn’t. Only when I “pause” the camera thing, then ffmpeg will stop.

Is that supposed to happen? Is it a bug or a feature? I can’t think of a reason why it has to keep running when I don’t watch a stream. It only consumes CPU ressources, and quite a lot of that I suppose.

Thanks in advance!

This is because the widget is not closing the stream. So it’s a bug/feature of the widget. The easiest way to work around this is to push refresh on the browser after you close the widget.

If you only want snapshots and not a higher FPS stream that uses a lot of CPU power, then you can simply give the widget the url for the snapshots.mjpeg stream that the binding will create from the snapshots of the camera for you with next to no cpu load. The same thing will happen but it wont be using all the CPU that the ipcamera.mjpeg stream needs. Perhaps someone that knows html and website creation will reply on how to modify the widget to prevent this behavior but for me I find the refresh button works.

1 Like