Git Product home page Git Product logo

pikrellcam's Introduction

PiKrellCam

PiKrellCam is an audio/video recording motion detect program with an OSD web interface that detects motion using the Raspberry Pi camera MMAL motion vectors.

Read about it and install instructions at: PiKrellCam webpage

Git download with: $ git clone https://github.com/billw2/pikrellcam

pikrellcam's People

Contributors

barrywoolgar avatar billw2 avatar codomania avatar hvdwolf avatar yves911 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pikrellcam's Issues

Audio event?

First of all, the compliments for the good work.!!!

Then the question: is there a way to trigger a recording event when noise comes to a certain level?

Thanks

Mauro

Coral Edge TPU

I used to capture screens from my Pikrellcam setup on a second Pi then run them through image recognition using a Coral USB Accelerator sending a notification to my Google Home via Node-Red when an person was detected and waking a screen showing the stream.
It worked well but was very complex and fragile especially as I could only get the image recognition working in a virtual environment.
Anyway I wondered if anyone had done anything similar or can think of a better way to make use of the USB Accelerator?

Request: Motion Event in Region Triggers Custom URL

Is it possible to have http triggers? That is notion is detected it opens an custom url?

The reason I ask is that I would like it to have it included in my home automation. Such that I can send myself a message when a motion happens (in a region).

The other reason is I would like to use the motion detection with regions to detect walk direction and zone (= room or part of room) occupation. And of course record everything.

https://www.domoticz.com/forum/viewtopic.php?f=35&t=8390&p=90277&hilit=motioneye#p90277
http://domoticz.com/forum/viewtopic.php?f=23&t=11908&p=85624&hilit=camera+zones#p85624

Display Additional Info On screen

Hi Bill,

I'd like to implement the ability to display additional information on screen (sensor readings, etc.) , preferably by writing the info to the FIFO.

Any advice, before I get started, regarding where things should go?

Thanks!

no audio from i2s-mems breakout

I tried using a usb microphone to record audio and that worked but was extremely quiet as the mic was poor quality so I switched to an adafruit i2s-mems breakout, wired it all up, and tested it with arecord and it works perfectly with one exception pikrellcam does not record any audio with it, it opens the microphone for recording and the button appear on the UI but doesn't record anything.

Install on Raspbian Stretch 9.1 fails

Trying to install pikrellcam on a Raspberry Pi running the latest version of Raspbian (Stretch 9.1).
The install-pikrellcam.sh script tries to install php5 (among other pre-requisites) which has been obsoleted and removed from the Stretch repositories (see https://wiki.debian.org/PHP#PHP_and_Debian).
Running install-pikrellcam.sh results in the following output messages;
--------- snip --------

Starting PiKrellCam install...
Installing packages:  gpac php5 php5-common php5-fpm nginx libav-tools bc sshpass mpack imagemagick apache2-utils libasound2-dev libmp3lame-dev
Running: apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Get:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease [15.0 kB]
Fetched 15.0 kB in 2s (5,110 B/s)                         
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-common is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-fpm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate
E: Package 'php5-common' has no installation candidate
E: Package 'php5-fpm' has no installation candidate
./install-pikrellcam.sh: line 137: bc: command not found
./install-pikrellcam.sh: line 140: [: -gt: unary operator expected
Making /usr/local/bin/pikrellcam link.
Adding to /etc/sudoers.d: www-data permission to run pikrellcam as user pi:
./install-pikrellcam.sh: line 250: htpasswd: command not found
chown: cannot access 'www/.htpasswd': No such file or directory
grep: /etc/nginx/nginx.conf: No such file or directory
Turning off nginx access_log.
sed: can't read /etc/nginx/nginx.conf: No such file or directory
./install-pikrellcam.sh: line 266: [: -gt: unary operator expected
Installing /etc/nginx/sites-available/pikrellcam
    nginx web server port: 80
    nginx web server root: /home/pi/pikrellcam/www
cp: cannot create regular file '/etc/nginx/sites-available/pikrellcam': No such file or directory
sed: can't read /etc/nginx/sites-available/pikrellcam: No such file or directory
realpath: /etc/nginx/sites-enabled/default: No such file or directory
Changing /etc/nginx/sites-enabled/default link to pikrellcam
ln: failed to create symbolic link '/etc/nginx/sites-enabled/default': No such file or directory
Adding /etc/nginx/sites-enabled/default link to sites-available/pikrellcam.
ln: failed to create symbolic link '/etc/nginx/sites-enabled/default': No such file or directory
A password for the web page is not set.
sed: can't read /etc/nginx/sites-available/pikrellcam: No such file or directory
Failed to restart nginx.service: Unit nginx.service not found.

Install finished.
This install script does not automatically start pikrellcam.
To start pikrellcam, open a browser page to:
    http://your_pi
and click on the "System" panel and then the "Start PiKrellCam" button.
PiKrellCam can also be run from a Pi terminal for testing purposes.

--------- snip --------

Stretch repositories do include PHP7.0
Is pikrellcam compatible with PHP7.0?
Can the installer script be updated to detect Raspbian Stretch 9+ and install prerequisite packages 'php7.0 php7.0-common php7.0-fpm' instead of 'php5 php5-common php5-fpm'?

Duplicate location "/" line: 44?

(/var/log/syslog):
nginx[646]: nginx: [emerg] duplicate location "/" in /etc/nginx/sites-enabled/pikrellcam:44

location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;

Was unable to access PikrellCam Webpage. Found this when troubleshooting.

upgrade to Buster Raspbian

Pikrellcam becomes slow in Raspberry Pi4 with Buster. Is there a plan to make Pikrellcam compatible with ruster

nginx update broke pikrellcam

On november 11 I did an update to my raspbian, it consisted mostly of nginx updates. After that update, pikrellcam stoped working an I get the following message in journalctl when I try to start pikrellcam from the web interface:
Nov 21 14:17:53 RPi-Salon sudo[1468]: www-data : TTY=unknown ; PWD=/home/pi/pikrellcam/www ; USER=pi ; COMMAND=/home/pi/pikrellcam/pikrellcam
Nov 21 14:17:53 RPi-Salon sudo[1468]: pam_unix(sudo:session): session opened for user pi by (uid=0)
Nov 21 14:17:53 RPi-Salon sudo[1492]: pam_unix(sudo:auth): conversation failed

I have been checking all permissions and made shure pi was member of www-data group, nothing worked any indication as to where I should be looking for?

sound quality.

Hello,

I've been using pikrellcam for two weeks, I use it to record squirrels and birds in my garden, and it is working great. I'm wondering if there is a way to play with the sound quality, and how? Also, would you recommend any usb mic, as, for now, there is a lot of "noise" recorded in the video and I have to clean it in audacity to get a decent/clear sound?

Thank you,

frame rates

Hi, I cross posted on raspberry.org forums but this may be a more appropriate place. Changing the video_fps setting in pikrellcam.config file has no effect on the video output. I output .h264 files at different video_fps settings (lower, higher than default 24) and examine them with "ffmpeg -i" (or VLC->Media Information) - the clips are always reported to be encoded at 25 frames per second.
Is there any way to change the video_fps value to produce a corresponding output?

Thanks!!!

Still image motion detect

I have a question I would like to use the Function timelapse but only when there is motion detected. Is this possible and I can customize this turn or a script. I'm very satisfied with this program works very well. only timelapse takes up too much space on an SD card. I hope you can help me.

could not find component 'vc.ril.camera'

I tried to run pikrellcam under alpine linux, but after start pikrellcam it quits with "could not find component 'vc.ril.camera'".
raspistill and raspivid are operational.

Login twice

Hi!

I set it up with a password so you have to login when going to the web page, but when I go the media, it ask again for the same password (still showing. all the previews).

Is the second login necessary?
If so, a different password would be nice or an option to turn it off. And not showing the preview until you log into the media section.

If not :-) can the second login be removed?

Thanks! Great program!

All my cameras are dropping network connection after latest update.

I am having a serious problem with my cameras dropping their network connection since running the last update for the pikrellcam software. I have been using 2 R-Pi Zero W boards with day-night cameras for over 2 years now with no problems. They are connected via WiFi to a router that is about 10 feet away with clear line of sight. I only started having problems with both of them dropping their wifi connection after running the most recent updates for both the pikrellcam software as well as the latest linux updates. When I try to access the web control interface I am getting no connection to the camera, or I get a "gateway timeout" error.
I really need to get these cameras working again since they are my home security cameras.
I have tried using a different router, and still have the same issue, so it has to be the camera software that is causing this problem or something got broken with the linux updates. I would really like some help getting this working again as I can not figure out what is causing my cameras to drop their network connections.

Disable ipv6?

ipv6 seems to be causing massive issues on my network. Can I run nginx with this using ipv4?

Thanks

Config silently fails to load on start

Hello,

I'm attempting to setup on_motion_preview_save as explained in the configuration example however any changes I make to ~/.pikrellcam/pikrellcam.conf do not appear to be picked up upon restarting.

I've tried adding an invalid line and it doesn't complain. I believe it may simply use the default config without any notification.

Thanks for this awesome project and all the hard work!

Here's the output of running it with -v
`root@3bc92cf78f95:# /home/pi/pikrellcam/pikrellcam -v &
[1] 317
root@3bc92cf78f95:
# ======= PiKrellCam 4.1.6 started at 2018-05-14 04:35:21
== Dropped root priviledges-continuing as normal user ==

check_modes(/home/pi/pikrellcam/www) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
command FIFO: /home/pi/pikrellcam/www/FIFO
audio FIFO : /home/pi/pikrellcam/www/audio_FIFO
mjpeg stream: /run/pikrellcam/mjpeg.jpg
make_dir(/home/pi/pikrellcam/media)
make_dir(/home/pi/pikrellcam/media) dir already exists.
check_modes(/home/pi/pikrellcam/media) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
make_dir(/home/pi/pikrellcam/media/archive)
make_dir(/home/pi/pikrellcam/media/archive) dir already exists.
check_modes(/home/pi/pikrellcam/media/archive) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
make_dir(/home/pi/pikrellcam/media/loop)
make_dir(/home/pi/pikrellcam/media/loop) dir already exists.
check_modes(/home/pi/pikrellcam/media/loop) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
04:35:21 : execl[wait:1]: /home/pi/pikrellcam/scripts-dist/_init /home/pi/pikrellcam /home/pi/pikrellcam/media/archive /home/pi/pikrellcam/media /run/pikrellcam/mjpeg.jpg /home/pi/pikrellcam/www/FIFO /tmp/pikrellcam.log servos_off /home/pi/pikrellcam/media/loop
04:35:21 : execl[wait:1]: /home/pi/pikrellcam/scripts/startup /home/pi/pikrellcam /home/pi/pikrellcam/media /home/pi/pikrellcam/media/archive /tmp/pikrellcam.log
check_modes(/home/pi/pikrellcam/media) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
check_modes(/home/pi/pikrellcam/media/archive) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
check_modes(/home/pi/pikrellcam/media/loop) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
check_modes(/tmp/pikrellcam.log) 664
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
check_modes() (100644) execing: sudo chmod 664 /tmp/pikrellcam.log
04:35:21 : execl[wait:1]: sudo chmod 664 /tmp/pikrellcam.log
make_dir(/run/pikrellcam)
make_dir(/run/pikrellcam) dir already exists.
check_modes(/run/pikrellcam) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
make_dir(/home/pi/pikrellcam/media/videos)
make_dir(/home/pi/pikrellcam/media/videos) dir already exists.
check_modes(/home/pi/pikrellcam/media/videos) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
make_dir(/home/pi/pikrellcam/media/thumbs)
make_dir(/home/pi/pikrellcam/media/thumbs) dir already exists.
check_modes(/home/pi/pikrellcam/media/thumbs) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
make_dir(/home/pi/pikrellcam/media/loop)
make_dir(/home/pi/pikrellcam/media/loop) dir already exists.
check_modes(/home/pi/pikrellcam/media/loop) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
make_dir(/home/pi/pikrellcam/media/stills)
make_dir(/home/pi/pikrellcam/media/stills) dir already exists.
check_modes(/home/pi/pikrellcam/media/stills) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
make_dir(/home/pi/pikrellcam/media/timelapse)
make_dir(/home/pi/pikrellcam/media/timelapse) dir already exists.
check_modes(/home/pi/pikrellcam/media/timelapse) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
make_fifo(/home/pi/pikrellcam/www/FIFO)
make_fifo(/home/pi/pikrellcam/www/FIFO) FIFO already exists.
check_modes(/home/pi/pikrellcam/www/FIFO) 664
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 664 already OK.
make_dir(/home/pi/pikrellcam/media/loop/videos)
make_dir(/home/pi/pikrellcam/media/loop/videos) dir already exists.
check_modes(/home/pi/pikrellcam/media/loop/videos) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
make_dir(/home/pi/pikrellcam/media/loop/thumbs)
make_dir(/home/pi/pikrellcam/media/loop/thumbs) dir already exists.
check_modes(/home/pi/pikrellcam/media/loop/thumbs) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
make_dir(/home/pi/pikrellcam/media/archive)
make_dir(/home/pi/pikrellcam/media/archive) dir already exists.
check_modes(/home/pi/pikrellcam/media/archive) 775
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 775 already OK.
make_fifo(/home/pi/pikrellcam/www/audio_FIFO)
make_fifo(/home/pi/pikrellcam/www/audio_FIFO) FIFO already exists.
check_modes(/home/pi/pikrellcam/www/audio_FIFO) 664
getgrgid() current group name: www-data
getpwuid() current user name: root
User and group names already OK.
Access mode 664 already OK.
04:35:21 : video circular buffer - 26.25 MB (35 seconds, 6.0 Mbits/sec)
top status area: x:0 y:0 dx:800 dy:47
inform area: x:0 y:47 dx:800 dy:354
adj_control area: x:0 y:354 dx:800 dy:47
bottom status area: x:0 y:401 dx:800 dy:47
Event count down add [preset notify] count=22
04:35:21 : Server running...waiting for connections.
04:35:21 : MJPEG server is listening on port '9999'
sunrise/sunset times: valid dawn/dusk times: valid
dawn: 11:11
sunrise: 11:37
sunset: 1:18
dusk: 1:44
04:35:23 : execl[wait:1]: /home/pi/pikrellcam/scripts-dist/_log-lines 500 /tmp/pikrellcam.log
`

Security aspects

I discovered your software few days ago and i have been very impressed about how its powerful (live stream with good quality and reliable motion detection). I was using motion until now and consider to switch to your software.
I would like to open the stream on internet but with some restrictions and security:

  1. do you plan to provide instructions to make the server running on https? (i can still use stunnel to have https)
  2. do you have plan to enhance security with a username/password (currently if you connect to 'http://_______fr:8081/mjpeg_read.php directly you will see the image without the need to enter any crendetial'

Thanks for this great work !

night vision.

Hello,

when using a night vision system, this camera: Raspberry Pi Camera Board - Night Vision (5MP), https://www.modmypi.com/raspberry-pi/camera/camera-boards/raspberry-pi-camera-board-night-vision-5mp and when motion detection is on, I have a lot of false detections and it records even when there is nothing moving. I guess it is due to the IR leds, but I am not sure. Do you have any clue or advice for this?

here is a screencast I did when motion is on: https://youtu.be/TJ1LpKHq220

Thank you,

Timelapse configuration

I've been using pikrellcam for a couple of years for wildlife photography and found it excellent for shooting videos.

I would like to be able to use it to also take timelapse stills, specifically from when powered up to when powered down and at 30 second intervals.

I can set these paramaeters by connecting to the web page, but I can't find anyway of saving the settings so that 'it just works' like the video capture does. Is it possible, and if so, how, please?

Thank you.

Rotation problem...

I have a problem with rotation. I wanted to use this to monitor a door... so I placed the camera like I though was the best view..., thinking I could rotate the image:

screen shot 2016-12-29 at 23 43 05

so i edited /home/pi/.pikrellcam/pikrellcam.conf and at the end I placed rotation 90 still thinking it would come out fine. The camera has not moved inbetween...

screen shot 2016-12-29 at 23 46 10

but... when it rotates, it cuts off the parts I want!? And adds new parts... it keeps the same tv aspect ratio :-/

is it possible in any way such that the view in the first image (although good for now, but with a 90 degree crooked neck when viewing) is somehow rotated on the webpage (and recording) to 1080x1920?

also is it possible to record sound with the video's?

drift audio from video out of sync

When recording video with audio, the mic is ahead of the video, and it is getting worse every minute.
It is known, that the fps of Raspi-Camera and USB-Microphones usually don’t match.
So I wonder, how do you compensate the drift?

I tried to compensate by setting the mp4box-fps just by 1 higher than fps, e.g. fps=23, mp4box=24, what tuned out as video is ahead of the mic-audio.
I tried comma-values in the config-file directly, like fps=23.4 (period) or 23,3 (comma), and mp4box=23,8 or 23.9, and many other pairs of values, but as long as only integer values are processed, I can not find a matching value to compensate the drift.

Or, is there any parameter to adjust for the process that converts h246 and audio to mp4 to minimize the drift?

I´m using Raspberry Pi3+ with BusterLite as basis for PiKrellCam.
May be I should downgrade?

Right now I´m out of ideas.
Any hint appreciated.

Greetings, Gunneg

The New rapcam 8 megapixel

Hello the new raspcam 8 megapixel is not working in this version. it is possible that this well is possible. very happy because I think good work the program.

Sincerely Harrie

Installation under different username --> permissions problem?

After a successful installation on a fresh Raspbian Stretch (Lite) on a RPI1B, Pikrellcam starts nicely. However, I don't get any image. I've found the following in the logs:

make_dir(/run/pikrellcam) failed. No such file or directory
Failed to create media directories or FIFO, exiting!

The camera module works as raspistill generates an image.

Request: Face Recognition

At first, thank you for this great piece of software! There is no better one out there for Raspberry Pi. :-)

I would like to see face recognition in one of the future software versions. Would it be possible to implement this feature in the future?
I use your software on some Raspberries, one of it is for monitoring my automatic cat-flap and is making videos every time my cat leaves the home or comes back. As trigger I use a specific region of the cat-flap door, which only moves when the cat unlocks the door with it's implanted pet chip.
There are a few false positives (<2%) when it's very stormy outside and the door begins to flatter.
With face recognition, which should even work with a cat's face, I could eliminate the false positives.

catcam

stream to synology server

Thank you for superb software it works perfect for me.

Recently I bought “Zero W” and install Pikrellcam,
Could anyone help me to setup that I would be able to save stream from cam into my Synology server over network in some low bandwidth format, not mjpge.
My first cctv camera works on motioneyeos and I have to say 1 day it can take upto 20gb of space with 2fps and 640x480 resolution.
Thank you.
Michal

Request: Support Adafruit ServoHat

Hi,

I am using the Adafruit Servo Hat for controlling my servos, mainly because it lets me power them with a separate 6V supply.
It would be really convenient for me if PiKrellCam supported the Servo Hat.

Would you be interested in adding support for it?
Would you be interested in me hacking about with PiKrellCam to get it working with the ServoHat?

Jim

Inconsistency in mpack thumbnail

Using Raspbian Buster on a Raspberry Pi 3 model A.
Due to ssmtp not working under Buster, I had to resort to configuring msmtp, which seems to work, but adds another variable in this equation, see: https://askubuntu.com/questions/1163881/having-some-issues-to-send-mails-using-ssmtp

I'm using the camera in vertical orientation, with the following set in pikrellcam.conf:
video_width 1072
video_height 1440
mjpeg_width 608

I have emails set up accordingly (obviously I changed the emails for this issue write-up)...
on_motion_preview_save mpack -s pikrellcam@$H $F [email protected]
on_motion_begin /usr/bin/msmtp "[email protected],[email protected]" < /home/pkc/scripts/cam1_activity

I always get the "on_motion_begin" email, but rarely ever the "on_motion_preview_save" email.
Looking at the logs indicates inconsistent behaviors (20:47:50 was fine but others weren't):

20:44:23 : execl[wait:0]: /home/pkc/pikrellcam/scripts-dist/_thumb /run/pikrellcam/motion_2020-01-25_20.44.19_76.jpg /tmp/pikrellcam.log /home/pkc/pikrellcam/media/thumbs/motion_2020-01-25_20.44.19_76.th.jpg 150x150 80 217 560 707; rm -f /run/pikrellcam/motion_2020-01-25_20.44.19_76.jpg
20:44:33 : execl[wait:0]: nice -n 5 MP4Box -quiet -tmp /tmp -fps 25.930 -add /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.44.19_76.h264 /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.44.19_76.mp4 2> /dev/null && rm -f /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.44.19_76.h264 ; rm -f /run/pikrellcam/video_converting;
20:45:17 : execl[wait:0]: /home/pkc/pikrellcam/scripts-dist/_thumb /run/pikrellcam/motion_2020-01-25_20.45.12_77.jpg /tmp/pikrellcam.log /home/pkc/pikrellcam/media/thumbs/motion_2020-01-25_20.45.12_77.th.jpg 150x150 144 80 252 707; rm -f /run/pikrellcam/motion_2020-01-25_20.45.12_77.jpg
20:45:26 : execl[wait:0]: nice -n 5 MP4Box -quiet -tmp /tmp -fps 25.930 -add /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.45.12_77.h264 /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.45.12_77.mp4 2> /dev/null && rm -f /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.45.12_77.h264 ; rm -f /run/pikrellcam/video_converting;
20:45:42 : execl[wait:0]: /home/pkc/pikrellcam/scripts-dist/_thumb /run/pikrellcam/motion_2020-01-25_20.45.37_78.jpg /tmp/pikrellcam.log /home/pkc/pikrellcam/media/thumbs/motion_2020-01-25_20.45.37_78.th.jpg 150x150 80 80 417 474; rm -f /run/pikrellcam/motion_2020-01-25_20.45.37_78.jpg
20:45:51 : execl[wait:0]: nice -n 5 MP4Box -quiet -tmp /tmp -fps 25.930 -add /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.45.37_78.h264 /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.45.37_78.mp4 2> /dev/null && rm -f /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.45.37_78.h264 ; rm -f /run/pikrellcam/video_converting;
20:47:50 : execl[wait:0]: /home/pkc/pikrellcam/scripts-dist/_thumb /run/pikrellcam/motion_2020-01-25_20.47.45_79.jpg /tmp/pikrellcam.log /home/pkc/pikrellcam/media/thumbs/motion_2020-01-25_20.47.45_79.th.jpg 150x150 169 268 174 299; mpack -s pikrellcam@pi /run/pikrellcam/motion_2020-01-25_20.47.45_79.jpg [email protected]; rm -f /run/pikrellcam/motion_2020-01-25_20.47.45_79.jpg
20:47:59 : execl[wait:0]: nice -n 5 MP4Box -quiet -tmp /tmp -fps 25.930 -add /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.47.45_79.h264 /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.47.45_79.mp4 2> /dev/null && rm -f /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.47.45_79.h264 ; rm -f /run/pikrellcam/video_converting;
20:48:06 : execl[wait:0]: /home/pkc/pikrellcam/scripts-dist/_thumb /run/pikrellcam/motion_2020-01-25_20.48.01_80.jpg /tmp/pikrellcam.log /home/pkc/pikrellcam/media/thumbs/motion_2020-01-25_20.48.01_80.th.jpg 150x150 80 127 114 208; rm -f /run/pikrellcam/motion_2020-01-25_20.48.01_80.jpg
20:48:15 : execl[wait:0]: nice -n 5 MP4Box -quiet -tmp /tmp -fps 25.930 -add /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.48.01_80.h264 /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.48.01_80.mp4 2> /dev/null && rm -f /home/pkc/pikrellcam/media/videos/motion_2020-01-25_20.48.01_80.h264 ; rm -f /run/pikrellcam/video_converting;

Any suggestions on how to go about debugging this?

no sound

hello,

thank you for pikrellcam. I added a usb mic which is working and recording when I run

arecord -D plughw:1,0 -f cd test.wav

pikrellcam is recording a video when there is a motion, but there is no audio. Do I have to select an option or activate something somewhere ?

Thank you,

Batch downloading videos?

I'm looking for a way to download batches of videos at the same time? The only download method I see is to download single individually selected videos at a time... Any suggestions appreciated!

Function create_function() is deprecated

Hi,

The create_function() is deprecated since PHP 7.2.
Can you use something else please?
It's used in this line of media-archive:
usort($media_array, create_function('$a, $b','return strcmp($a["mtime"], $b["mtime"]);'));

Thanks!

Contact

Hi I need to contact you from a work based on your pikrellcam project.

greetings

Mauro

Logitech c920

I have a question about a USB webcam . it is possible to connect a USB Webcam C920 in pikrellcam . The pICAM works fine but would also like to connect a USB webcam .

White screen on GUI with pinoir v2

I have attached a pinoir v2 to a Pi0w and I have noticed that if exposed to sudden light after a period of darkness the GUI turns white and remains so until the pikrellcam is restarted.
It also seems that this is not only in the GUI because motiondetection does not work once you have a white screen.

It seems to happen when exposure is set to auto.
It does not happen with other cameras (typically pimoroni similar to picamera v1) and it does not happen if exposure setting is set to Off.

Not sure why this happens.
Is there anywhere I can read what the different settings do so I could test?

Cleaning out every text from stream

I haven't found an option to remove every text from the stream. After removing any possible text is still states "Motion ON" and "REC (Stop)" in the left bottom corner and "1-1" in the right bottom corner. How can I remove those texts as well? If this is not possible, please move this issue to feature requests. It would be nice to even clean this out, either by option in config file or with bypass access method (e.g. something like mjpeg_stream_clean.php).

GUI responsiveness on Pi4b when video is set to 1080p

I have several camera traps all using different Pi's and I've noticed on all that when video is set to 1080p the gui can be a bit slower but on the Pi4b it is much slower, for example to scroll through the menus I have to press a nav button wait a couple of seconds for the menu to move, then press another button, but if I stick it down to 720p it's smooth.

Raspberry pi 3

Best Bill , it is possible to run this version on a raspberry pi 3 ? and also with the latest version of the raspcam 8 megapixel camera ?

Request: use h264 as input stream

I'm using pikrellcam with my RPi 3 and the RPi 8mp camera module. The pikrellcam software works perfect, but the RPi camera module performs really bad in low light conditions.
I have an excellent light sensitive camera with a Sony Exmor sensor at home that captures everything during the night, see here. The software of this camera is awful, but it can create a H264 and H265 stream.

Would it be possible to feed the H264 stream of my external camera into pikrellcam? So pikrellcam can do the motion detection?

Pi zero w Crash

I've been running pikrellcam on 2 Raspberry pi for around 2 years. Great software.

The 2 PI s are Raspberry Pi 1 Model A+ and a PI zero 1.3 non wifi.

Got a pi zero w to create another camera setup, and have nothing but problems.

I installed stretch lite, setup internal wifi, and downloaded pikrellcam, ran the install script no issue.

Problem seems to be when when pikrellcam is running.

After some time the PI stops responding completely. I swapped out everything but the memory card, and even bought a new PI zero W to test if PI was faulty but has the same issue.

I have a feeling it's probably not the memory card. It's a Sandisk class 10 card, but I can swap that out too.

If I swap the memory card out to an older PI Zero non wifi, and use either a usb ethernet or a wifi dongle for connectivity, I don't get the crashes.

The crashes come more often as soon as I start connecting via SSH whilst pikrellcam is running.
I then have to pull the plug

The power supply I'm currently using is a 1200mah fixed cord power supply I originally got with my first ever PI. I have also tried other power supplies with same results.

I've added some pictures of errors I've been getting.

https://photos.app.goo.gl/qZ9yU9nhEFQVvNCe7
https://photos.app.goo.gl/CV1aM6avcFGGdScs8
https://photos.app.goo.gl/HPRuRBoAehsWjAaM8

Depencency hell

Hi,

First of all, thank you very much for all the effort put forward in making pikrellcam and sharing it with the world. I tried to install it on a Pi3 running as headless server with very minimal linux (minibian) and I was shocked to find out that it downloaded about 200 libraries (close to 300MB in total) when I checked apt's log. See attachment for details.

However, when I graphed the dependency of the pikrellcam executable by itself (please see attached image), it doesn't look that complicated. Can somebody shade some light on what's going on ? I would still like to keep my pi running very lean on resources but don't know how to proceed.

Would it be possible to run this great tool without the bloat that comes with it as part of running install-pikrellcam.sh ?

Regards,

Zinahe A.

apt-log.txt
dep

Media directories empty in web interface

I've got pikrellcam running on a RPi 2 with Raspbian Wheezy. The media directory is located on a 1TB 2,5" USB hard disk (FAT32). Motion detection works very well, movies and thumbs are stored on the drive, but the web interface says "No files" and "Disk: 0.0B Free: 0.0B Used: 0.0BB (0.0 %)"

I'm running pikrellcam and motioneye in parallel, pikrellcam with the pi-cam and motioneye with a network cam. The drive is mounted statically with an entry in fstab. I can view the videos and thumbs by browsing a samba share of the drive, but not from within the pikrellcam web interface.

========================================================
2016-01-09 22:31:58 ===== PiKrellCam 2.1.8 started =====
========================================================
using FIFO: /home/pi/pikrellcam/www/FIFO
using mjpeg: /run/pikrellcam/mjpeg.jpg
22:31:58 : execl:[sudo chown pi.www-data /media/TOSHIBA_1TB/pikrellcam]
22:31:58 : execl:[sudo chmod 775 /media/TOSHIBA_1TB/pikrellcam]
22:31:58 : execl:[sudo chown pi.www-data /media/TOSHIBA_1TB/pikrellcam/archive]
22:31:58 : execl:[sudo chmod 775 /media/TOSHIBA_1TB/pikrellcam/archive]
22:31:58 : execl:[/home/pi/pikrellcam/scripts-dist/_init /home/pi/pikrellcam /media/TOSHIBA_1TB/pikrellcam/archive /media/TOSHIBA_1TB/pikrellcam /run/pikrellcam/mjpeg.jpg /home/pi/pikrellcam/www/FIFO /tmp/pikrellcam.log]
  www/media link is already set to /media/TOSHIBA_1TB/pikrellcam
  www/archive link is already set to /media/TOSHIBA_1TB/pikrellcam/archive
  /home/pi/pikrellcam/www/config.php: LOG_FILE not changed.
  /home/pi/pikrellcam/www/config.php: MJPEG_FILE not changed.
  /home/pi/pikrellcam/www/config.php: FIFO_FILE not changed.
  /home/pi/pikrellcam/www/config.php: PIKRELLCAM not changed.
  /home/pi/pikrellcam/www/config.php: VERSION not changed.
22:31:58 : execl:[/home/pi/pikrellcam/scripts/startup /home/pi/pikrellcam /media/TOSHIBA_1TB/pikrellcam /tmp/pikrellcam.log]
  MOUNT_DISK is not set.
22:31:58 : execl:[sudo chown pi.www-data /media/TOSHIBA_1TB/pikrellcam]
22:31:58 : execl:[sudo chmod 775 /media/TOSHIBA_1TB/pikrellcam]
22:31:58 : execl:[sudo chown pi.www-data /media/TOSHIBA_1TB/pikrellcam/archive]
22:31:58 : execl:[sudo chmod 775 /media/TOSHIBA_1TB/pikrellcam/archive]
22:31:58 : execl:[sudo chown pi.www-data /tmp/pikrellcam.log]
22:31:58 : execl:[sudo chmod 664 /tmp/pikrellcam.log]
22:31:58 : execl:[sudo chown pi.www-data /media/TOSHIBA_1TB/pikrellcam/videos]
22:31:58 : execl:[sudo chmod 775 /media/TOSHIBA_1TB/pikrellcam/videos]
22:31:58 : execl:[sudo chown pi.www-data /media/TOSHIBA_1TB/pikrellcam/thumbs]
22:31:58 : execl:[sudo chmod 775 /media/TOSHIBA_1TB/pikrellcam/thumbs]
22:31:58 : execl:[sudo chown pi.www-data /media/TOSHIBA_1TB/pikrellcam/stills]
22:31:58 : execl:[sudo chmod 775 /media/TOSHIBA_1TB/pikrellcam/stills]
22:31:58 : execl:[sudo chown pi.www-data /media/TOSHIBA_1TB/pikrellcam/timelapse]
22:31:58 : execl:[sudo chmod 775 /media/TOSHIBA_1TB/pikrellcam/timelapse]
22:31:58 : circular buffer allocate: 26.25 MBytes (35 seconds at 6.0 Mbits/sec)
22:31:58 : Server: error binding
22:31:58 : Server running...waiting for connections.
22:31:58 : MJPEG server is listening on port '9999'
sunrise/sunset times: valid  dawn/dusk times: valid
  dawn:    7:07
  sunrise: 7:37
  sunset:  17:08
  dusk:    17:38
22:31:59 : execl:[/home/pi/pikrellcam/scripts-dist/_log-lines 1000 /tmp/pikrellcam.log]

========================================================
2016-01-10 ================== New Day ==================
========================================================
sunrise/sunset times: valid  dawn/dusk times: valid
  dawn:    7:07
  sunrise: 7:37
  sunset:  17:09
  dusk:    17:39
00:00:00 : execl:[/home/pi/pikrellcam/scripts-dist/_log-lines 1000 /tmp/pikrellcam.log]
08:11:52 : Video record: /media/TOSHIBA_1TB/pikrellcam/videos/motion_2016-01-10_08.11.52_0.mp4.h264 ...
08:11:52 : event preview save: copy /run/pikrellcam/mjpeg.jpg -> /run/pikrellcam/motion_2016-01-10_08.11.52_0.jpg
08:11:59 : event preview save: copy /run/pikrellcam/mjpeg.jpg -> /run/pikrellcam/motion_2016-01-10_08.11.52_0.jpg
08:11:59 : event preview save: copy /run/pikrellcam/mjpeg.jpg -> /run/pikrellcam/motion_2016-01-10_08.11.52_0.jpg
08:12:29 : Video motion record stopped. Header size: 28  h264 file size: 5224742
08:12:29 :     first detect: direction  totals - direction: 4  burst: 0  max burst count: 0
08:12:29 : execl:[(MP4Box -quiet -tmp /tmp -fps 10 -add /media/TOSHIBA_1TB/pikrellcam/videos/motion_2016-01-10_08.11.52_0.mp4.h264 /media/TOSHIBA_1TB/pikrellcam/videos/motion_2016-01-10_08.11.52_0.mp4 2> /dev/null && rm /media/TOSHIBA_1TB/pikrellcam/videos/motion_2016-01-10_08.11.52_0.mp4.h264)]
08:12:29 : execl:[/home/pi/pikrellcam/scripts-dist/_thumb /run/pikrellcam/motion_2016-01-10_08.11.52_0.jpg /media/TOSHIBA_1TB/pikrellcam /home/pi/pikrellcam/www/FIFO /tmp/pikrellcam.log 60 88 43 385]
  convert /run/pikrellcam/motion_2016-01-10_08.11.52_0.jpg -crop 88x88+0+341 -resize 150x150\! /media/TOSHIBA_1TB/pikrellcam/thumbs/motion_2016-01-10_08.11.52_0.th.jpg
08:12:29 : event_preview_dispose(); removing /run/pikrellcam/motion_2016-01-10_08.11.52_0.jpg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.