Ouba
Posts: 11
Joined: Sun Jan 01, 2017 4:12 pm

Re: PiKrellCam: motion vector detect + OSD web interface

Sat Sep 15, 2018 2:07 pm

I would also appreciate this feature. Only still when motion is detected.

I think that I find a bug. When the fonction "on startup loop" is ON, the timing for the loop limite is not good.

600 is read as an hour not 600sec ...

Thanks

pkavanau
Posts: 2
Joined: Wed May 02, 2018 9:13 pm

Re: PiKrellCam: motion vector detect + OSD web interface

Sun Nov 04, 2018 8:00 pm

I also wanted the option to take only stills, mainly to avoid having to separately purge the videos and stills directories.

Now instead, I take a still at the start of each motion event, then at motion end rename the still to match its associated motion file, so the media archive script could be easily modified to delete this associated still whenever a video is deleted.

Specifically,

Set these variables in pikrellcam.conf:
on_motion_begin @still
on_motion_end mv $s `dirname $s`/`basename $v .mp4`.jpg

Add these commands to the else block in function delete_file of media-archive.php:
// Delete associated still, too
$still = str_replace(".mp4", ".jpg", $fname);
unlink("$media_dir/stills/$still");

arnauld
Posts: 20
Joined: Wed Oct 14, 2015 2:12 pm

Re: PiKrellCam: motion vector detect + OSD web interface

Mon Nov 05, 2018 7:39 pm

Hello,

Have you seen this camera board?

Image

https://www.kubii.fr/cameras-accessoire ... 12516.html

Do you think it is possible to have the 4 cameras at the same time using Pikrellcam?

tropho
Posts: 37
Joined: Mon Feb 26, 2018 11:36 pm

Re: PiKrellCam: motion vector detect + OSD web interface

Mon Nov 05, 2018 8:05 pm

arnauld wrote:
Mon Nov 05, 2018 7:39 pm
Hello,

Have you seen this camera board?

Image

https://www.kubii.fr/cameras-accessoire ... 12516.html

Do you think it is possible to have the 4 cameras at the same time using Pikrellcam?
I'm not sure about PiKrellCam accessing more than one camera per Raspberry Pi, but no matter what software is used it is not possible to access more than one camera simultaneously using this board. Per the manufacturer, this Arducam multi-camera board only allows access to one camera at a time, which might be useful if you wanted to build a 3D scanner or something similar where you wanted to take photos from multiple cameras and various angles. As a surveillance option, the best you could do with it would be to have it access each camera for a period of time (e.g. five seconds), cycling among the cameras but you could not record from say, camera #1 while viewing any of the other three cameras. In that case camera placement would also be limited to the length of each camera cable. There are flat camera cable-to-HDMI converters that allow very long cable runs using HDMI cables, but for the cost of four of those you would be better off buying multiple Raspberry Pi computers with their own cameras and have no limitation on placement (besides a power supply of course). I would recommend multiple Raspberry Pi's if you want multiple cameras. I have done this and it works well.

One more thing to note: this board is limited to the older 5 megapixel Raspberry Pi camera modules. The newer 8 megapixel version (v2.1) camera module is not compatible with this board.

tropho
Posts: 37
Joined: Mon Feb 26, 2018 11:36 pm

Re: PiKrellCam: motion vector detect + OSD web interface

Mon Nov 05, 2018 8:12 pm

tropho wrote:
Mon Nov 05, 2018 8:05 pm
arnauld wrote:
Mon Nov 05, 2018 7:39 pm
Hello,

Have you seen this camera board?

Image

https://www.kubii.fr/cameras-accessoire ... 12516.html

Do you think it is possible to have the 4 cameras at the same time using Pikrellcam?
I'm not sure about PiKrellCam accessing more than one camera per Raspberry Pi, but no matter what software is used it is not possible to access more than one camera simultaneously using this board. Per the manufacturer, this Arducam multi-camera board only allows access to one camera at a time, which might be useful if you wanted to build a 3D scanner or something similar where you wanted to take photos from multiple cameras and various angles. As a surveillance option, the best you could do with it would be to have it access each camera for a period of time (e.g. five seconds), cycling among the cameras but you could not record from say, camera #1 while viewing any of the other three cameras. In that case camera placement would also be limited to the length of each camera cable. There are flat camera cable-to-HDMI converters that allow very long cable runs using HDMI cables, but for the cost of four of those you would be better off buying multiple Raspberry Pi computers with their own cameras and have no limitation on placement (besides a power supply of course). I would recommend multiple Raspberry Pi's if you want multiple cameras. I have done this and it works well.

One more thing to note: this board is limited to the older 5 megapixel Raspberry Pi camera modules. The newer 8 megapixel version (v2.1) camera module is not compatible with this board.
Actually, I am wrong! I was thinking about the other Arducam multicamera board (this one: https://www.amazon.com/Arducam-Camera-A ... B012UQWOOQ), which has the limitation I described. The one you linked to apparently takes pictures from four 5 megapixel cameras simultaneously, then stitches them into a panoramic picture for a 360-degree photograph. This still may not be ideal or compatible for video purposes though.

The manufacturer Arducam states the following regarding simultaneously accessing the cameras: "The micro-controller will issue capture command at the same time, then the four camera start capture process automatically and save to their own onboard frame buffer. You micro-controller will read back the image data one by one from each camera module."

Good luck!

arnauld
Posts: 20
Joined: Wed Oct 14, 2015 2:12 pm

Re: PiKrellCam: motion vector detect + OSD web interface

Mon Nov 05, 2018 10:05 pm

This still may not be ideal or compatible for video purposes though.
This other board is compatible for video purposes:
Now Arducam team designed upgrade V2.1 multi-camera adapter board for both 5MP and 8MP pi cameras
http://www.arducam.com/arducam-v2-1-mul ... ra-imx219/

tropho
Posts: 37
Joined: Mon Feb 26, 2018 11:36 pm

Re: PiKrellCam: motion vector detect + OSD web interface

Tue Nov 06, 2018 1:15 pm

arnauld wrote:
Mon Nov 05, 2018 10:05 pm
This still may not be ideal or compatible for video purposes though.
This other board is compatible for video purposes:
Now Arducam team designed upgrade V2.1 multi-camera adapter board for both 5MP and 8MP pi cameras
http://www.arducam.com/arducam-v2-1-mul ... ra-imx219/
That is awesome, thank you for sharing the link! I'm happy to see there is a new version.

User avatar
jbeale
Posts: 3367
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

script to trigger still & upload to weather site

Fri Nov 09, 2018 10:09 pm

I haven't kept current on this thread, so it's likely been done before- but anyway, in case it's helpful, here is a script I use to trigger PiKrellCam to take a still image every 5 minutes, resize, and upload it to a weather-camera site. I'm using a 3rd-party fisheye variant of the standard Pi camera, pointed up to the sky so you can see (nearly) 360 degrees, well apart from all the trees.

https://github.com/jbeale1/DataAcq/blob ... -upload.sh

Photo of the camera, a temporary install as you see:
https://photos.app.goo.gl/Xn9GJUpAkHGGPWDz6

Return to “Camera board”