Site Tools


linux:raspberry:picam:motion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:raspberry:picam:motion [2020/01/15 14:39] lunetikklinux:raspberry:picam:motion [2022/06/13 18:57] (current) lunetikk
Line 28: Line 28:
 </code> </code>
  
-Place your maskfile next to your motion.conf and set the maskfile in your config.+Place your maskfile next to your "motion.conf" (in /etc/motion) and set the maskfile in your config (syntax: mask_file <FILE>).
  
-[[http://www.lavrsen.dk/foswiki/bin/view/Motion/ConfigOptionMaskFile|How to create a Maskfile (currently offline)]]+[[http://www.lavrsen.dk/foswiki/bin/view/Motion/ConfigOptionMaskFile|How to create a Maskfile]]
  
 ==== Troubleshooting ==== ==== Troubleshooting ====
Line 57: Line 57:
  
 <code>bcm2835-v4l2</code> <code>bcm2835-v4l2</code>
 +
 +=== libavformat error ===
 +
 +<code>
 +[1:ml1] [NTC] [ALL] [Jun 13 18:42:16] mlp_actions: End of event 1
 +[1:ml1] [NTC] [ALL] [Jun 13 18:42:16] motion_loop: Thread exiting
 +[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: Closing video device /dev/video0
 +[0:motion] [NTC] [ALL] [Jun 13 18:42:17] main: Threads finished
 +[0:motion] [NTC] [ALL] [Jun 13 18:42:17] main: Motion terminating
 +</code>
 +
 +Motion just stops. If you activated "daemon mode" via config you might need to edit your servicefile.
 +
 +Edit /lib/systemd/system/motion.service
 +
 +<code>
 +ExecStart=/usr/bin/motion
 +to
 +ExecStart=/usr/bin/motion -n
 +</code>
 +
 +then
 +<code>
 +systemctl daemon-reload
 +systemctl restart motion.service
 +</code>
 +
 +[[https://github.com/Motion-Project/motion/pull/303/commits/34faa49adf33a1e12da74644800455139886a241|Github commit]]
 +
  
 ==== My configurationfile ==== ==== My configurationfile ====
linux/raspberry/picam/motion.1579095587.txt.gz · Last modified: 2020/01/15 14:39 by lunetikk