ZoneMinder / zoneminder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
http://www.zoneminder.com/
GNU General Public License v2.0
5.21k stars 1.23k forks source link

Eventview: Disable timestamp broken #2896

Closed BlueMax closed 4 years ago

BlueMax commented 4 years ago

Disabling the overlay timestamp for eventview by removing the string completely in camera options doesn't work and still overlays a default date mask. This has been discussed before here.

ZoneMinder v1.34.6 Alpine Linux

connortechnology commented 4 years ago

This was an issue in 1.34.5 and was fixed in 1.34.6. Also in further testing, I cannot recreate this.

I did find an issue where a monitor on a remote server in a multi-server setup was not restarting the capture process so it was proceeding with the old values. So please confirm whether this may be this issue.

Further, confirm that the actual value stored in the db is being updated. So bring up the monitor options and check that the timestamp is cleared.

BlueMax commented 4 years ago

Yes, i can change the value to e.g. '12345' successfully but removing the line falls back to default again. I'm not using multi-server. One stream on mp4/h264.

Edit: I've updated to 1.34.7. No change. I'm on mariadb. Maybe NULL strings are stored differently there? Just a wild guess...

Eightplant commented 4 years ago

Possibly similar? I noticed one camera was missing the timestamp. The string was in the timestamp field. I removed the field from another camera to test and the overlay went away in viewing. I pasted the string (%N - %m/%d/%y %H:%M:%S) back in and there is no timestamp overlay but when looking at the timestamp field, the string is there. Now I have two cameras without a timestamp overlay. Thanks for ZM, it's great!

~$ zmc -v 1.34.10

~$ mariadb -V mariadb Ver 15.1 Distrib 10.1.44-MariaDB, for debian-linux-gnu (x86_64) using r eadline 5.2

connortechnology commented 4 years ago

Can we get an update on this issue since we are at 1.34.16 now?

BlueMax commented 4 years ago

Still the same here. If field is empty i get default overlay. Values like '%H:%M' do work.

ZM 1.34.16 Alpine Linux php7-7.4.7

connortechnology commented 4 years ago

I wonder if this is something like the db having a default value assigned for the column.

Can we get a DESCRIBE Monitors output from mysql?

connortechnology commented 4 years ago

Yes I think that is it. We are still creating the db with LabelFormat having a default value, but we dropped it in 1.31.0.

Do ALTER TABLE Monitors MODIFY LabelFormat varchar(64);

BlueMax commented 4 years ago

Doesn't work here. LabelFormat has been set to NULL manually indeed.

Somehow there are two different overlay timestamps now (at least i've never noticed that). In the 'Preview/realtime' window its a small black/white overlay and on 'event view' its still the transparent bar (with yellow font) at the bottom. They seem to have different fonts and regex results are different. First one shows '%H %H %H' as '23 23 23' and the 2nd one shows as '%23 %23 %23' (or something like that). The first one honors empty string, 2nd (still) does not.

connortechnology commented 4 years ago

The preview window is controlled by label format. The yellow font thing is put there by video.js. we have less control over that.

BlueMax commented 4 years ago

The yellow font thing is put there by video.js. we have less control over that.

Not sure if we were talking about the same overlay then. Its exactly this one i was talking about. Can this one be removed by NULL string (or is it intended to be removed this way) as i'm not sure if i do have an individual problem (mariadb or sth) on my side?

On the other hand, if you were talking about the b/w overlay. Then yes, this one does work/vanish properly here as well.

BlueMax commented 4 years ago

You closed the bug report but the issue is about the "yellow font thing" not the b/w overlay. Nothing has changed. Its still there and i can change the label but i cannot remove the bar completely. Isn't there a simple option in video.js to disable the whole bar? I'm on https://github.com/ZoneMinder/zoneminder/commit/e5046803b07047889ee3217211479e6ffdbdb971 (master) now.

connortechnology commented 4 years ago

yeah I thought we were talking about the bw thing. Now we know that it is about the video.js overlay we can move on to addressing that.