Is Max Framerate my only choice?
Posted: Sun Mar 27, 2016 9:48 pm
Hello friends. I'm on Ubuntu Server 14.04 with ZM 1.29.0. Everything is running great, however I am having an issue with one of my indoor cameras. It's a Foscam 8910W acting as a baby camera for my youngster. It's 640x480 via MJPG.
The issue is it does not look like the camera itself reflects its framerate setting with its output. (either that, or ZM is not seeing it properly). At first I thought the issue was a lacking feature in the rather bland firmware of the camera (unsurprising, given it's Foscam). Curious, I spun up a Windows system *just* to test an ActiveX login, as Foscam (frustratingly) seems to still cater towards IE specifically for configuring cameras (all I have here are Linux systems). Under ActiveX, I found the FPS setting, but here's what's weird. Regardless of what I set the camera's FPS to, it doesn't actually change it from ZM's perspective. It does however change the framerate in the IE web browser I'm using to configure the camera. If I change it anywhere from 0.5 FPS to 20 FPS, ZM still sees it as a steady 8-10 FPS, while IE itself shows the framerate speeding up/slowing down, as if it's listening to the FPS settings change.
It's worth noting that streaming this camera in VLC directly reflects ZM, as in, neither ZM nor VLC change the rated FPS of the Foscam, no matter what I set it to on the Foscam. Even with it set to 1/2 FPS, it *clearly* is streaming frames significantly faster than 1/2 FPS with both ZM and VLC. Yet again, in the IE web interface, I see it change accordingly.
I'm also getting some errors now and then in ZM, specifically with this camera. I like to let the Montage run when both kids are down for a nap (each has a Foscam, one 8910, one 9821). I noticed that the 8910 would stop responding. I would simply see the last frame permanently plastered there in the Montage. The time stamp and everything would just stop. If I refresh, it's back. (it also appears that according to the events page, the camera doesn't *drop* as it keeps populating events feeds every 10 minutes [mocord], but it's just the montage view where it drops and doesn't respond again unless I refresh the page). That being said, all other cameras were fine -- why did this one freeze? The logs populate this whenever this "Foscam 8910 montage lockup" takes place:
zmwatch 22728 INF Restarting capture daemon for Claire_Camera, time since last capture 12 seconds (1459112977-1459112965)
(I also set my ZM_HTTP timeout from 2500 [the default], to 5000 for testing, but it made no change in terms of montage view lockups for this camera)
This makes me wonder if the camera is trying to pump out too many frames over wireless than what it can actually provide.
With me seemingly at a loss for not being able to control the FPS, I'm wondering if setting the maximum FPS in the settings of the camera is acceptable. I read the help text and I've been advised in the IRC channel that max FPS should only be set *if* it's above the camera's FPS setting. I did end up setting this setting, and so far it's good (but it's only been a half hour). With all of this said, I'm curious what you folks have to say about it. Is my assumption about the camera possibly accurate? Is maximum FPS something that might serve a non-consequential use here given the goofiness of this camera? Is the log entry above of any other suggestive fixes I haven't considered/thought of?
Thanks ahead of time for any and all suggestions. Loving this project!
The issue is it does not look like the camera itself reflects its framerate setting with its output. (either that, or ZM is not seeing it properly). At first I thought the issue was a lacking feature in the rather bland firmware of the camera (unsurprising, given it's Foscam). Curious, I spun up a Windows system *just* to test an ActiveX login, as Foscam (frustratingly) seems to still cater towards IE specifically for configuring cameras (all I have here are Linux systems). Under ActiveX, I found the FPS setting, but here's what's weird. Regardless of what I set the camera's FPS to, it doesn't actually change it from ZM's perspective. It does however change the framerate in the IE web browser I'm using to configure the camera. If I change it anywhere from 0.5 FPS to 20 FPS, ZM still sees it as a steady 8-10 FPS, while IE itself shows the framerate speeding up/slowing down, as if it's listening to the FPS settings change.
It's worth noting that streaming this camera in VLC directly reflects ZM, as in, neither ZM nor VLC change the rated FPS of the Foscam, no matter what I set it to on the Foscam. Even with it set to 1/2 FPS, it *clearly* is streaming frames significantly faster than 1/2 FPS with both ZM and VLC. Yet again, in the IE web interface, I see it change accordingly.
I'm also getting some errors now and then in ZM, specifically with this camera. I like to let the Montage run when both kids are down for a nap (each has a Foscam, one 8910, one 9821). I noticed that the 8910 would stop responding. I would simply see the last frame permanently plastered there in the Montage. The time stamp and everything would just stop. If I refresh, it's back. (it also appears that according to the events page, the camera doesn't *drop* as it keeps populating events feeds every 10 minutes [mocord], but it's just the montage view where it drops and doesn't respond again unless I refresh the page). That being said, all other cameras were fine -- why did this one freeze? The logs populate this whenever this "Foscam 8910 montage lockup" takes place:
zmwatch 22728 INF Restarting capture daemon for Claire_Camera, time since last capture 12 seconds (1459112977-1459112965)
(I also set my ZM_HTTP timeout from 2500 [the default], to 5000 for testing, but it made no change in terms of montage view lockups for this camera)
This makes me wonder if the camera is trying to pump out too many frames over wireless than what it can actually provide.
With me seemingly at a loss for not being able to control the FPS, I'm wondering if setting the maximum FPS in the settings of the camera is acceptable. I read the help text and I've been advised in the IRC channel that max FPS should only be set *if* it's above the camera's FPS setting. I did end up setting this setting, and so far it's good (but it's only been a half hour). With all of this said, I'm curious what you folks have to say about it. Is my assumption about the camera possibly accurate? Is maximum FPS something that might serve a non-consequential use here given the goofiness of this camera? Is the log entry above of any other suggestive fixes I haven't considered/thought of?
Thanks ahead of time for any and all suggestions. Loving this project!