This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:raspberry:picam:motion [2017/03/01 12:50] – external edit 127.0.0.1 | linux:raspberry:picam:motion [2022/06/13 18:57] (current) – lunetikk | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ==== Installation ==== | ==== Installation ==== | ||
| - | [[http:// | + | < |
| ==== Configuration ==== | ==== Configuration ==== | ||
| + | |||
| + | === motion.conf === | ||
| + | |||
| + | see my configfile below... | ||
| === Maskfile === | === Maskfile === | ||
| + | |||
| + | The maskfile is used to ignore certain areas with moving objects (like trees, pedestrians, | ||
| + | |||
| + | Take a captured picture, paint all the correct areas white, the ones you want to ignore black. //You can also use different gray tones for different sensitivity (never tried).// | ||
| + | |||
| + | Copy the picture to your Raspberry and convert it to the correct format. | ||
| + | |||
| + | < | ||
| + | djpeg -grayscale -pnm < | ||
| + | </ | ||
| + | |||
| + | If djpeg is missing, install the following package (libjpeg-progs - Programs for manipulating JPEG files) | ||
| + | < | ||
| + | apt-get install libjpeg-progs | ||
| + | </ | ||
| + | |||
| + | Place your maskfile next to your " | ||
| [[http:// | [[http:// | ||
| - | === My configuration | + | |
| + | ==== Troubleshooting ==== | ||
| + | |||
| + | === libavformat error === | ||
| + | |||
| + | " | ||
| + | |||
| + | You might have to install some dependencies | ||
| + | |||
| + | < | ||
| + | |||
| + | If some are not found, try to get the right version for your current distribution via | ||
| + | |||
| + | < | ||
| + | |||
| + | === /dev/video0 not found === | ||
| + | |||
| + | " | ||
| + | |||
| + | Activate the module, /dev/video0 should be there afterwards | ||
| + | |||
| + | < | ||
| + | |||
| + | and add the module to / | ||
| + | |||
| + | < | ||
| + | |||
| + | === libavformat error === | ||
| + | |||
| + | < | ||
| + | [1:ml1] [NTC] [ALL] [Jun 13 18:42:16] mlp_actions: | ||
| + | [1:ml1] [NTC] [ALL] [Jun 13 18:42:16] motion_loop: | ||
| + | [1:ml1] [NTC] [VID] [Jun 13 18:42:16] vid_close: Cleaning up V4L2 device | ||
| + | [1:ml1] [NTC] [VID] [Jun 13 18:42:16] v4l2_cleanup: | ||
| + | [0:motion] [NTC] [ALL] [Jun 13 18:42:17] main: Threads finished | ||
| + | [0:motion] [NTC] [ALL] [Jun 13 18:42:17] main: Motion terminating | ||
| + | </ | ||
| + | |||
| + | Motion just stops. If you activated " | ||
| + | |||
| + | Edit / | ||
| + | |||
| + | < | ||
| + | ExecStart=/ | ||
| + | to | ||
| + | ExecStart=/ | ||
| + | </ | ||
| + | |||
| + | then | ||
| + | < | ||
| + | systemctl daemon-reload | ||
| + | systemctl restart motion.service | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | |||
| + | ==== My configurationfile ==== | ||
| + | |||
| + | This is the dozencrows config with my values, some things have changed in the current " | ||
| <code sh motion.conf> | <code sh motion.conf> | ||
| # / | # / | ||
| Line 749: | Line 830: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | ~~DISCUSSION~~ | + | ~~DISCUSSION:closed~~ |