Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/motion-user or, via email, send a message with subject or body 'help' to motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. How to record a video (Mick Sulley) ---------------------------------------------------------------------- Message: 1 Date: Wed, 3 Jul 2024 22:38:10 +0100 From: Mick Sulley <m...@sulley.info> To: Motion Users <motion-user@lists.sourceforge.net> Subject: [Motion-user] How to record a video Message-ID: <20ad5a78-f76a-49f0-905f-815d4e620...@sulley.info> Content-Type: text/plain; charset="utf-8"; Format="flowed" I have installed MotionPlus on a Pi5 with bookworm with a single Pi v3 camera.? It is working, in that I can see the picture on a webpage on my desktop.? How do I set it to record on motion detection?? I read that it needs a database, so I added commands to create a sqlite3 database, but it didn't create it following a reboot. The log file showed that it couldn't create the database, don't know why, so I then manually created the database and rebooted again.? The log now says that it cannot open the database. Questions Do I need a database in order to capture videos? Why does motionplus fail to open my database?? I can open it from command line. How? do I set motionplus to record on motion detection? I have attached my config and log files. Sorry if these are very basic questions but I cannot find the answers in the docs Mick -------------- next part -------------- ; This config file was generated by motionplus 0.2.0 ; Documentation: /usr/share/doc/motionplus/motionplus_guide.html ; ; This file contains only the basic configuration options to get a ; system working. There are many more options available. Please ; consult the documentation for the complete list of all options. ; ;************************************************* ;***** System ;************************************************* daemon off setup_mode on log_file /var/log/motionplus/motionplus.log log_level 9 log_type ALL pause true ;************************************************* ;***** Database ;************************************************* database_type sqlite3 database_dbname /home/pi/.motionplus/plus.db database_host localhost ;************************************************* ;***** Camera ;************************************************* ;device_name ;device_id target_dir /var/lib/motionplus ;************************************************* ;***** Source ;************************************************* ;v4l2_device /dev/video0 ;netcam_url ;************************************************* ;***** Image ;************************************************* ;width 640 ;height 480 ;framerate 15 ;************************************************* ;***** Overlays ;************************************************* text_right %Y-%m-%d\n%T ;************************************************* ;***** Method ;************************************************* emulate_motion off ;threshold 1500 threshold 1000000 ;************************************************* ;***** Masks ;************************************************* noise_level 32 despeckle_filter EedDl ;************************************************* ;***** Detection ;************************************************* ;minimum_motion_frames 1 minimum_motion_frames 1000 event_gap 60 pre_capture 3 post_capture 10 ;************************************************* ;***** Scripts ;************************************************* on_event_start on_event_end ;************************************************* ;***** Picture ;************************************************* picture_output off picture_filename %v-%Y%m%d%H%M%S-%q ;************************************************* ;***** Movie ;************************************************* movie_output on movie_max_time 120 movie_quality 45 movie_container mkv movie_filename %v-%Y%m%d%H%M%S ;************************************************* ;***** Web Control ;************************************************* webcontrol_port 8080 webcontrol_localhost off webcontrol_parms 2 ;************************************************* ;***** Web Stream ;************************************************* stream_preview_scale 100 stream_preview_method mjpg stream_maxrate 15 ;************************************************* ; Device config files - One for each device. ;************************************************* camera /etc/motionplus/camera1.conf ; camera /usr/etc/motionplus/camera2.conf ; camera /usr/etc/motionplus/camera3.conf ; sound /usr/etc/motionplus/sound1.conf ;************************************************* ; Directory to read '.conf' files for devices. ;************************************************* ; config_dir /usr/etc/motionplus/conf.d -------------- next part -------------- ; /usr/etc/motionplus/camera1.conf ; ; This config file was generated by motionplus 0.2.0 ;************************************************* ; Configuration options specific to camera 1 ;************************************************* ;************************************************* ;***** Camera ;************************************************* device_name MyCamera device_id 101 ;************************************************* ;***** Source ;************************************************* libcam_device camera0 ;************************************************* ;***** Image ;************************************************* width 1456 height 1088 framerate 15 ;************************************************* ;***** Overlays ;************************************************* ;text_left MyCamera ;************************************************* ;***** Movie ;************************************************* movie_filename MyCamera_%t-%v-%Y%m%d%H%M%S -------------- next part -------------- A non-text attachment was scrubbed... Name: motionplus.log Type: text/x-log Size: 134605 bytes Desc: not available ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 215, Issue 1 *******************************************