Delay before camera feed works

Forum for questions and support relating to the 1.25.x releases only.
Locked
begleysm
Posts: 11
Joined: Mon Sep 03, 2012 4:01 am

Delay before camera feed works

Post by begleysm »

I have Zoneminder installed on a dedicated PC running Ubuntu 12.04 LTS Server. I use MJPG-Streamer to get my webcam to work.

When I boot the computer and go to the Zoneminder console my Monitor doesn't work (Source: localhost is in red) (no surprise, MJPG-Streamer isn't started). I then start MJPG-Streamer & refresh the page. Source:localhost is still in red and the Monitor still doesn't work.

What seems to reliably fix this is to click Source:localhost, open the Source tab, (change nothing), hit save & close the pop-up window. This causes the console to reload and then, voila, Source: localhost turns yellow & everything works fine.

Any idea why this is?

Thanks,
Sean
jonathancnewcomb
Posts: 38
Joined: Tue Sep 18, 2012 2:00 pm

Re: Delay before camera feed works

Post by jonathancnewcomb »

I can only guess that the daemon that runs the capture has a time delay for when it looks if the stream is alive. If this is a persistent setup, I would recommend adding your MJPEG streamer to your rc files to start before zoneminder on boot
begleysm
Posts: 11
Joined: Mon Sep 03, 2012 4:01 am

Re: Delay before camera feed works

Post by begleysm »

Thanks,

I'll try that.

Sean
begleysm
Posts: 11
Joined: Mon Sep 03, 2012 4:01 am

Re: Delay before camera feed works

Post by begleysm »

I setup mjpg_streamer to start on boot (and I think it just happens to go before Zoneminder) and this problem appears to be resolved.

It looks like Zoneminder only "checks for new cameras" periodically OR after you "save" the settings (inside the Source link).

Thanks,
Sean
jonathancnewcomb
Posts: 38
Joined: Tue Sep 18, 2012 2:00 pm

Re: Delay before camera feed works

Post by jonathancnewcomb »

Yes I agree, good thing its working
Locked