This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:raspberry:picam:motion [2018/12/20 17:44] – Discussion status changed lunetikk | linux:raspberry:picam:motion [2022/06/13 17:35] – [Configuration] 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 / | ||
+ | |||
+ | < | ||
+ | |||
+ | ==== 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> | ||
# / | # / |