Motion - Support Question 2017x 01x 24x 210839

no videostream on html page

Question

Hello everybody, thanks in advance for your help. Please be patient with me i am not good at linux and not experienced with raspi either frown, sad smile

here is my question: can anybody help me getting motion video stream running again(!) on a html page? I had it all working initially without problems on a raspi B with wheezy. Webcam is a Logitech C210 (which I found out should be compatible: http://www.lavrsen.dk/foswiki/bin/view/Motion/Logitech#Logitech_C210) after some time and updates and dist-upgrade it didn't work anymore and I tried to fix it. unfortunately I can't tell after which update that was. I ended up upgrading to Jessi but it is still not running. I included the stream on a html-page with <iframe src="http://192.168.1.30:8081" width="340" height="260" name="Webcamstream"></iframe> but firefox gives an connection error. I think motion is not started correctly. when I command sudo motion start it gives me: (see below) So I am wondering about a few things: why are the IP adresses 0.0.0.0? what does [1] [WRN] [VID] v4l2_select_input: Device doesn't support VIDIOC_G_STD mean? and it stucks in an endless loop it seems and I have to exit with ctrl+c.

Has anyone an idea what i am doing wrong? Thanks a lot. cheers, than

PS: can anyone help me reading out the specifics on e.g. motion version, ffmpeg version and what else yu need to make it easier to debug?
sudo motion start
[0] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
[0] [ALR] [ALL] conf_cmdparse: Unknown config option &#34;sdl_threadnr&#34;
[0] [NTC] [ALL] motion_startup: Motion 3.2.12+git20140228 Started
[0] [NTC] [ALL] motion_startup: Logging to syslog
[0] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC)
[0] [NTC] [ENC] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3670016 LIBAVFORMAT_BUILD 3670272
[0] [NTC] [ALL] main: Thread 1 is from /etc/motion/motion.conf
[0] [NTC] [ALL] main: Thread 1 is device: /dev/video0 input -1
[0] [NTC] [ALL] main: Stream port 8081
[0] [NTC] [ALL] main: Waiting for threads to finish, pid: 19940
[1] [NTC] [ALL] motion_init: Thread 1 started , motion detection Enabled
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input -1
[0] [NTC] [STR] httpd_run: motion-httpd testing : IPV4 addr: 0.0.0.0 port: 8080
[0] [NTC] [STR] httpd_run: motion-httpd Bound : IPV4 addr: 0.0.0.0 port: 8080
[0] [NTC] [STR] httpd_run: motion-httpd/3.2.12+git20140228 running, accepting connections
[0] [NTC] [STR] httpd_run: motion-httpd: waiting for data on 0.0.0.0 port TCP 8080
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: &#34;uvcvideo&#34;
cap.card: &#34;UVC Camera (046d:0819)&#34;
cap.bus_info: &#34;usb-3f980000.usb-1.2&#34;
cap.capabilities=0x84200001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [NTC] [VID] v4l2_select_input: name = &#34;Camera 1&#34;, type 0x00000002, status 00000000
[1] [NTC] [VID] v4l2_select_input: - CAMERA
[1] [WRN] [VID] v4l2_select_input: Device doesn&#39;t support VIDIOC_G_STD
[1] [NTC] [VID] v4l2_do_set_pix_format: Testing palette YUYV (320x240)
[1] [NTC] [VID] v4l2_do_set_pix_format: Using palette YUYV (320x240) bytesperlines 640 sizeimage 153600 colorspace 00000008
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980900, &#34;Brightness&#34;, range 0,255
[1] [NTC] [VID] v4l2_scan_controls:     &#34;Brightness&#34;, default -8193, current 128
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980901, &#34;Contrast&#34;, range 0,255
[1] [NTC] [VID] v4l2_scan_controls:     &#34;Contrast&#34;, default 57343, current 32
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980902, &#34;Saturation&#34;, range 0,255
[1] [NTC] [VID] v4l2_scan_controls:     &#34;Saturation&#34;, default 57343, current 32
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980913, &#34;Gain&#34;, range 0,255
[1] [NTC] [VID] v4l2_scan_controls:     &#34;Gain&#34;, default 57343, current 0
[1] [NTC] [VID] vid_v4lx_start: Using V4L2
[1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[0] [ERR] [ALL] main: Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] [NTC] [STR] httpd_run: motion-httpd - Finishing
[0] [NTC] [STR] httpd_run: motion-httpd Closing
[0] [NTC] [STR] motion_web_control: motion-httpd thread exit
[0] [ERR] [ALL] main: Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
[0] [NTC] [STR] stream_stop: Closing motion-stream listen socket & active motion-stream sockets
[0] [NTC] [STR] stream_stop: Closed motion-stream listen socket & active motion-stream sockets
[0] [NTC] [VID] vid_close: Closing video device /dev/video0
[0] [NTC] [ALL] main: Motion thread 1 restart
[1] [NTC] [ALL] motion_init: Thread 1 started , motion detection Enabled
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input -1
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: &#34;uvcvideo&#34;
cap.card: &#34;UVC Camera (046d:0819)&#34;
cap.bus_info: &#34;usb-3f980000.usb-1.2&#34;
cap.capabilities=0x84200001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [NTC] [VID] v4l2_select_input: name = &#34;Camera 1&#34;, type 0x00000002, status 00000000
[1] [NTC] [VID] v4l2_select_input: - CAMERA
[1] [WRN] [VID] v4l2_select_input: Device doesn&#39;t support VIDIOC_G_STD
[1] [NTC] [VID] v4l2_do_set_pix_format: Testing palette YUYV (320x240)
[1] [NTC] [VID] v4l2_do_set_pix_format: Using palette YUYV (320x240) bytesperlines 640 sizeimage 153600 colorspace 00000008
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980900, &#34;Brightness&#34;, range 0,255
[1] [NTC] [VID] v4l2_scan_controls:     &#34;Brightness&#34;, default -8193, current 128
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980901, &#34;Contrast&#34;, range 0,255
[1] [NTC] [VID] v4l2_scan_controls:     &#34;Contrast&#34;, default 57343, current 32
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980902, &#34;Saturation&#34;, range 0,255
[1] [NTC] [VID] v4l2_scan_controls:     &#34;Saturation&#34;, default 57343, current 32
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980913, &#34;Gain&#34;, range 0,255
[1] [NTC] [VID] v4l2_scan_controls:     &#34;Gain&#34;, default 57343, current 0
[1] [NTC] [VID] vid_v4lx_start: Using V4L2
[1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] [NTC] [STR] http_bindsock: motion-stream testing : IPV4 addr: 0.0.0.0 port: 8081
[1] [NTC] [STR] http_bindsock: motion-stream Bound : IPV4 addr: 0.0.0.0 port: 8081
[1] [NTC] [ALL] motion_init: Started motion-stream server in port 8081 auth Disabled
[0] [ERR] [ALL] main: Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] [ERR] [ALL] main: Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
[0] [NTC] [STR] stream_stop: Closing motion-stream listen socket & active motion-stream sockets
[0] [NTC] [STR] stream_stop: Closed motion-stream listen socket & active motion-stream sockets
[0] [NTC] [VID] vid_close: Closing video device /dev/video0
[0] [NTC] [ALL] main: Motion thread 1 restart
[1] [NTC] [ALL] motion_init: Thread 1 started , motion detection Enabled
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input -1
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: &#34;uvcvideo&#34;
cap.card: &#34;UVC Camera (046d:0819)&#34;
cap.bus_info: &#34;usb-3f980000.usb-1.2&#34;
cap.capabilities=0x84200001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [NTC] [VID] v4l2_select_input: name = &#34;Camera 1&#34;, type 0x00000002, status 00000000
[1] [NTC] [VID] v4l2_select_input: - CAMERA
[1] [WRN] [VID] v4l2_select_input: Device doesn&#39;t support VIDIOC_G_STD
[1] [NTC] [VID] v4l2_do_set_pix_format: Testing palette YUYV (320x240)
[1] [NTC] [VID] v4l2_do_set_pix_format: Using palette YUYV (320x240) bytesperlines 640 sizeimage 153600 colorspace 00000008
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980900, &#34;Brightness&#34;, range 0,255
[1] [NTC] [VID] v4l2_scan_controls:     &#34;Brightness&#34;, default -8193, current 128
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980901, &#34;Contrast&#34;, range 0,255
[1] [NTC] [VID] v4l2_scan_controls:     &#34;Contrast&#34;, default 57343, current 32
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980902, &#34;Saturation&#34;, range 0,255
[1] [NTC] [VID] v4l2_scan_controls:     &#34;Saturation&#34;, default 57343, current 32
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980913, &#34;Gain&#34;, range 0,255
[1] [NTC] [VID] v4l2_scan_controls:     &#34;Gain&#34;, default 57343, current 0
[1] [NTC] [VID] vid_v4lx_start: Using V4L2
[1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] [NTC] [STR] http_bindsock: motion-stream testing : IPV4 addr: 0.0.0.0 port: 8081
[1] [NTC] [STR] http_bindsock: motion-stream Bound : IPV4 addr: 0.0.0.0 port: 8081
[1] [NTC] [ALL] motion_init: Started motion-stream server in port 8081 auth Disabled
[0] [ERR] [ALL] main: Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] [ERR] [ALL] main: Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
[0] [NTC] [STR] stream_stop: Closing motion-stream listen socket & active motion-stream sockets
[0] [NTC] [STR] stream_stop: Closed motion-stream listen socket & active motion-stream sockets
[0] [NTC] [VID] vid_close: Closing video device /dev/video0
[0] [NTC] [ALL] main: Threads finished
[0] [NTC] [ALL] main: Motion terminating

Environment

Motion version: 3.2.12
ffmpeg version:  
Libraries: ffmpeg, mysql, postgresql
Server OS: rasbian jessi
-- ThaninSchultheis - 24 Jan 2017

Answer

Topic revision: r1 - 24 Jan 2017, ThaninSchultheis
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.