Search found 193 matches

by kitkat
Fri Oct 29, 2021 8:59 pm
Forum: ZoneMinder 1.36.x
Topic: New here, need advice..
Replies: 8
Views: 2802

Re: New here, need advice..

Rather than one (or each) of the participants running ZM and a VPN, could you get a cheap VPS somewhere and run it on that? It was the first thing that came to mind and I haven't really thought it through but it should be possible to do something that way. You'd still have to use a VPN to avoid open...
by kitkat
Wed Oct 20, 2021 9:06 pm
Forum: ZoneMinder 1.36.x
Topic: zone not triggering
Replies: 2
Views: 2196

Re: zone not triggering

So I'm totally lost: what is minimum alarm pixel count? It's the minimum number of pixels that have to change in that zone for an alarm to be triggered by it. It will be an actual number of pixels if you're in "Pixel" mode, or a percentage of that zone's area when in "Percent" m...
by kitkat
Wed Oct 20, 2021 8:38 pm
Forum: ZoneMinder 1.36.x
Topic: filter executing an external python script
Replies: 8
Views: 1330

Re: filter executing an external python script

Good to hear it's fixed - It sounds like the www-data user didn't have a shell configured :)

The "proper"/"safe" way to add or change a user's shell or other data is with usermod though, which'll update /etc/passwd and any other relevant files...

Code: Select all

usermod -s /bin/bash www-data
by kitkat
Wed Oct 20, 2021 4:05 pm
Forum: ZoneMinder 1.36.x
Topic: filter executing an external python script
Replies: 8
Views: 1330

Re: filter executing an external python script

I suspect that the script may not be executable by, or that some file is inaccessible to, the www-data user.

Try this at the command line:

Code: Select all

su -s /bin/bash --command="/home/pi/python/ZoneMinderFilter.py /ramdisk/4/397" www-data
by kitkat
Wed Oct 20, 2021 3:39 pm
Forum: ZoneMinder 1.36.x
Topic: filter executing an external python script
Replies: 8
Views: 1330

Re: filter executing an external python script

Have you tried running the script as the apache or www-data user? (Or whatever your distro provides.) su -s /bin/bash --command="/home/pi/python/ZoneMinderFilter.py /ramdisk/4/397" apache If that works, can you capture any runtime output or errors when ZM runs the script, perhaps by writin...
by kitkat
Tue Oct 19, 2021 9:33 pm
Forum: ZoneMinder 1.36.x
Topic: Event start page
Replies: 1
Views: 806

Re: Event start page

It's not just you :)

I and a few other folk see the same thing: viewtopic.php?f=43&t=31061&p=122847#p122847
by kitkat
Fri Oct 15, 2021 9:58 am
Forum: ZoneMinder 1.36.x
Topic: Trouble with zone rectangles appearing in images along with edge detection
Replies: 9
Views: 1808

Re: Trouble with zone rectangles appearing in images along with edge detection

If the Writer is Camera Passthrough then ZoneMinder isn't touching the recorded stream, so I'm not sure how it could be causing artefacts.
by kitkat
Sat Oct 09, 2021 11:11 pm
Forum: ZoneMinder 1.36.x
Topic: Thumbnails missing
Replies: 2
Views: 931

Re: Thumbnails missing

I can't tell you how to solve it, but the error is caused by an incomplete command line - It should be: ffmpeg -ss 12.59 -i /var/cache/zoneminder/events/2/2021-10-09/185255/185255-video.mp4 -frames:v 1 /var/cache/zoneminder/events/2/2021-10-09/185255/00062-capture.jpg 2>&1 At a guess, I'd say th...
by kitkat
Thu Oct 07, 2021 9:57 am
Forum: ZoneMinder 1.36.x
Topic: Camera Error ( End Of File )
Replies: 4
Views: 1191

Re: Camera Error ( End Of File )

Maybe also try reducing the framerates, which seem to vary quite a lot.
by kitkat
Tue Oct 05, 2021 4:49 pm
Forum: ZoneMinder 1.36.x
Topic: Testing zones against stored events?
Replies: 8
Views: 5055

Re: Testing zones against stored events?

I made a mistake - That version saves the first frame over and over again. This is the one that worked: INPUT="/home/zoneminder/events/1/2021-10-05/159739/159739-video.mp4" OUTPUT="/var/www/html/zm-test.jpg" OUTPUT_TEMP="$OUTPUT-tmp.jpg" LOOP="0" # Set this to...
by kitkat
Tue Oct 05, 2021 4:02 pm
Forum: ZoneMinder 1.32.x
Topic: Zoneminder 1.32.2-3 on Raspberry Pi 3B
Replies: 4
Views: 15780

Re: Zoneminder 1.32.2-3 on Raspberry Pi 3B

What do you have set as the Source Type on the General tab of the camera config?

Using FFMpeg as the Source Type works with my cameras' rtsp streams, using TCP as the a Method on the Source tab.
by kitkat
Tue Oct 05, 2021 10:39 am
Forum: ZoneMinder 1.36.x
Topic: Testing zones against stored events?
Replies: 8
Views: 5055

Re: Testing zones against stored events?

Here's a quick-n-dirty Bash script that'll take a video file as input and save the individual frames one-by-one to a single output file, with each frame overwriting the previous one. Speed is limited to how fast FFMpeg runs, and it'll probably push the server load up whilst it's running. If you can ...
by kitkat
Tue Oct 05, 2021 2:02 am
Forum: ZoneMinder 1.36.x
Topic: Testing zones against stored events?
Replies: 8
Views: 5055

Re: Testing zones against stored events?

Or is that too easy?! :? Huh. Mind blown. That's just the kind of big brain thinking I come here for - I'll give it a shot and see what happens. I did see a post from a couple of years ago saying the file source type was broken and probably not much of a priority since no one uses it, but it's wort...
by kitkat
Tue Oct 05, 2021 12:58 am
Forum: ZoneMinder 1.36.x
Topic: Testing zones against stored events?
Replies: 8
Views: 5055

Re: Testing zones against stored events?

Interesting...

Maybe you could simply use the URL of an existing event's video as the source host/path? Ideally a direct link to the .mp4 so as to avoid any ZM overhead, or perhaps copy it to another directory accessible to the web server first.

Or is that too easy?! :?