This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:raspberry:picam:motion [2019/01/21 10:45] – [Troubleshooting] lunetikk | linux:raspberry:picam:motion [2022/06/13 18:57] (current) – lunetikk | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ==== 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:// | ||
| Line 36: | Line 57: | ||
| < | < | ||
| + | |||
| + | === 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 ==== | ==== My configurationfile ==== | ||