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: Fwd: Re: Network Camera only Camera (MrDave)
2. Fwd: Re: Fwd: Re: Network Camera only Camera (John Rose)
----------------------------------------------------------------------
Message: 1
Date: Fri, 9 Nov 2018 19:11:53 -0700
From: MrDave <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] Fwd: Re: Network Camera only Camera
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
When running using the normal Motion service method included in
packages, Motion will run as user 'motion' rather than root. If you
change the permissions on the file to allow writing from user 'motion'
the permission problem should get resolved.?? You can also of course
change the log file specification within the configuration file.
Note that you may also need to add additional permissions to the user
'motion' depending upon what you want it to do.
Dave
On 11/9/2018 1:18 PM, John Rose wrote:
>
> Mike,
>
> Thanks for your reply. The log file /var/log/motion/motion.log is
> owned by root as are its 'above' directories. I've never run motion
> (in Terminal) as anything other than root.
>
> -------- Forwarded Message --------
> Subject: Re: [Motion-user] Network Camera only Camera
> Date: Fri, 9 Nov 2018 13:10:07 -0500
> From: Mike Wilson <[email protected]>
> Reply-To: Motion discussion list <[email protected]>
> To: Motion discussion list <[email protected]>
>
>
>
> I would say that nmap?is telling you what ports are open and
> ffprobe?is actually talking to the camera. So the port is open, but it
> isn't speaking a language that ffprobe can understand.
>
> Now, on to the problem. The user running motion is unable to write to
> the log file /var/log/motion/motion.log. You probably need to just
> change ownership of the file to the user that is running motion. My
> guess is that you initially ran motion as root and now it has another
> user.
>
> On Fri, Nov 9, 2018 at 7:32 AM John Rose <[email protected]
> <mailto:[email protected]>> wrote:
>
> I'm baffled by trying to use a Network Camera as only camera in
> motion.
>
> ffprobe -rtsp_transport udp
> rtsp://1404332:[email protected]:554/onvif2
> <http://1404332:[email protected]:554/onvif2> gives no problem
> but
> ffprobe -rtsp_transport tcp
> rtsp://1404332:[email protected]:554/onvif2
> <http://1404332:[email protected]:554/onvif2> gives:
> [rtsp @ 0x5624d86b0080] Nonmatching transport in server reply
> rtsp://1404332:[email protected]:554/onvif2
> <http://1404332:[email protected]:554/onvif2>: Invalid data
> found
> when processing input
>
> However, nmap -p554 192.168.101.51 gives:
> PORT??? STATE SERVICE
> 554/tcp open? rtsp
> MAC Address: 4C:B0:08:8F:8D:7B (Shenzhen Gwelltimes Technology)
> Nmap done: 1 IP address (1 host up) scanned in 0.70 seconds
>
> So ffprobe & nmap contradict each other re tcp & udp usage. Am I
> correct
> instating that?
>
> Using "rtsp_uses_tcp off" line shows (whereas "rtsp_uses_tcp on"
> gives
> the "non matching transport" line as in ffprobe):
> ? motion.service - LSB: Start Motion detection
> ??? Loaded: loaded (/etc/init.d/motion; generated)
> ??? Active: active (exited) since Fri 2018-11-09 12:26:37 GMT;
> 15min left
> ????? Docs: man:systemd-sysv-generator(8)
> ?? Process: 900 ExecStart=/etc/init.d/motion start (code=exited,
> status=0/SUCCESS)
>
> Nov 09 12:26:36 Laptop systemd[1]: Starting LSB: Start Motion
> detection...
> Nov 09 12:26:37 Laptop motion[900]:? * Starting motion detection
> daemon
> motion
> Nov 09 12:26:37 Laptop motion[900]:??? ...done.
> Nov 09 12:26:37 Laptop systemd[1]: Started LSB: Start Motion
> detection.
> Nov 09 12:26:37 Laptop motion[1023]: [-46028912:motion] [NTC] [ALL]
> conf_load: Processing thread 0 - config file /etc/motion/motion.conf
> Nov 09 12:26:37 Laptop motion[1023]: [-46028912:motion] [NTC] [ALL]
> config_camera: Processing camera config file /etc/motion/camera1.conf
> Nov 09 12:26:37 Laptop motion[1023]: [-46028912:motion] [NTC] [ALL]
> motion_startup: Motion 4.0 Started
> Nov 09 12:26:37 Laptop motion[1023]: [-46028912:motion] [ERR] [ALL]
> myfopen: Error opening file /var/log/motion/motion.log with mode
> a: Permis
> Nov 09 12:26:37 Laptop motion[1023]: [-46028912:motion] [EMG] [ALL]
> motion_startup: Exit motion, cannot create log file
> /var/log/motion/motion
>
> Unfortunately, the penultimate line for the motion service doesn't
> show
> all of the line. Any ideas?
>
> PS
>
>
> --
> John
>
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
>
>
>
>
> _______________________________________________
> 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...
------------------------------
Message: 2
Date: Sat, 10 Nov 2018 08:40:55 +0000
From: John Rose <[email protected]>
To: Motion MailingList <[email protected]>
Subject: [Motion-user] Fwd: Re: Fwd: Re: Network Camera only Camera
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
MrDave,
Thanks for your reply. I hadn't noticed that the Service method results
in motion running as user 'motion'. I'm used to Zoneminder where the
service runs as user 'root'. It seems to me that when running motion as
a service, it would be advisable to have a Ubuntu Login of motion with
the log file & images file etc being in motion's home directory. When I
changed the permissions of the log file and restarted service 'motion',
it couldn't write to the image file due to same problem.
I'll try motion again later (I have to go out now) but running it in the
standard manner with all files in my Ubuntu user home directory.
-------- Forwarded Message --------
Subject: Re: [Motion-user] Fwd: Re: Network Camera only Camera
Date: Fri, 9 Nov 2018 19:11:53 -0700
From: MrDave <[email protected]>
Reply-To: Motion discussion list <[email protected]>
To: [email protected]
When running using the normal Motion service method included in
packages, Motion will run as user 'motion' rather than root. If you
change the permissions on the file to allow writing from user 'motion'
the permission problem should get resolved.?? You can also of course
change the log file specification within the configuration file.
Note that you may also need to add additional permissions to the user
'motion' depending upon what you want it to do.
Dave
On 11/9/2018 1:18 PM, John Rose wrote:
>
> Mike,
>
> Thanks for your reply. The log file /var/log/motion/motion.log is
> owned by root as are its 'above' directories. I've never run motion
> (in Terminal) as anything other than root.
>
> -------- Forwarded Message --------
> Subject: Re: [Motion-user] Network Camera only Camera
> Date: Fri, 9 Nov 2018 13:10:07 -0500
> From: Mike Wilson <[email protected]>
> Reply-To: Motion discussion list <[email protected]>
> To: Motion discussion list <[email protected]>
>
>
>
> I would say that nmap?is telling you what ports are open and
> ffprobe?is actually talking to the camera. So the port is open, but it
> isn't speaking a language that ffprobe can understand.
>
> Now, on to the problem. The user running motion is unable to write to
> the log file /var/log/motion/motion.log. You probably need to just
> change ownership of the file to the user that is running motion. My
> guess is that you initially ran motion as root and now it has another
> user.
>
> On Fri, Nov 9, 2018 at 7:32 AM John Rose <[email protected]
> <mailto:[email protected]>> wrote:
>
> I'm baffled by trying to use a Network Camera as only camera in
> motion.
>
> ffprobe -rtsp_transport udp
> rtsp://1404332:[email protected]:554/onvif2
> <http://1404332:[email protected]:554/onvif2> gives no problem
> but
> ffprobe -rtsp_transport tcp
> rtsp://1404332:[email protected]:554/onvif2
> <http://1404332:[email protected]:554/onvif2> gives:
> [rtsp @ 0x5624d86b0080] Nonmatching transport in server reply
> rtsp://1404332:[email protected]:554/onvif2
> <http://1404332:[email protected]:554/onvif2>: Invalid data
> found
> when processing input
>
> However, nmap -p554 192.168.101.51 gives:
> PORT??? STATE SERVICE
> 554/tcp open? rtsp
> MAC Address: 4C:B0:08:8F:8D:7B (Shenzhen Gwelltimes Technology)
> Nmap done: 1 IP address (1 host up) scanned in 0.70 seconds
>
> So ffprobe & nmap contradict each other re tcp & udp usage. Am I
> correct
> instating that?
>
> Using "rtsp_uses_tcp off" line shows (whereas "rtsp_uses_tcp on"
> gives
> the "non matching transport" line as in ffprobe):
> ? motion.service - LSB: Start Motion detection
> ??? Loaded: loaded (/etc/init.d/motion; generated)
> ??? Active: active (exited) since Fri 2018-11-09 12:26:37 GMT;
> 15min left
> ????? Docs: man:systemd-sysv-generator(8)
> ?? Process: 900 ExecStart=/etc/init.d/motion start (code=exited,
> status=0/SUCCESS)
>
> Nov 09 12:26:36 Laptop systemd[1]: Starting LSB: Start Motion
> detection...
> Nov 09 12:26:37 Laptop motion[900]:? * Starting motion detection
> daemon
> motion
> Nov 09 12:26:37 Laptop motion[900]:??? ...done.
> Nov 09 12:26:37 Laptop systemd[1]: Started LSB: Start Motion
> detection.
> Nov 09 12:26:37 Laptop motion[1023]: [-46028912:motion] [NTC] [ALL]
> conf_load: Processing thread 0 - config file /etc/motion/motion.conf
> Nov 09 12:26:37 Laptop motion[1023]: [-46028912:motion] [NTC] [ALL]
> config_camera: Processing camera config file /etc/motion/camera1.conf
> Nov 09 12:26:37 Laptop motion[1023]: [-46028912:motion] [NTC] [ALL]
> motion_startup: Motion 4.0 Started
> Nov 09 12:26:37 Laptop motion[1023]: [-46028912:motion] [ERR] [ALL]
> myfopen: Error opening file /var/log/motion/motion.log with mode
> a: Permis
> Nov 09 12:26:37 Laptop motion[1023]: [-46028912:motion] [EMG] [ALL]
> motion_startup: Exit motion, cannot create log file
> /var/log/motion/motion
>
> Unfortunately, the penultimate line for the motion service doesn't
> show
> all of the line. Any ideas?
>
> PS
>
>
> --
> John
>
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
>
>
>
>
> _______________________________________________
> 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...
-------------- next part --------------
-------------- next part --------------
_______________________________________________
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
------------------------------
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 149, Issue 13
********************************************