scottlamb / moonfire-nvr

Moonfire NVR, a security camera network video recorder
Other
1.28k stars 143 forks source link

Only getting 2 minutes of recording and a single row entry in the GUI #327

Open nh2 opened 1 week ago

nh2 commented 1 week ago

First, thanks for this software, I'm excited to try it out with my Axis M3024-L camera!

This is probably some configuration problem on my side, but I can't figure it out:

I'm getting only a single "row" in the table of recordings:

image

The recorded streams seem to always grow up to 2 minutes, and at the end of each minute they advance by 1 minute.

I'm expecting to see multiple entries as in your README screenshot of the recordings list: https://github.com/scottlamb/moonfire-nvr/blob/3739e634abe10f2e5b16e5d6e5e4b6fa6863abf5/screenshots/list.png

And the stream recordings on disk don't seem to grow beyond the following:

4.4M    sample-dir/000000010000005c
2.1M    sample-dir/000000010000005d
393K    sample-dir/000000020000005c
512 sample-dir/000000020000005d
4.5K    sample-dir/meta

I've set no recording limits in the config:

image

Am I missing something?

(Using moonfire-nvr-v0.7.17-x86_64 on Linux.)

nh2 commented 1 week ago

The logs say

sample-dir: added 4M 481K 842B in 1 recordings (1/94), deleted 4M 350K 643B in 1 (1/93), GCed 1 recordings (2/92)

but I don't get why it does that deleting/GCing, given that I've set no limit in the config.

nh2 commented 1 week ago

I have the suspicion that the default 0 doesn't mean "unlimited" but somehow 2 * flush_if_sec or something like that.

If I set a non-0 limit, e.g. to 100G, it works as expected.

So probably 0 needs to be fixed to actually mean unlimited?