Firefox hangs on live view of high res camera

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
epv
Posts: 2
Joined: Thu Aug 06, 2020 2:26 am

Firefox hangs on live view of high res camera

Post by epv »

I'm running 1.34.10 and a test instance of 1.34.18, and have just added my first high resolution camera (2592x1944). I'm finding that Firefox just absolutely grinds to a halt if I try to view the live feed of this camera, on OSX, Windows 10, and Ubuntu. CPU use pegs at 100% on one or more cores and memory use expands into the several GB range. (these are all 16 or 32GB desktops). I don't get the chance to change the view scale to 1/3 or 1/4 because it hangs too quickly. With "bandwidth" set to Low it's functional enough to get by.

Safari, Chrome, and Edge have no issues even at actual size and High bandwidth, all are quick and responsive and everything works fine. Previously with a 640x480 camera of course there were no issues with any browser.

I'm wondering if this is a known Firefox thing and everyone just uses a different browser, or if I've somehow gotten it to produce a video stream that Firefox deals poorly with, or if I need to change some FF setting add an extension or something. I'm happy to be told it's just how it is, but I'd like to stick with Firefox if I can.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Firefox hangs on live view of high res camera

Post by bbunge »

Never have had an issue with Firefox. Have had to tweak some settings to display more than a couple of monitors in Montage view. Most of my cams are at 640x480 and I usually chide folks for trying to make Zoneminder a high res camera system. Am currently doing a test on USB cams. Will look into Firefox and memory issues when I have a chance.
dougmccrary
Posts: 1210
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Firefox hangs on live view of high res camera

Post by dougmccrary »

May or may not be related to what you're seeing...

A couple of weeks ago, Firefox went bonkers on my wife's windblows machine. Tested on a couple other test machines I have. Absolutely worthless on a montage view. Had to switch to Chrome for it.
Mind that that's on win10 only that I know of. It's ok on iPhones and least Samsung Android, and Ubuntu.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Firefox hangs on live view of high res camera

Post by bbunge »

Firefox recently made some changes to its rendering engine. Not sure if this is causing issues.
As for the Montage view, Firefox has always had issues with more than 5 or 6 cams. There is a fix:

Enter about:config in the address bar, press enter

scroll down to or search for
browser.cache.check_doc_frequency 3
change the 3 to a 1

browser.cache.disk.enable True -> False
network.http.max-connections-per-server -> put a value of 100
network.http.max-persistent-connections-per-proxy -> 100 again
network.http.max-persistent-connections-per-server -> 100 again

Note: for the last three values I search for network.http.max- and change all the connection values to 100
Restart Firefox.
dougmccrary
Posts: 1210
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Firefox hangs on live view of high res camera

Post by dougmccrary »

Yes, there's that tweak.Thanks.
But for quite a while now it has been good out of the box when the ZM server uses multiport. I do.
See min_streaming_port in options->network.
So they broke it some other way.
And whatever it is does not (yet) affect phone or linux versions.
Post Reply