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. Re: Network Camera is Only Camera (MrDave)
   2.  Prevent Motion From Using TV-Tuner Card (Bill Sheets)
   3. Fwd: Re:  Network Camera is Only Camera (John Rose)


----------------------------------------------------------------------

Message: 1
Date: Sun, 11 Nov 2018 10:17:59 -0700
From: MrDave <motionmrd...@gmail.com>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] Network Camera is Only Camera
Message-ID: <29a04ff7-4812-c5f2-c449-e0d3cc056...@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

I would recommend checking out the documentation on the ports if you 
haven't already.? This is how users view the images from the camera in a 
browser.? e.g. http://localhost:8081?? When setting up for the first 
time, I usually recommend using the web stream to validate that the 
camera is found and working.

I think that in that version of Motion, the "port in use" message would 
occur when Motion is shut down with a ctrl-z.? Others may know of a 
better method, I just rebooted and always use ctrl-c instead.?? (I don't 
believe this occurs in the current version of Motion)

I'd also comment that version 4.0 is a couple of years old.? You may 
want to check the release notes and determine whether you want to upgrade.

https://github.com/Motion-Project/motion/releases

That page also has links to the guides that are applicable to each version.

Dave


On 11/10/2018 7:56 AM, John Rose wrote:
> MrDave & Mike Wilson,
>
> Now using command line to start motion from my Ubuntu Login user in 
> order to avoid Permissions problems:
> motion -c /home/john/motion/motion.conf -n -d 6 -p 
> /home/john/motion/pid.txt -l /home/john/motion/log.txt
>
> Ok at first:
> [-1412208752:motion] [NTC] [ALL] [Nov 10 14:38:53] motion_startup: 
> Using log type (ALL) log level (NTC)
> [-1412208752:motion] [NTC] [ENC] [Nov 10 14:38:53] ffmpeg_init: ffmpeg 
> libavcodec version 57.48.101 libavformat version 57.41.100
> [0:motion] [NTC] [ALL] [Nov 10 14:38:53] main: Camera 1 is from 
> /home/john/motion/camera1.conf
> [0:motion] [NTC] [ALL] [Nov 10 14:38:53] main: Camera 1 is device: 
> rtsp://192.168.101.51:554/onvif2 input -1
> [0:motion] [NTC] [ALL] [Nov 10 14:38:53] main: Stream port 8081
> [0:motion] [NTC] [ALL] [Nov 10 14:38:53] main: Waiting for threads to 
> finish, pid: 5348
> [0:web_control] [NTC] [STR] [Nov 10 14:38:53] http_bindsock: listening 
> on 127.0.0.1 port 8080
> [1:ml1] [NTC] [ALL] [Nov 10 14:38:53] motion_init: Camera 1 started: 
> motion detection Enabled
>
> [0:web_control] [NTC] [STR] [Nov 10 14:38:53] httpd_run: Started 
> motion-httpd server on port 8080 (auth Disabled)
>
> No longer 'picking up' Laptop's Webcam images (which I don't want) but 
> repeatedly get:[1:ml1] [NTC] [ALL] [Nov 10 14:38:53] motion_init: 
> Camera 1 started: motion detection Enabled
>
> [1:ml1] [ALR] [NET] [Nov 10 14:38:53] netcam_start: Network Camera 
> thread starting... for url (rtsp://192.168.101.51:554/onvif2)
> [1:ml1] [NTC] [NET] [Nov 10 14:38:53] netcam_rtsp_open_context: Using 
> udp transport
> [1:ml1] [NTC] [ENC] [Nov 10 14:38:55] ffmpeg_avcodec_log: max delay 
> reached. need to consume packet
> [1:ml1] [NTC] [ENC] [Nov 10 14:38:55] ffmpeg_avcodec_log: RTP: missed 
> 1 packets
> [1:ml1] [ERR] [ENC] [Nov 10 14:38:55] ffmpeg_avcodec_log: out of range 
> intra chroma pred mode
> [1:ml1] [ERR] [ENC] [Nov 10 14:38:55] ffmpeg_avcodec_log: error while 
> decoding MB 19 8
> [1:ml1] [NTC] [ENC] [Nov 10 14:38:55] ffmpeg_avcodec_log: max delay 
> reached. need to consume packet
> [1:ml1] [NTC] [ENC] [Nov 10 14:38:55] ffmpeg_avcodec_log: RTP: missed 
> 1 packets
> [1:ml1] [NTC] [NET] [Nov 10 14:38:55] netcam_connect_rtsp: Camera 
> connected
> [1:ml1] [NTC] [ALL] [Nov 10 14:38:55] image_ring_resize: Resizing 
> pre_capture buffer to 1 items
> [1:nc1] [ALR] [NET] [Nov 10 14:38:55] netcam_handler_loop: Camera 
> handler thread [3] started
> [1:ml1] [NTC] [STR] [Nov 10 14:38:55] http_bindsock: error binding on 
> 127.0.0.1 port 8081
> [1:ml1] [ERR] [ALL] [Nov 10 14:38:55] motion_init: Problem enabling 
> motion-stream server in port 8081: Address already in use
> [1:ml1] [NTC] [ALL] [Nov 10 14:38:55] motion_loop: Thread exiting
> [1:nc1] [ALR] [NET] [Nov 10 14:38:55] netcam_handler_loop: netcam 
> camera handler: finish set, exiting
> [1:ml1] [NTC] [NET] [Nov 10 14:38:55] netcam_shutdown_rtsp: netcam 
> shut down
>
> [0:motion] [NTC] [ALL] [Nov 10 14:38:56] main: Motion thread 1 restart
>
> No images stored in selected directory. I've attached motion.conf & 
> camera1.conf (both in my home directory). I don't understand usage of 
> ports 8080, 8081 etc & all the stuff about http server & web control. 
> Is that the problem?
> PS I've checked my firewall (ufw) log for blocks but there weren't any.
>
>
>
>
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> 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: Sun, 11 Nov 2018 10:22:41 -0800
From: Bill Sheets <bjs....@gmail.com>
To: motion-user@lists.sourceforge.net
Subject: [Motion-user]  Prevent Motion From Using TV-Tuner Card
Message-ID: <c7aecaaa-da69-db5b-1c79-c30423299...@gmail.com>
Content-Type: text/plain; charset=windows-1252

So no one has any suggestion on how to prevent Motion from trying to use
my Tuner card?

Bill S.



------------------------------

Message: 3
Date: Sun, 11 Nov 2018 18:32:37 +0000
From: John Rose <john.aaron.r...@gmail.com>
To: Motion MailingList <motion-user@lists.sourceforge.net>
Subject: [Motion-user] Fwd: Re:  Network Camera is Only Camera
Message-ID: <3a57d1d3-fab9-8a2f-1601-edf091673...@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Dave,
Thanks for the tips. I think that the problem was due to my having 
motioneye running as well: I 'removed' its process by using 'sudo 
systemctrl stop motioneye' & 'sudo systemctrl disable motioneye' and 
things improved. jpg files were written to my /home/john/motion 
directory and the log showed:
[1350903696:motion] [NTC] [ALL] [Nov 11 17:53:54] motion_startup: Using 
log type (ALL) log level (NTC)
[1350903696:motion] [NTC] [ENC] [Nov 11 17:53:54] ffmpeg_init: ffmpeg 
libavcodec version 57.48.101 libavformat version 57.41.100
[0:motion] [NTC] [ALL] [Nov 11 17:53:54] main: Camera 1 is from 
/home/john/motion/camera1.conf
[0:motion] [NTC] [ALL] [Nov 11 17:53:54] main: Camera 1 is device: 
rtsp://192.168.101.51:554/onvif2 input -1
[0:motion] [NTC] [ALL] [Nov 11 17:53:54] main: Stream port 8081
[0:motion] [NTC] [ALL] [Nov 11 17:53:54] main: Waiting for threads to 
finish, pid: 21384
[1:ml1] [NTC] [ALL] [Nov 11 17:53:54] motion_init: Camera 1 started: 
motion detection Enabled
[1:ml1] [ALR] [NET] [Nov 11 17:53:54] netcam_start: Network Camera 
thread starting... for url (rtsp://192.168.101.51:554/onvif2)
[0:web_control] [NTC] [STR] [Nov 11 17:53:54] http_bindsock: error 
binding on 127.0.0.1 port 8080
[0:web_control] [NTC] [STR] [Nov 11 17:53:54] motion_web_control: 
motion-httpd thread exit
[1:ml1] [NTC] [NET] [Nov 11 17:53:54] netcam_rtsp_open_context: Using 
udp transport
[1:ml1] [NTC] [NET] [Nov 11 17:53:56] netcam_connect_rtsp: Camera connected
[1:ml1] [NTC] [ALL] [Nov 11 17:53:56] image_ring_resize: Resizing 
pre_capture buffer to 1 items
[1:nc1] [ALR] [NET] [Nov 11 17:53:56] netcam_handler_loop: Camera 
handler thread [2] started
[1:ml1] [NTC] [STR] [Nov 11 17:53:56] http_bindsock: error binding on 
127.0.0.1 port 8081
[1:ml1] [ERR] [ALL] [Nov 11 17:53:56] motion_init: Problem enabling 
motion-stream server in port 8081: Address already in use
[1:ml1] [NTC] [ALL] [Nov 11 17:53:56] motion_loop: Thread exiting
[1:nc1] [ALR] [NET] [Nov 11 17:53:56] netcam_handler_loop: netcam camera 
handler: finish set, exiting
[1:ml1] [NTC] [NET] [Nov 11 17:53:56] netcam_shutdown_rtsp: netcam shut down
[0:motion] [NTC] [ALL] [Nov 11 17:53:57] main: Motion thread 1 restart
[1:ml1] [NTC] [ALL] [Nov 11 17:53:57] motion_init: Camera 1 started: 
motion detection Enabled
[1:ml1] [ALR] [NET] [Nov 11 17:53:57] netcam_start: Network Camera 
thread starting... for url (rtsp://192.168.101.51:554/onvif2)
[1:ml1] [NTC] [NET] [Nov 11 17:53:57] netcam_rtsp_open_context: Using 
udp transport
[1:ml1] [NTC] [NET] [Nov 11 17:53:59] netcam_connect_rtsp: Camera connected
[1:ml1] [NTC] [ALL] [Nov 11 17:53:59] image_ring_resize: Resizing 
pre_capture buffer to 1 items
[1:nc1] [ALR] [NET] [Nov 11 17:53:59] netcam_handler_loop: Camera 
handler thread [2] started
[1:ml1] [NTC] [STR] [Nov 11 17:53:59] http_bindsock: error binding on 
127.0.0.1 port 8081
[1:ml1] [ERR] [ALL] [Nov 11 17:53:59] motion_init: Problem enabling 
motion-stream server in port 8081: Address already in use
[1:ml1] [NTC] [ALL] [Nov 11 17:53:59] motion_loop: Thread exiting
[1:nc1] [ALR] [NET] [Nov 11 17:53:59] netcam_handler_loop: netcam camera 
handler: finish set, exiting
[1:ml1] [NTC] [NET] [Nov 11 17:53:59] netcam_shutdown_rtsp: netcam shut down
[0:motion] [NTC] [ALL] [Nov 11 17:54:00] main: Motion thread 1 restart

I still don't understand why both ports 8080 & 8081 are both used: 
please explain as I really don't understand why I get:
[1:ml1] [NTC] [STR] [Nov 11 17:53:59] http_bindsock: error binding on 
127.0.0.1 port 8081
[1:ml1] [ERR] [ALL] [Nov 11 17:53:59] motion_init: Problem enabling 
motion-stream server in port 8081: Address already in use

In my browser, when I do http://localhost:8080 it shows the same photo 
for [2] cameras, one for All & one for Camera1: confusing. In my 
browser, when I do http://localhost:8081, it shows one photo, for Camera1.

I find the motion documentation somewhat difficult to understand. It 
really needs examples of motion.conf & Camera1.conf etc: one for each 
camera type e.g. ip camera, usb camera.

Version 4.0 of motion is the Ubuntu Bionic (i.e. 18.04) supplied 
version. I'm reluctant to use later versions of apps not supplied by the 
Ubuntu LTS version that I'm using (I upgrade Ubuntu after the second 
version of an LTS version is released: normally in late October, due to 
the flaky nature of the first release of an LTS version), as I then have 
to monitor future versions (i.e. after the version of the one installed 
from a downloaded .deb or form a Launchpad ppa) of a particular app. So 
I stick with the Ubuntu supplied version unless there is a compelling 
reason to upgrade to a future .deb or from a ppa.

John


-------- Forwarded Message --------
Subject:        Re: [Motion-user] Network Camera is Only Camera
Date:   Sun, 11 Nov 2018 10:17:59 -0700
From:   MrDave <motionmrd...@gmail.com>
Reply-To:       Motion discussion list <motion-user@lists.sourceforge.net>
To:     motion-user@lists.sourceforge.net



I would recommend checking out the documentation on the ports if you 
haven't already.? This is how users view the images from the camera in a 
browser.? e.g. http://localhost:8081 When setting up for the first time, 
I usually recommend using the web stream to validate that the camera is 
found and working.

I think that in that version of Motion, the "port in use" message would 
occur when Motion is shut down with a ctrl-z. Others may know of a 
better method, I just rebooted and always use ctrl-c instead.?? (I don't 
believe this occurs in the current version of Motion)

I'd also comment that version 4.0 is a couple of years old. You may want 
to check the release notes and determine whether you want to upgrade.

https://github.com/Motion-Project/motion/releases

That page also has links to the guides that are applicable to each version.

Dave


On 11/10/2018 7:56 AM, John Rose wrote:
> MrDave & Mike Wilson,
>
> Now using command line to start motion from my Ubuntu Login user in 
> order to avoid Permissions problems:
> motion -c /home/john/motion/motion.conf -n -d 6 -p 
> /home/john/motion/pid.txt -l /home/john/motion/log.txt
>
> Ok at first:
> [-1412208752:motion] [NTC] [ALL] [Nov 10 14:38:53] motion_startup: 
> Using log type (ALL) log level (NTC)
> [-1412208752:motion] [NTC] [ENC] [Nov 10 14:38:53] ffmpeg_init: ffmpeg 
> libavcodec version 57.48.101 libavformat version 57.41.100
> [0:motion] [NTC] [ALL] [Nov 10 14:38:53] main: Camera 1 is from 
> /home/john/motion/camera1.conf
> [0:motion] [NTC] [ALL] [Nov 10 14:38:53] main: Camera 1 is device: 
> rtsp://192.168.101.51:554/onvif2 input -1
> [0:motion] [NTC] [ALL] [Nov 10 14:38:53] main: Stream port 8081
> [0:motion] [NTC] [ALL] [Nov 10 14:38:53] main: Waiting for threads to 
> finish, pid: 5348
> [0:web_control] [NTC] [STR] [Nov 10 14:38:53] http_bindsock: listening 
> on 127.0.0.1 port 8080
> [1:ml1] [NTC] [ALL] [Nov 10 14:38:53] motion_init: Camera 1 started: 
> motion detection Enabled
>
> [0:web_control] [NTC] [STR] [Nov 10 14:38:53] httpd_run: Started 
> motion-httpd server on port 8080 (auth Disabled)
>
> No longer 'picking up' Laptop's Webcam images (which I don't want) but 
> repeatedly get:[1:ml1] [NTC] [ALL] [Nov 10 14:38:53] motion_init: 
> Camera 1 started: motion detection Enabled
>
> [1:ml1] [ALR] [NET] [Nov 10 14:38:53] netcam_start: Network Camera 
> thread starting... for url (rtsp://192.168.101.51:554/onvif2)
> [1:ml1] [NTC] [NET] [Nov 10 14:38:53] netcam_rtsp_open_context: Using 
> udp transport
> [1:ml1] [NTC] [ENC] [Nov 10 14:38:55] ffmpeg_avcodec_log: max delay 
> reached. need to consume packet
> [1:ml1] [NTC] [ENC] [Nov 10 14:38:55] ffmpeg_avcodec_log: RTP: missed 
> 1 packets
> [1:ml1] [ERR] [ENC] [Nov 10 14:38:55] ffmpeg_avcodec_log: out of range 
> intra chroma pred mode
> [1:ml1] [ERR] [ENC] [Nov 10 14:38:55] ffmpeg_avcodec_log: error while 
> decoding MB 19 8
> [1:ml1] [NTC] [ENC] [Nov 10 14:38:55] ffmpeg_avcodec_log: max delay 
> reached. need to consume packet
> [1:ml1] [NTC] [ENC] [Nov 10 14:38:55] ffmpeg_avcodec_log: RTP: missed 
> 1 packets
> [1:ml1] [NTC] [NET] [Nov 10 14:38:55] netcam_connect_rtsp: Camera 
> connected
> [1:ml1] [NTC] [ALL] [Nov 10 14:38:55] image_ring_resize: Resizing 
> pre_capture buffer to 1 items
> [1:nc1] [ALR] [NET] [Nov 10 14:38:55] netcam_handler_loop: Camera 
> handler thread [3] started
> [1:ml1] [NTC] [STR] [Nov 10 14:38:55] http_bindsock: error binding on 
> 127.0.0.1 port 8081
> [1:ml1] [ERR] [ALL] [Nov 10 14:38:55] motion_init: Problem enabling 
> motion-stream server in port 8081: Address already in use
> [1:ml1] [NTC] [ALL] [Nov 10 14:38:55] motion_loop: Thread exiting
> [1:nc1] [ALR] [NET] [Nov 10 14:38:55] netcam_handler_loop: netcam 
> camera handler: finish set, exiting
> [1:ml1] [NTC] [NET] [Nov 10 14:38:55] netcam_shutdown_rtsp: netcam 
> shut down
>
> [0:motion] [NTC] [ALL] [Nov 10 14:38:56] main: Motion thread 1 restart
>
> No images stored in selected directory. I've attached motion.conf & 
> camera1.conf (both in my home directory). I don't understand usage of 
> ports 8080, 8081 etc & all the stuff about http server & web control. 
> Is that the problem?
> PS I've checked my firewall (ufw) log for blocks but there weren't any.
>
>
>
>
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> 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
Motion-user@lists.sourceforge.net
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
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 149, Issue 16
********************************************

Reply via email to