I am setting up zoneminder where there will be potentially many clients streaming images. I felt that the bandwidth spent when a monitor is idle was unneccessary. This is a hardcoded version of what I will later hopefully have time to add properly (as a configurable option) and send a patch.
Actually very simple, just changed line 1118 in zm_monitor.cpp, the old version is commented out
Code: Select all
//if ( (frame_mod == 1) || ((frame_count%frame_mod) == 0) )
if ( ((shared_data->state == ALARM || shared_data->state == ALERT ) &&
((frame_mod == 1) || ((frame_count%frame_mod) == 0))) ||
frame_count%50 == 0 )
Without promising a time, I am going to make this better and get it in as a configurable option, as well as an idle fps setting, just didn't have the time to dive into all the code today. I will send a patch when finished.