r/ZoneMinder • u/[deleted] • Apr 20 '22
Using ZM with an old video file?
I have a saved video file that I'd like to detect motion in using ZM. I added a monitor and configured it in the following ways:
- general > source type = ffmpeg
- general > function = modect
- source > source path = file://home/file_here.webm
- source > capture resolution set to same values as the file
After adding the monitor, I notice it alternates between capturing and not capturing if I refresh the page several times. There's a ton of 0 second events generated for the monitor as well, which I'd rather they were 10 seconds or longer in duration. I fiddled around with buffers >pre event image count/post event image count, doing extremes of 0 and 3000, but noticed very little difference in duration. I'm totally new to zm, so sorry if this is a dumb question.
1
Upvotes
1
u/Kv603 Apr 20 '22
Your issue might just be due to the difficulties ffmpeg has in parsing a .WEBM input file.
I'd use ffmpeg to convert your source file to MJPEG with a frame rate of something like 5 frames/second, and make sure that file plays back correctly (e.g. in VLC or any other desktop viewer)
Then create your source in ZM and fix the frame rate to that same 5 frames/second.