Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I will have to be moving it also into the new folders my script makes or maybe just delete it in my script.
Should i bother to save the log, seems superfluous except for testing.
The motion program seems to have died trying to open and write to this huge log file.
I tried to load it gedit to see if there was an error, but gedit cant load the file, it just keeps on loading lines. I will delete it as it worthless.
All the stored pictures and avi are only 525mb, but the log was 1.8gb
So I deleted and motion is not working even after restarting motion, log said camera busy, then log said camera open, but who knows. I may need a reboot of the PC.
Code:
[20914560] [NTC] [ALL] [Jul 08 09:50:12] motion_startup: Using log type (ALL) log level (NTC)
[20914560] [NTC] [ALL] [Jul 08 09:50:12] become_daemon: Motion going to daemon mode
[20914560] [NTC] [ALL] [Jul 08 09:50:12] become_daemon: Created process id file /home/scott/testmotion/motion-pid/motion.pid. Process ID is 3587
[20914560] [NTC] [ALL] [Jul 08 09:50:12] motion_startup: Motion running as daemon process
[20914560] [NTC] [ENC] [Jul 08 09:50:12] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3685476 LIBAVFORMAT_BUILD 3680357
[0] [NTC] [ALL] [Jul 08 09:50:12] main: Thread 1 is from /etc/motion/motion.conf
[0] [NTC] [ALL] [Jul 08 09:50:12] main: Thread 1 is device: /dev/video1 input -1
[0] [NTC] [ALL] [Jul 08 09:50:12] main: Stream port 8081
[0] [NTC] [ALL] [Jul 08 09:50:12] main: Waiting for threads to finish, pid: 3587
[1] [NTC] [ALL] [Jul 08 09:50:12] motion_init: Thread 1 started , motion detection Enabled
[1] [NTC] [VID] [Jul 08 09:50:12] vid_v4lx_start: Using videodevice /dev/video1 and input -1
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_get_capability:
------------------------
cap.driver: "gspca_sn9c20x"
cap.card: "USB20 Camera "
cap.bus_info: "usb-0000:00:13.2-1"
cap.capabilities=0x85200001
------------------------
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_get_capability: - READWRITE
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_get_capability: - STREAMING
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_select_input: name = "gspca_sn9c20x", type 0x00000002, status 00000000
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_select_input: - CAMERA
[1] [WRN] [VID] [Jul 08 09:50:12] v4l2_select_input: Device doesn't support VIDIOC_G_STD
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_set_pix_format: Config palette index 17 (YU12) doesn't work.
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_set_pix_format: Supported palettes:
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_set_pix_format: (0) BA81 (8-bit Bayer BGBG/GRGR)
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_set_pix_format: 0 - 8-bit Bayer BGBG/GRGR (compressed : 0) (0x31384142)
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_set_pix_format: (1) S920 (GSPCA SN9C20X I420)
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_set_pix_format: 1 - GSPCA SN9C20X I420 (compressed : 0) (0x30323953)
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_set_pix_format: (2) JPEG (JFIF JPEG)
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_set_pix_format: 2 - JFIF JPEG (compressed : 1) (0x4745504a)
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_set_pix_format Selected palette JPEG
[1] [NTC] [VID] [Jul 08 09:50:12] v4l2_do_set_pix_format: Testing palette JPEG (320x240)
[1] [WRN] [VID] [Jul 08 09:50:12] v4l2_do_set_pix_format: Adjusting resolution from 320x240 to 640x480.
[1] [ERR] [VID] [Jul 08 09:50:12] v4l2_do_set_pix_format: Error setting pixel format.
VIDIOC_S_FMT: : Device or resource busy
[1] [ERR] [VID] [Jul 08 09:50:12] VIDIOC_TRY_FMT failed for format v4l2_set_pix_format: Device or resource busy
[1] [ERR] [VID] [Jul 08 09:50:12] v4l2_set_pix_format: Unable to find a compatible palette format.
[1] [NTC] [VID] [Jul 08 09:50:12] vid_v4lx_start: Using V4L1
[1] [NTC] [ALL] [Jul 08 09:50:12] image_ring_resize: Resizing pre_capture buffer to 1 items
[0] [NTC] [STR] [Jul 08 09:50:12] httpd_run: motion-httpd testing : IPV4 addr: 127.0.0.1 port: 8080
[0] [ERR] [STR] [Jul 08 09:50:12] httpd_run: motion-httpd failed bind() interface 127.0.0.1 / port 8080, retrying: Address already in use
[0] [ERR] [STR] [Jul 08 09:50:12] httpd_run: motion-httpd socket failed interface 127.0.0.1 / port 8080, retrying: Address already in use
[0] [CRT] [STR] [Jul 08 09:50:12] httpd_run: motion-httpd ERROR bind() [interface 127.0.0.1 port 8080]: Address already in use
[0] [NTC] [STR] [Jul 08 09:50:12] motion_web_control: motion-httpd thread exit
[1] [ERR] [ALL] [Jul 08 09:50:22] motion_init: Error capturing first image
[1] [NTC] [STR] [Jul 08 09:50:22] http_bindsock: motion-stream testing : IPV4 addr: 127.0.0.1 port: 8081
[1] [NTC] [STR] [Jul 08 09:50:22] http_bindsock: motion-stream Bound : IPV4 addr: 127.0.0.1 port: 8081
[1] [NTC] [ALL] [Jul 08 09:50:22] motion_init: Started motion-stream server in port 8081 auth Disabled
[1] [ERR] [ALL] [Jul 08 09:50:22] motion_loop: Video device fatal error - Closing video device
[1] [NTC] [VID] [Jul 08 09:50:22] vid_close: Closing video device /dev/video1
[1] [WRN] [ALL] [Jul 08 09:50:30] motion_loop: Retrying until successful connection with camera
[1] [NTC] [VID] [Jul 08 09:50:30] vid_v4lx_start: Using videodevice /dev/video1 and input -1
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_get_capability:
------------------------
cap.driver: "gspca_sn9c20x"
cap.card: "USB20 Camera "
cap.bus_info: "usb-0000:00:13.2-1"
cap.capabilities=0x85200001
------------------------
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_get_capability: - READWRITE
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_get_capability: - STREAMING
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_select_input: name = "gspca_sn9c20x", type 0x00000002, status 00000000
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_select_input: - CAMERA
[1] [WRN] [VID] [Jul 08 09:50:30] v4l2_select_input: Device doesn't support VIDIOC_G_STD
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_set_pix_format: Config palette index 17 (YU12) doesn't work.
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_set_pix_format: Supported palettes:
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_set_pix_format: (0) BA81 (8-bit Bayer BGBG/GRGR)
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_set_pix_format: 0 - 8-bit Bayer BGBG/GRGR (compressed : 0) (0x31384142)
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_set_pix_format: (1) S920 (GSPCA SN9C20X I420)
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_set_pix_format: 1 - GSPCA SN9C20X I420 (compressed : 0) (0x30323953)
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_set_pix_format: (2) JPEG (JFIF JPEG)
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_set_pix_format: 2 - JFIF JPEG (compressed : 1) (0x4745504a)
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_set_pix_format Selected palette JPEG
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_do_set_pix_format: Testing palette JPEG (320x240)
[1] [WRN] [VID] [Jul 08 09:50:30] v4l2_do_set_pix_format: Adjusting resolution from 320x240 to 640x480.
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_do_set_pix_format: Using palette JPEG (640x480) bytesperlines 640 sizeimage 154190 colorspace 00000007
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: found control 0x00980900, "Brightness", range 0,255
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: "Brightness", default 127, current 127
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: found control 0x00980901, "Contrast", range 0,255
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: "Contrast", default 127, current 127
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: found control 0x00980902, "Saturation", range 0,255
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: "Saturation", default 127, current 127
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: found control 0x00980903, "Hue", range -180,180
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: "Hue", default 0, current 0
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: found control 0x0098090e, "Red Balance", range 0,127
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: "Red Balance", default 40, current 40
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: found control 0x0098090f, "Blue Balance", range 0,127
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: "Blue Balance", default 40, current 40
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: found control 0x00980910, "Gamma", range 0,255
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: "Gamma", default 16, current 16
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: found control 0x00980911, "Exposure", range 0,6016
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: "Exposure", default 51, current 153
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: found control 0x00980912, "Gain, Automatic", range 0,1
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: "Gain, Automatic", default 1, current 1
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: found control 0x00980913, "Gain", range 0,28
[1] [NTC] [VID] [Jul 08 09:50:30] v4l2_scan_controls: "Gain", default 0, current 0
[1] [NTC] [VID] [Jul 08 09:50:30] vid_v4lx_start: Using V4L2
[1] [NTC] [ALL] [Jul 08 09:50:30] motion_loop: Camera has finally become available
Camera image has different width and heightfrom what is in the config file. You should fix that
Restarting Motion thread to reinitialize all image buffers to new picture dimensions
[1] [NTC] [ALL] [Jul 08 09:50:30] motion_loop: Thread exiting
[1] [NTC] [STR] [Jul 08 09:50:30] stream_stop: Closing motion-stream listen socket & active motion-stream sockets
[1] [NTC] [STR] [Jul 08 09:50:30] stream_stop: Closed motion-stream listen socket & active motion-stream sockets
[1] [NTC] [VID] [Jul 08 09:50:30] vid_close: Closing video device /dev/video1
[0] [NTC] [ALL] [Jul 08 09:50:31] main: Motion thread 1 restart
[1] [NTC] [ALL] [Jul 08 09:50:31] motion_init: Thread 1 started , motion detection Enabled
[1] [NTC] [VID] [Jul 08 09:50:31] vid_v4lx_start: Using videodevice /dev/video1 and input -1
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_get_capability:
------------------------
cap.driver: "gspca_sn9c20x"
cap.card: "USB20 Camera "
cap.bus_info: "usb-0000:00:13.2-1"
cap.capabilities=0x85200001
------------------------
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_get_capability: - READWRITE
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_get_capability: - STREAMING
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_select_input: name = "gspca_sn9c20x", type 0x00000002, status 00000000
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_select_input: - CAMERA
[1] [WRN] [VID] [Jul 08 09:50:31] v4l2_select_input: Device doesn't support VIDIOC_G_STD
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_set_pix_format: Config palette index 17 (YU12) doesn't work.
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_set_pix_format: Supported palettes:
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_set_pix_format: (0) BA81 (8-bit Bayer BGBG/GRGR)
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_set_pix_format: 0 - 8-bit Bayer BGBG/GRGR (compressed : 0) (0x31384142)
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_set_pix_format: (1) S920 (GSPCA SN9C20X I420)
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_set_pix_format: 1 - GSPCA SN9C20X I420 (compressed : 0) (0x30323953)
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_set_pix_format: (2) JPEG (JFIF JPEG)
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_set_pix_format: 2 - JFIF JPEG (compressed : 1) (0x4745504a)
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_set_pix_format Selected palette JPEG
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_do_set_pix_format: Testing palette JPEG (640x480)
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_do_set_pix_format: Using palette JPEG (640x480) bytesperlines 640 sizeimage 154190 colorspace 00000007
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: found control 0x00980900, "Brightness", range 0,255
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: "Brightness", default 127, current 127
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: found control 0x00980901, "Contrast", range 0,255
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: "Contrast", default 127, current 127
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: found control 0x00980902, "Saturation", range 0,255
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: "Saturation", default 127, current 127
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: found control 0x00980903, "Hue", range -180,180
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: "Hue", default 0, current 0
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: found control 0x0098090e, "Red Balance", range 0,127
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: "Red Balance", default 40, current 40
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: found control 0x0098090f, "Blue Balance", range 0,127
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: "Blue Balance", default 40, current 40
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: found control 0x00980910, "Gamma", range 0,255
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: "Gamma", default 16, current 16
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: found control 0x00980911, "Exposure", range 0,6016
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: "Exposure", default 51, current 153
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: found control 0x00980912, "Gain, Automatic", range 0,1
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: "Gain, Automatic", default 1, current 1
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: found control 0x00980913, "Gain", range 0,28
[1] [NTC] [VID] [Jul 08 09:50:31] v4l2_scan_controls: "Gain", default 0, current 0
[1] [NTC] [VID] [Jul 08 09:50:31] vid_v4lx_start: Using V4L2
[1] [NTC] [ALL] [Jul 08 09:50:31] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] [NTC] [STR] [Jul 08 09:50:31] http_bindsock: motion-stream testing : IPV4 addr: 127.0.0.1 port: 8081
[1] [NTC] [STR] [Jul 08 09:50:31] http_bindsock: motion-stream Bound : IPV4 addr: 127.0.0.1 port: 8081
[1] [NTC] [ALL] [Jul 08 09:50:31] motion_init: Started motion-stream server in port 8081 auth Disabled
Last edited by sdowney717; 07-08-2017 at 08:54 AM.
I will have to be moving it also into the new folders my script makes or maybe just delete it in my script.
Should i bother to save the log, seems superfluous except for testing.
The motion program seems to have died trying to open and write to this huge log file.
I tried to load it gedit to see if there was an error, but gedit cant load the file. I will delete it.
Whether you keep the log or not is up to you. If there aren't any events of note in it, I'd not keep it around, and probably disable it if I could. Also, you could look into the logrotate utility, if you want to keep it going, but have smaller sizes.
I deleted the log, but nothing would make motion start recording again until I rebooted the PC.
Why is that?
Why would the log get so humongous? It would be nice for it to just record relevant stuff, some thinking needed here about what to do.
My idea is let the log record itself, but delete the log when my script runs.
I have a crontab right now set at every hour to move the motion-files (jpg and avi) but was doing nothing with log.
Eventually will switch to run script at midnight daily.
So I added in script to delete the log every time the script runs.
Code:
scott@scott-P5QC:~/Desktop$ ./mmm.sh
foo
rm: cannot remove '/home/scott/testmotion/motion.log': No such file or directory
[36000128] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
[36000128] [NTC] [ALL] motion_startup: Motion 3.2.12+git20140228 Started with SDL support
[36000128] [NTC] [ALL] motion_startup: Logging to file (/home/scott/testmotion/motion.log)
foofoo
scott@scott-P5QC:~/Desktop$
And motion is recording 2 files in each second, seen some 3 in each second, so maybe every half second. That seems excessive?
Maybe once every second as it would cut down by half the space used? I know they do that so the avi flow better.
Code:
1] [CRT] [VID] [Jul 08 10:05:36] mjpegtoyuv420p: Corrupt image ... continue
[1] [NTC] [EVT] [Jul 08 10:05:44] event_new_video FPS 2
[1] [NTC] [EVT] [Jul 08 10:05:46] event_newfile: File of type 8 saved to: /home/scott/testmotion/motion-files/01-20170708100544.avi
[1] [NTC] [ALL] [Jul 08 10:05:46] motion_detected: Motion detected - starting event 1
[1] [NTC] [EVT] [Jul 08 10:05:46] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100544-01.jpg
[1] [NTC] [EVT] [Jul 08 10:05:47] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100547-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:47] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100547-01.jpg
[1] [NTC] [EVT] [Jul 08 10:05:48] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100548-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:48] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100548-01.jpg
[1] [NTC] [EVT] [Jul 08 10:05:49] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100549-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:50] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100550-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:51] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100550-01.jpg
[1] [NTC] [EVT] [Jul 08 10:05:51] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100551-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:52] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100552-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:52] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100552-01.jpg
[1] [NTC] [EVT] [Jul 08 10:05:53] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100553-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:53] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100553-01.jpg
[1] [NTC] [EVT] [Jul 08 10:05:54] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100554-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:55] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100554-01.jpg
[1] [NTC] [EVT] [Jul 08 10:05:55] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100555-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:55] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100555-01.jpg
[1] [NTC] [EVT] [Jul 08 10:05:56] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100556-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:56] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100556-01.jpg
[1] [NTC] [EVT] [Jul 08 10:05:57] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100557-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:57] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100557-01.jpg
[1] [NTC] [EVT] [Jul 08 10:05:58] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100558-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:58] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100558-01.jpg
[1] [NTC] [EVT] [Jul 08 10:05:59] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100559-00.jpg
[1] [NTC] [EVT] [Jul 08 10:05:59] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100559-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:00] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100600-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:01] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100601-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:07] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100607-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:08] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100607-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:08] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100608-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:08] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100608-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:09] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100609-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:09] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100609-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:10] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100610-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:10] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100610-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:11] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100611-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:11] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100611-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:12] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100612-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:12] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100612-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:13] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100613-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:13] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100613-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:14] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100614-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:14] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100614-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:15] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100615-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:16] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100615-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:17] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100617-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:18] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100617-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:18] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100618-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:24] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100624-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:24] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100624-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:25] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100625-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:25] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100625-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:26] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100626-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:26] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100626-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:27] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100627-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:27] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100627-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:28] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100628-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:28] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100628-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:29] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100629-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:29] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100629-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:30] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100630-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:30] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100630-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:31] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100631-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:31] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100631-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:32] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100632-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:32] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100632-01.jpg
[1] [NTC] [EVT] [Jul 08 10:06:33] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100633-00.jpg
[1] [NTC] [EVT] [Jul 08 10:06:33] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100633-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:09] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100709-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:10] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100710-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:10] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100710-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:11] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100711-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:11] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100711-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:12] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100712-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:12] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100712-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:13] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100713-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:13] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100713-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:14] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100714-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:14] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100714-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:15] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100715-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:15] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100715-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:16] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100716-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:16] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100716-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:17] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100717-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:17] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100717-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:18] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100718-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:18] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100718-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:19] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100719-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:19] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100719-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:20] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100720-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:20] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100720-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:21] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100721-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:21] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100721-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:22] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100722-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:22] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100722-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:23] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100723-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:23] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100723-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:24] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100724-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:24] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100724-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:25] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100725-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:25] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100725-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:26] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100726-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:27] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100727-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:27] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100727-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:28] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100728-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:28] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100728-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:29] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100729-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:29] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100729-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:30] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100730-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:30] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100730-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:31] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100731-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:32] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100732-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:32] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100732-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:33] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100733-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:33] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100733-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:34] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100734-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:34] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100734-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:36] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100736-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:38] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100738-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:39] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100739-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:39] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100739-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:40] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100740-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:40] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100740-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:41] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100741-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:43] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100743-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:43] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100743-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:44] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100744-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:44] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100744-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:45] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100745-00.jpg
[1] [NTC] [EVT] [Jul 08 10:07:45] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion-files/01-20170708100745-01.jpg
[1] [NTC] [EVT] [Jul 08 10:07:46] event_newfile: File of type 1 saved to: /home/scott/testmotion/motion
Last edited by sdowney717; 07-08-2017 at 09:33 AM.
Default log message level is 6
And be nice to have the config local to my user folder, rather than root.
This is of interest, would cut out a lot of jpg if set to first
I assume the avi's will still be constructed. Lot easier to monitor the viideo rather than click thru a thousand jpg's.
Code:
############################################################
# Image File Output
############################################################
# Output 'normal' pictures when motion is detected (default: on)
# Valid values: on, off, first, best, center
# When set to 'first', only the first picture of an event is saved.
# Picture with most motion of an event is saved when set to 'best'.
# Picture with motion nearest center of picture is saved when set to 'center'.
# Can be used as preview shot for the corresponding movie.
output_pictures on
Last edited by sdowney717; 07-08-2017 at 10:58 AM.
sounds like I can create a motion.conf, put it anywhere in my user /home, then call motion as
motion -c /home/scott/motion/my_motion.conf
??
Code:
If Motion was invoked with command line option -c pathname Motion will expect the config file to be as specified. When you specify the config file on the command line with -c you can call it anything.
If you do not specify -c or the filename you give Motion does not exist, Motion will search for the configuration file called 'motion.conf' in the following order:
Current directory from where motion was invoked
Then in a directory called '.motion' in the current users home directory (shell environment variable $HOME). E.g. /home/goofy/.motion/motion.conf
The directory defined by the --sysconfdir=DIR when running .configure during installation of Motion
(If this option was not defined the default is /usr/local/etc/motion)
If you have write access to /usr/local/etc/motion then the editor recommends having only one motion.conf file in the default /usr/local/etc/motion directory.
Yes, like it. I put motion.conf in my testmotion folder, changed output_picture to first.
scott@scott-P5QC:~/Desktop$ ./mmm.sh
foo
[27386240] [NTC] [ALL] conf_load: Processing thread 0 - config file /home/scott/testmotion/motion.conf
[27386240] [NTC] [ALL] motion_startup: Motion 3.2.12+git20140228 Started with SDL support
[27386240] [NTC] [ALL] motion_startup: Logging to file (/home/scott/testmotion/motion.log)
foofoo
There is a 60 second gap set, so if not motion detected, it should shut down the camera avi recording, and with new motion, start another recording, I think so.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.