Send Motion-user mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."
Today's Topics:
1. Re: unable to start motion after it worked for many weeks
(Dougie Nisbet)
----------------------------------------------------------------------
Message: 1
Date: Wed, 30 May 2018 09:41:58 +0100
From: Dougie Nisbet <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] unable to start motion after it worked for
many weeks
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Funnily enough I've just had this issue recently. On a new raspberry pi
that worked initially, then started giving 'failed to open camera' type
messages. I changed /dev/video0 to /dev/video1 in the motion.conf file
as it was such a quick thing to try. I've no idea why the device has
changed since I use the same config on all machines but as it was a
quick and easy test/change I'm not worrying about it.
On 30/05/18 06:00, MrDave wrote:
>
> Motion works off of device names and those are assigned from the
> kernel and can change whenever the computer is rebooted.? In the mail
> archives from years ago I seem to recall someone indicating how to set
> up udev rules so that a particular camera is always assigned to a
> specific device number (e.g. /dev/video0 would always be the laptop
> cam and? /dev/video1 would be an external web cam etc)? Without those
> rules which are set up outside of motion, the camera that is assigned
> to a particular device can and will change if there is more than one.?
> One option of course is to just set up an additional thread (as it was
> called in that old version) for each camera and just monitor both cameras.
>
> MrDave
>
> On 5/29/2018 6:51 PM, jack bean wrote:
>
>> no. i still have the same version of motion installed as before, i
>> just reinstalled it using the same install version i had already to
>> make sure, all this input still does not answer my question. how do i
>> make sure i am using the external camera instead of the built in
>> camera? does the log file indicate anything wrong and if so what
>> should i be looking at in the config file to correct this? this is a
>> serious issue. i have got to have a camera working while i am gone
>> due to some security issues in my home. i am trying to catch someone
>> attempting to break in. it was working fine before and now all of the
>> sudden it wont. i don't want to catch them walking past the laptop,
>> if they even do, it would be too late then and they might not even go
>> in front of it, i want to catch them trying to jimmy the door because
>> they have already done that unsuccessfully but they keep trying.
>>
>> On Tue, May 29, 2018 at 3:35 PM, Kinney Baughman
>> <[email protected] <mailto:[email protected]>> wrote:
>>
>> Any chance you went from version 3.1 to 3.2?
>>
>> The conf file changed considerably in that jump. Some changes
>> continued throughout the 3.2 branch.
>>
>> http://lavrsen.dk/foswiki/bin/view/Motion/UpgradingFromOlderVersion
>> <http://lavrsen.dk/foswiki/bin/view/Motion/UpgradingFromOlderVersion>
>>
>> On Sat, May 26, 2018 at 2:48 PM, jack bean
>> <[email protected] <mailto:[email protected]>> wrote:
>>
>> i had my share of hiccups starting it and getting it to
>> record, until i just started using sudo motion and then sudo
>> killall motion to shut it down. it recorded fine. i had
>> dropbox linked to the record folder. the config file is the
>> same as it was when it worked, but now it will not work.
>> motion starts, but will not recors anything, no matter what i
>> do, or how many times i jump up and down in front of the
>> camera. before it quit working it only took a bit of movement
>> to record video and stills. now it wont do anything. i also
>> reinstalled motion in synaptic.
>>
>> here is the log file in case it has something i dont
>> recognize as the issue.
>>
>>
>> [8831360] [NTC] [ALL] [May 26 13:01:59] motion_startup: Using
>> log type (ALL) log level (NTC)
>> [8831360] [NTC] [ALL] [May 26 13:01:59] become_daemon: Motion
>> going to daemon mode
>> [8831360] [NTC] [ALL] [May 26 13:01:59] become_daemon:
>> Created process id file /var/run/motion/motion.pid. Process
>> ID is 31776
>> [8831360] [NTC] [ALL] [May 26 13:01:59] motion_startup:
>> Motion running as daemon process
>> [8831360] [NTC] [ENC] [May 26 13:01:59] ffmpeg_init: ffmpeg
>> LIBAVCODEC_BUILD 3685476 LIBAVFORMAT_BUILD 3680357
>> [0] [NTC] [ALL] [May 26 13:01:59] main: Thread 1 is from
>> /home/stealth/.motion/motion.conf
>> [0] [NTC] [ALL] [May 26 13:01:59] main: Thread 1 is device:
>> /dev/video1 input -1
>> [0] [NTC] [ALL] [May 26 13:01:59] main: Stream port 8081
>> [0] [NTC] [ALL] [May 26 13:01:59] main: Waiting for threads
>> to finish, pid: 31776
>> [0] [NTC] [STR] [May 26 13:01:59] httpd_run: motion-httpd
>> testing : IPV4 addr: 127.0.0.1 port: 8080
>> [0] [NTC] [STR] [May 26 13:01:59] httpd_run: motion-httpd
>> Bound : IPV4 addr: 127.0.0.1 port: 8080
>> [0] [NTC] [STR] [May 26 13:01:59] httpd_run:
>> motion-httpd/3.2.12+git20140228 running, accepting connections
>> [0] [NTC] [STR] [May 26 13:01:59] httpd_run: motion-httpd:
>> waiting for data on 127.0.0.1 port TCP 8080
>> [1] [NTC] [ALL] [May 26 13:01:59] motion_init: Thread 1
>> started , motion detection Enabled
>> [1] [NTC] [VID] [May 26 13:01:59] vid_v4lx_start: Using
>> videodevice /dev/video1 and input -1
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_get_capability:
>> ------------------------
>> cap.driver: "uvcvideo"
>> cap.card: "HP Webcam: HP Webcam"
>> cap.bus_info: "usb-0000:00:1d.7-5"
>> cap.capabilities=0x84200001
>> ------------------------
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_get_capability: -
>> VIDEO_CAPTURE
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_get_capability: -
>> STREAMING
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_select_input: name =
>> "Camera 1", type 0x00000002, status 00000000
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_select_input: - CAMERA
>> [1] [WRN] [VID] [May 26 13:01:59] v4l2_select_input: Device
>> doesn't support VIDIOC_G_STD
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_set_pix_format: Config
>> palette index 17 (YU12) doesn't work.
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_set_pix_format:
>> Supported palettes:
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_set_pix_format: (0)
>> YUYV (YUYV 4:2:2)
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_set_pix_format: 0 -
>> YUYV 4:2:2 (compressed : 0) (0x56595559)
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_set_pix_format
>> Selected palette YUYV
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_do_set_pix_format:
>> Testing palette YUYV (320x240)
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_do_set_pix_format:
>> Using palette YUYV (320x240) bytesperlines 640 sizeimage
>> 153600 colorspace 00000008
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_scan_controls: found
>> control 0x00980900, "Brightness", range -64,64
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_scan_controls: ???
>> "Brightness", default 5, current 5
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_scan_controls: found
>> control 0x00980901, "Contrast", range 0,95
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_scan_controls: ???
>> "Contrast", default 30, current 30
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_scan_controls: found
>> control 0x00980902, "Saturation", range 0,128
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_scan_controls: ???
>> "Saturation", default 80, current 80
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_scan_controls: found
>> control 0x00980903, "Hue", range -40,40
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_scan_controls: ???
>> "Hue", default 0, current 0
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_scan_controls: found
>> control 0x00980910, "Gamma", range 72,500
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_scan_controls: ???
>> "Gamma", default 120, current 120
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_scan_controls: found
>> control 0x00980913, "Gain", range 0,100
>> [1] [NTC] [VID] [May 26 13:01:59] v4l2_scan_controls: ???
>> "Gain", default 0, current 0
>> [1] [NTC] [VID] [May 26 13:01:59] vid_v4lx_start: Using V4L2
>> [1] [NTC] [ALL] [May 26 13:01:59] image_ring_resize: Resizing
>> pre_capture buffer to 1 items
>> [1] [NTC] [STR] [May 26 13:02:00] http_bindsock:
>> motion-stream testing : IPV4 addr: 127.0.0.1 port: 8081
>> [1] [NTC] [STR] [May 26 13:02:00] http_bindsock:
>> motion-stream Bound : IPV4 addr: 127.0.0.1 port: 8081
>> [1] [NTC] [ALL] [May 26 13:02:00] motion_init: Started
>> motion-stream server in port 8081 auth Disabled
>> [1] [NTC] [ALL] [May 26 13:05:05] motion_loop: End of event 1
>> [1] [NTC] [ALL] [May 26 13:05:05] motion_loop: Thread exiting
>> [1] [NTC] [STR] [May 26 13:05:05] stream_stop: Closing
>> motion-stream listen socket & active motion-stream sockets
>> [1] [NTC] [STR] [May 26 13:05:05] stream_stop: Closed
>> motion-stream listen socket & active motion-stream sockets
>> [1] [NTC] [VID] [May 26 13:05:05] vid_close: Closing video
>> device /dev/video1
>> [0] [NTC] [ALL] [May 26 13:05:05] main: Threads finished
>> [0] [NTC] [STR] [May 26 13:05:05] httpd_run: motion-httpd -
>> Finishing
>> [0] [NTC] [STR] [May 26 13:05:05] httpd_run: motion-httpd Closing
>> [0] [NTC] [STR] [May 26 13:05:05] motion_web_control:
>> motion-httpd thread exit
>> [0] [NTC] [ALL] [May 26 13:05:06] main: Motion terminating
>> [0] [NTC] [ALL] [May 26 13:05:06] motion_remove_pid: Removed
>> process id file (pid file).
>> [0] [NTC] [ALL] [May 26 13:05:06] motion_remove_pid: Closing
>> logfile (/var/log/motion/motion.log).
>> [10338688] [NTC] [ALL] [May 26 13:18:48] motion_startup:
>> Using log type (ALL) log level (NTC)
>> [10338688] [NTC] [ALL] [May 26 13:18:48] become_daemon:
>> Motion going to daemon mode
>> [10338688] [NTC] [ALL] [May 26 13:18:48] become_daemon:
>> Created process id file /var/run/motion/motion.pid. Process
>> ID is 1746
>> [10338688] [NTC] [ALL] [May 26 13:18:48] motion_startup:
>> Motion running as daemon process
>> [10338688] [NTC] [ENC] [May 26 13:18:48] ffmpeg_init: ffmpeg
>> LIBAVCODEC_BUILD 3685476 LIBAVFORMAT_BUILD 3680357
>> [0] [NTC] [ALL] [May 26 13:18:48] main: Thread 1 is from
>> /home/stealth/.motion/motion.conf
>> [0] [NTC] [ALL] [May 26 13:18:48] main: Thread 1 is device:
>> /dev/video1 input -1
>> [0] [NTC] [ALL] [May 26 13:18:48] main: Stream port 8081
>> [0] [NTC] [ALL] [May 26 13:18:48] main: Waiting for threads
>> to finish, pid: 1746
>> [0] [NTC] [STR] [May 26 13:18:48] httpd_run: motion-httpd
>> testing : IPV4 addr: 127.0.0.1 port: 8080
>> [0] [NTC] [STR] [May 26 13:18:48] httpd_run: motion-httpd
>> Bound : IPV4 addr: 127.0.0.1 port: 8080
>> [0] [NTC] [STR] [May 26 13:18:48] httpd_run:
>> motion-httpd/3.2.12+git20140228 running, accepting connections
>> [0] [NTC] [STR] [May 26 13:18:48] httpd_run: motion-httpd:
>> waiting for data on 127.0.0.1 port TCP 8080
>> [1] [NTC] [ALL] [May 26 13:18:48] motion_init: Thread 1
>> started , motion detection Enabled
>> [1] [NTC] [VID] [May 26 13:18:48] vid_v4lx_start: Using
>> videodevice /dev/video1 and input -1
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_get_capability:
>> ------------------------
>> cap.driver: "uvcvideo"
>> cap.card: "HP Webcam: HP Webcam"
>> cap.bus_info: "usb-0000:00:1d.7-5"
>> cap.capabilities=0x84200001
>> ------------------------
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_get_capability: -
>> VIDEO_CAPTURE
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_get_capability: -
>> STREAMING
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_select_input: name =
>> "Camera 1", type 0x00000002, status 00000000
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_select_input: - CAMERA
>> [1] [WRN] [VID] [May 26 13:18:48] v4l2_select_input: Device
>> doesn't support VIDIOC_G_STD
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_set_pix_format: Config
>> palette index 17 (YU12) doesn't work.
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_set_pix_format:
>> Supported palettes:
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_set_pix_format: (0)
>> YUYV (YUYV 4:2:2)
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_set_pix_format: 0 -
>> YUYV 4:2:2 (compressed : 0) (0x56595559)
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_set_pix_format
>> Selected palette YUYV
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_do_set_pix_format:
>> Testing palette YUYV (320x240)
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_do_set_pix_format:
>> Using palette YUYV (320x240) bytesperlines 640 sizeimage
>> 153600 colorspace 00000008
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_scan_controls: found
>> control 0x00980900, "Brightness", range -64,64
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_scan_controls: ???
>> "Brightness", default 5, current 5
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_scan_controls: found
>> control 0x00980901, "Contrast", range 0,95
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_scan_controls: ???
>> "Contrast", default 30, current 30
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_scan_controls: found
>> control 0x00980902, "Saturation", range 0,128
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_scan_controls: ???
>> "Saturation", default 80, current 80
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_scan_controls: found
>> control 0x00980903, "Hue", range -40,40
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_scan_controls: ???
>> "Hue", default 0, current 0
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_scan_controls: found
>> control 0x00980910, "Gamma", range 72,500
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_scan_controls: ???
>> "Gamma", default 120, current 120
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_scan_controls: found
>> control 0x00980913, "Gain", range 0,100
>> [1] [NTC] [VID] [May 26 13:18:48] v4l2_scan_controls: ???
>> "Gain", default 0, current 0
>> [1] [NTC] [VID] [May 26 13:18:48] vid_v4lx_start: Using V4L2
>> [1] [NTC] [ALL] [May 26 13:18:48] image_ring_resize: Resizing
>> pre_capture buffer to 1 items
>> [1] [NTC] [STR] [May 26 13:18:49] http_bindsock:
>> motion-stream testing : IPV4 addr: 127.0.0.1 port: 8081
>> [1] [NTC] [STR] [May 26 13:18:49] http_bindsock:
>> motion-stream Bound : IPV4 addr: 127.0.0.1 port: 8081
>> [1] [NTC] [ALL] [May 26 13:18:49] motion_init: Started
>> motion-stream server in port 8081 auth Disabled
>> [1] [NTC] [ALL] [May 26 13:21:07] motion_loop: End of event 1
>> [1] [NTC] [ALL] [May 26 13:21:07] motion_loop: Thread exiting
>> [1] [NTC] [STR] [May 26 13:21:07] stream_stop: Closing
>> motion-stream listen socket & active motion-stream sockets
>> [1] [NTC] [STR] [May 26 13:21:07] stream_stop: Closed
>> motion-stream listen socket & active motion-stream sockets
>> [1] [NTC] [VID] [May 26 13:21:07] vid_close: Closing video
>> device /dev/video1
>> [0] [NTC] [ALL] [May 26 13:21:07] main: Threads finished
>> [0] [NTC] [STR] [May 26 13:21:07] httpd_run: motion-httpd -
>> Finishing
>> [0] [NTC] [STR] [May 26 13:21:07] httpd_run: motion-httpd Closing
>> [0] [NTC] [STR] [May 26 13:21:07] motion_web_control:
>> motion-httpd thread exit
>> [0] [NTC] [ALL] [May 26 13:21:08] main: Motion terminating
>> [0] [NTC] [ALL] [May 26 13:21:08] motion_remove_pid: Removed
>> process id file (pid file).
>> [0] [NTC] [ALL] [May 26 13:21:08] motion_remove_pid: Closing
>> logfile (/var/log/motion/motion.log).
>>
>> where it says devices, it indicates it is trying to use the
>> internal webcam instead of the external one, but why did it
>> revert to that when i specifically changed it in the config file?
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> <https://lists.sourceforge.net/lists/listinfo/motion-user>
>> https://motion-project.github.io/
>> <https://motion-project.github.io/>
>>
>> Unsubscribe:
>> https://lists.sourceforge.net/lists/options/motion-user
>> <https://lists.sourceforge.net/lists/options/motion-user>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> <https://lists.sourceforge.net/lists/listinfo/motion-user>
>> https://motion-project.github.io/ <https://motion-project.github.io/>
>>
>> Unsubscribe:
>> https://lists.sourceforge.net/lists/options/motion-user
>> <https://lists.sourceforge.net/lists/options/motion-user>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org!http://sdm.link/slashdot
>>
>>
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> https://motion-project.github.io/
>>
>> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 143, Issue 35
********************************************