BUG: "Motion thread 1 restart" when running as service
Everything works fine when I call "motion". However, no motion is recorded when I call "/etc/init.d/motion start"
For debugging I started motion as service:
/etc/init.d/motion start
In /etc/init.d/motion I added -d parameter:
<VERBATIM> if start-stop-daemon --start --oknodo --exec $DAEMON -b --chuid motion -- -d 9 ; then</VERBATIM>
Log started as service:
<VERBATIM>Jul 21 19:26:05 debian motion: [0] Processing thread 0 - config file /etc/motion/motion.conf
Jul 21 19:26:05 debian motion: [0] Processing config file /etc/motion/thread1.conf
Jul 21 19:26:05 debian motion: [0] Processing config file /etc/motion/thread2.conf
Jul 21 19:26:05 debian motion: [0] Motion 3.2.11 Started
Jul 21 19:26:05 debian motion: [0] Created process id file /var/run/motion/motion.pid. Process ID is 24369
Jul 21 19:26:05 debian motion: [0] Motion running as daemon process
Jul 21 19:26:05 debian motion: [0] ffmpeg LIBAVCODEC_BUILD 3410688 LIBAVFORMAT_BUILD 3414017
Jul 21 19:26:05 debian motion: [0] Thread 1 is from /etc/motion/thread1.conf
Jul 21 19:26:05 debian motion: [0] Thread 2 is from /etc/motion/thread2.conf
Jul 21 19:26:05 debian motion: [2] Camera thread starting...
Jul 21 19:26:05 debian motion: [2] netcam_start: Netcam_http parameter '1.0' converts to flags: HTTP1.0:1 HTTP1.1: 0 Keep-Alive OFF.
Jul 21 19:26:05 debian motion: [2] netcam_setup_html: Netcam has flags: HTTP1.0: 1 HTTP1.1: 0 Keep-Alive OFF.
Jul 21 19:26:05 debian motion: [1] Camera thread starting...
Jul 21 19:26:05 debian motion: [1] netcam_start: Netcam_http parameter '1.0' converts to flags: HTTP1.0:1 HTTP1.1: 0 Keep-Alive OFF.
Jul 21 19:26:05 debian motion: [1] netcam_setup_html: Netcam has flags: HTTP1.0: 1 HTTP1.1: 0 Keep-Alive OFF.
Jul 21 19:26:05 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:05 debian motion: [1] Resizing pre_capture buffer to 1 items
Jul 21 19:26:05 debian motion: [1] Camera handler thread [3] started
Jul 21 19:26:05 debian motion: [1] Resizing pre_capture buffer to 4 items
Jul 21 19:26:05 debian motion: [1] netcam_next called with no data in buffer
Jul 21 19:26:06 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38672
Jul 21 19:26:06 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:06 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:06 debian motion: [0] DEBUG-2 threads_running 3 motion_threads_running 2 , finish 0
Jul 21 19:26:06 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38752
Jul 21 19:26:06 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:07 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:07 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38676
Jul 21 19:26:07 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:07 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:07 debian motion: [0] DEBUG-2 threads_running 3 motion_threads_running 2 , finish 0
Jul 21 19:26:08 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38604
Jul 21 19:26:08 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:08 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:08 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38600
Jul 21 19:26:08 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:08 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:08 debian motion: [0] DEBUG-2 threads_running 3 motion_threads_running 2 , finish 0
Jul 21 19:26:08 debian motion: [2] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:08 debian motion: [2] Resizing pre_capture buffer to 1 items
Jul 21 19:26:08 debian motion: [2] Camera handler thread [4] started
Jul 21 19:26:08 debian motion: [2] Resizing pre_capture buffer to 4 items
Jul 21 19:26:08 debian motion: [2] netcam_next called with no data in buffer
Jul 21 19:26:09 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38544
Jul 21 19:26:09 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:09 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:09 debian motion: [2] netcam_next called with no data in buffer
Jul 21 19:26:09 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38564
Jul 21 19:26:09 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:09 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:09 debian motion: [0] DEBUG-2 threads_running 4 motion_threads_running 2 , finish 0
Jul 21 19:26:10 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38616
Jul 21 19:26:10 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:10 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:10 debian motion: [2] netcam_next called with no data in buffer
Jul 21 19:26:10 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38496
Jul 21 19:26:10 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:10 debian motion: [0] DEBUG-2 threads_running 4 motion_threads_running 2 , finish 0
Jul 21 19:26:10 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:11 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38540
Jul 21 19:26:11 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:11 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:11 debian motion: [2] netcam_next called with no data in buffer
Jul 21 19:26:11 debian motion: [0] DEBUG-2 threads_running 4 motion_threads_running 2 , finish 0
Jul 21 19:26:11 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38500
Jul 21 19:26:11 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:11 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:12 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38476
Jul 21 19:26:12 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:12 debian motion: [2] netcam_proc_jpeg: processing jpeg image - content length 34460
Jul 21 19:26:12 debian motion: [2] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:12 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:12 debian motion: [2] netcam_image_conv: jpeg_error 0
Jul 21 19:26:12 debian motion: [0] DEBUG-2 threads_running 4 motion_threads_running 2 , finish 0
Jul 21 19:26:12 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38540
Jul 21 19:26:12 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:12 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:13 debian motion: [2] netcam_proc_jpeg: processing jpeg image - content length 34472
Jul 21 19:26:13 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38404
Jul 21 19:26:13 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:13 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:13 debian motion: [0] DEBUG-2 threads_running 4 motion_threads_running 2 , finish 0
Jul 21 19:26:13 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38352
Jul 21 19:26:13 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:14 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:14 debian motion: [2] netcam_proc_jpeg: processing jpeg image - content length 34472
Jul 21 19:26:14 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38008
Jul 21 19:26:14 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:14 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:14 debian motion: [0] DEBUG-2 threads_running 4 motion_threads_running 2 , finish 0
Jul 21 19:26:15 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 36904
Jul 21 19:26:15 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:15 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:15 debian motion: [2] netcam_proc_jpeg: processing jpeg image - content length 34472
Jul 21 19:26:15 debian motion: [2] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:15 debian motion: [2] netcam_image_conv: jpeg_error 0
Jul 21 19:26:15 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 37932
Jul 21 19:26:15 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:15 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:15 debian motion: [0] DEBUG-2 threads_running 4 motion_threads_running 2 , finish 0
Jul 21 19:26:16 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 37624
Jul 21 19:26:16 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:16 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:16 debian motion: [2] netcam_proc_jpeg: processing jpeg image - content length 34592
Jul 21 19:26:16 debian motion: [2] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:16 debian motion: [2] netcam_image_conv: jpeg_error 0
Jul 21 19:26:16 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 37788
Jul 21 19:26:16 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:16 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:16 debian motion: [0] DEBUG-2 threads_running 4 motion_threads_running 2 , finish 0
Jul 21 19:26:17 debian motion: [1] netcam camera handler: finish set, exiting
Jul 21 19:26:17 debian motion: [2] netcam_proc_jpeg: processing jpeg image - content length 34584
Jul 21 19:26:17 debian motion: [0] Motion thread 1 restart
Jul 21 19:26:17 debian motion: [0] DEBUG-2 threads_running 3 motion_threads_running 2 , finish 0
Jul 21 19:26:17 debian motion: [1] Camera thread starting...
Jul 21 19:26:17 debian motion: [1] netcam_start: Netcam_http parameter '1.0' converts to flags: HTTP1.0:1 HTTP1.1: 0 Keep-Alive OFF.
Jul 21 19:26:17 debian motion: [1] netcam_setup_html: Netcam has flags: HTTP1.0: 1 HTTP1.1: 0 Keep-Alive OFF.
Jul 21 19:26:17 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:17 debian motion: [1] Resizing pre_capture buffer to 1 items
Jul 21 19:26:17 debian motion: [1] Camera handler thread [4] started
Jul 21 19:26:17 debian motion: [1] netcam_next called with no data in buffer
Jul 21 19:26:18 debian motion: [2] netcam_proc_jpeg: processing jpeg image - content length 34584
Jul 21 19:26:18 debian motion: [1] Resizing pre_capture buffer to 4 items
Jul 21 19:26:18 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 37832
Jul 21 19:26:18 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:18 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:18 debian motion: [0] DEBUG-2 threads_running 4 motion_threads_running 2 , finish 0
Jul 21 19:26:18 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 37932
Jul 21 19:26:18 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:19 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:19 debian motion: [2] netcam_proc_jpeg: processing jpeg image - content length 34584
Jul 21 19:26:19 debian motion: [1] netcam_proc_jpeg: processing jpeg image - content length 38168
Jul 21 19:26:19 debian motion: [1] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:19 debian motion: [2] netcam_init_jpeg: jpeg_error 0
Jul 21 19:26:19 debian motion: [1] netcam_image_conv: jpeg_error 0
Jul 21 19:26:19 debian motion: [2] netcam_image_conv: jpeg_error 0</VERBATIM>
Log when starting motion via: motion -n -d 9
<VERBATIM>[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Processing config file /etc/motion/thread1.conf
[0] Processing config file /etc/motion/thread2.conf
[0] Motion 3.2.11 Started
[0] ffmpeg LIBAVCODEC_BUILD 3410688 LIBAVFORMAT_BUILD 3414017
[0] Thread 1 is from /etc/motion/thread1.conf
[0] Thread 2 is from /etc/motion/thread2.conf
[0] motion-httpd/3.2.11 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[2] Thread 2 started
[2] entered netcam_start()
[2] Camera thread starting...
[2] Entry netcam_url_parse data http://192.168.61.16:84/snapshot.cgi
[2] Parse case 0 data http://192.168.61.16:84/snapshot.cgi
[2] Parse case 1 data http
[2] Parse case 6 data 192.168.61.16
[2] Parse case 7 data :84
[2] Parse case 8 data 84
[2] Parse case 9 data /snapshot.cgi
[2] netcam_start: Netcam_http parameter '1.0' converts to flags: HTTP1.0:1 HTTP1.1: 0 Keep-Alive OFF.
[2] netcam_start: now calling netcam_setup_html()
[1] Thread 1 started
[1] entered netcam_start()
[1] Camera thread starting...
[1] Entry netcam_url_parse data http://192.168.61.15:82/snapshot.cgi
[1] Parse case 0 data http://192.168.61.15:82/snapshot.cgi
[1] Parse case 1 data http
[1] Parse case 6 data 192.168.61.15
[1] Parse case 7 data :82
[1] Parse case 8 data 82
[1] Parse case 9 data /snapshot.cgi
[2] netcam_setup_html: Netcam has flags: HTTP1.0: 1 HTTP1.1: 0 Keep-Alive OFF.
[2] Camera connect string is ''GET /snapshot.cgi HTTP/1.0
Host: 192.168.61.16
User-Agent: Motion-netcam/3.2.11
Connection: close
Authorization: Basic V29sZmdhbmc6QTdPZnduR0s=
''
[2] End of camera connect string.
[2] netcam_setup_html: about to try to connect, time #0
[1] netcam_start: Netcam_http parameter '1.0' converts to flags: HTTP1.0:1 HTTP1.1: 0 Keep-Alive OFF.
[1] netcam_start: now calling netcam_setup_html()
[1] netcam_setup_html: Netcam has flags: HTTP1.0: 1 HTTP1.1: 0 Keep-Alive OFF.
[1] Camera connect string is ''GET /snapshot.cgi HTTP/1.0
Host: 192.168.61.15
User-Agent: Motion-netcam/3.2.11
Connection: close
Authorization: Basic V29sZmdhbmc6QTdPZnduR0s=
''
[1] End of camera connect string.
[1] netcam_setup_html: about to try to connect, time #0
[1] netcam_connect, disconnecting netcam since keep-alive not set.
[1] netcam_connect with no keepalive, new socket created fd 5
[2] netcam_connect, disconnecting netcam since keep-alive not set.
[2] netcam_connect with no keepalive, new socket created fd 6
[1] Received first header ('HTTP/1.1 200 OK')
[1] Received first header ('Server: Netwave IP Camera')
[1] Received first header ('Date: Sun, 21 Jul 2013 17:36:52 GMT')
[1] Received first header ('Content-Type: image/jpeg')
[1] Non-streaming camera (keep-alive not set)
[1] Received first header ('Content-Length: 40292')
[1] Content-length present
[1] Received first header ('Content-disposition: filename="snapshot_00626E4296B5_20130721193652.jpg"')
[1] Received first header ('Connection: close')
[1] Found Conn:close header ('Connection: close')
[1] Received first header ('')
[1] netcam_setup_html: connected, going on to read image.
[1] expanding buffer from 0 to 4096 bytes
[1] expanding buffer from 4096 to 8192 bytes
[1] expanding buffer from 8192 to 12288 bytes
[1] expanding buffer from 12288 to 16384 bytes
[1] expanding buffer from 16384 to 20480 bytes
[1] expanding buffer from 20480 to 24576 bytes
[1] expanding buffer from 24576 to 28672 bytes
[1] expanding buffer from 28672 to 32768 bytes
[1] expanding buffer from 32768 to 36864 bytes
[1] expanding buffer from 36864 to 40960 bytes
[1] netcam_read_html_jpeg disconnecting netcam since keep-alive not set.
[1] netcam_init_jpeg: jpeg_error 0
[1] netcam_get_dimensions: JFIF_marker IS PRESENT ret 0
[1] Resizing pre_capture buffer to 1 items
[1] Camera handler thread [3] started
[1] netcam_connect, disconnecting netcam since keep-alive not set.
[1] netcam_connect with no keepalive, new socket created fd 7
[1] Received first header ('HTTP/1.1 200 OK')
[1] Received first header ('Server: Netwave IP Camera')
[1] Received first header ('Date: Sun, 21 Jul 2013 17:36:52 GMT')
[1] Received first header ('Content-Type: image/jpeg')
[1] Non-streaming camera (keep-alive not set)
[1] Received first header ('Content-Length: 40288')
[1] Content-length present
[1] Received first header ('Content-disposition: filename="snapshot_00626E4296B5_20130721193652.jpg"')
[1] Received first header ('Connection: close')
[1] Found Conn:close header ('Connection: close')
[1] Received first header ('')
[1] expanding buffer from 0 to 4096 bytes
[1] expanding buffer from 4096 to 8192 bytes
[1] Started stream webcam server in port 8082
[1] Resizing pre_capture buffer to 4 items
[1] expanding buffer from 8192 to 12288 bytes
[1] expanding buffer from 12288 to 16384 bytes
[1] netcam_next called with no data in buffer
[1] vid_return_code 6
[1] expanding buffer from 16384 to 20480 bytes
[1] expanding buffer from 20480 to 24576 bytes
[1] expanding buffer from 24576 to 28672 bytes
[1] expanding buffer from 28672 to 32768 bytes
[1] expanding buffer from 32768 to 36864 bytes
[1] expanding buffer from 36864 to 40960 bytes
[1] Calculated frame time 456918.812500
[1] netcam_read_html_jpeg disconnecting netcam since keep-alive not set.
[1] netcam_connect, disconnecting netcam since keep-alive not set.
[1] netcam_connect with no keepalive, new socket created fd 7
[1] netcam_proc_jpeg: processing jpeg image - content length 40288
[1] netcam_init_jpeg: jpeg_error 0
[1] Received first header ('HTTP/1.1 200 OK')
[1] Received first header ('Server: Netwave IP Camera')
[1] Received first header ('Date: Sun, 21 Jul 2013 17:36:53 GMT')
[1] Received first header ('Content-Type: image/jpeg')
[1] Non-streaming camera (keep-alive not set)
[1] Received first header ('Content-Length: 40016')
[1] Content-length present
[1] Received first header ('Content-disposition: filename="snapshot_00626E4296B5_20130721193653.jpg"')
[1] Received first header ('Connection: close')
[1] Found Conn:close header ('Connection: close')
[1] Received first header ('')
[1] expanding buffer from 0 to 4096 bytes
[1] expanding buffer from 4096 to 8192 bytes
[1] expanding buffer from 8192 to 12288 bytes
[1] expanding buffer from 12288 to 16384 bytes
[1] expanding buffer from 16384 to 20480 bytes
[1] expanding buffer from 20480 to 24576 bytes
[1] expanding buffer from 24576 to 28672 bytes
[1] expanding buffer from 28672 to 32768 bytes
[1] expanding buffer from 32768 to 36864 bytes
[1] expanding buffer from 36864 to 40960 bytes
[1] Calculated frame time 464206.218750
[1] netcam_read_html_jpeg disconnecting netcam since keep-alive not set.
[1] netcam_image_conv: jpeg_error 0
[0] DEBUG-2 threads_running 3 motion_threads_running 2 , finish 0
[1] netcam_connect, disconnecting netcam since keep-alive not set.
[1] netcam_connect with no keepalive, new socket created fd 7
[1] netcam_proc_jpeg: processing jpeg image - content length 40016
[1] netcam_init_jpeg: jpeg_error 0
[1] netcam_image_conv: jpeg_error 0
[1] Received first header ('HTTP/1.1 200 OK')
[1] Received first header ('Server: Netwave IP Camera')
[1] Received first header ('Date: Sun, 21 Jul 2013 17:36:54 GMT')
[1] Received first header ('Content-Type: image/jpeg')
[1] Non-streaming camera (keep-alive not set)
[1] Received first header ('Content-Length: 40256')
[1] Content-length present
[1] Received first header ('Content-disposition: filename="snapshot_00626E4296B5_20130721193654.jpg"')
[1] Received first header ('Connection: close')
[1] Found Conn:close header ('Connection: close')
[1] Received first header ('')
[1] Calculated frame time 476818.093750
[1] netcam_read_html_jpeg disconnecting netcam since keep-alive not set.
[1] netcam_connect, disconnecting netcam since keep-alive not set.
[1] netcam_connect with no keepalive, new socket created fd 7
[1] netcam_proc_jpeg: processing jpeg image - content length 40256
[1] netcam_init_jpeg: jpeg_error 0
[1] Received first header ('HTTP/1.1 200 OK')
[1] Received first header ('Server: Netwave IP Camera')
[1] Received first header ('Date: Sun, 21 Jul 2013 17:36:54 GMT')
[1] Received first header ('Content-Type: image/jpeg')
[1] Non-streaming camera (keep-alive not set)
[1] Received first header ('Content-Length: 40232')
[1] Content-length present
[1] Received first header ('Content-disposition: filename="snapshot_00626E4296B5_20130721193654.jpg"')
[1] Received first header ('Connection: close')
[1] Found Conn:close header ('Connection: close')
[1] Received first header ('')
[1] Calculated frame time 482098.093750
[1] netcam_read_html_jpeg disconnecting netcam since keep-alive not set.
[1] netcam_image_conv: jpeg_error 0
[0] DEBUG-2 threads_running 3 motion_threads_running 2 , finish 0
[1] netcam_connect, disconnecting netcam since keep-alive not set.
[1] netcam_connect with no keepalive, new socket created fd 7
[1] netcam_proc_jpeg: processing jpeg image - content length 40232
[1] netcam_init_jpeg: jpeg_error 0
[1] Received first header ('HTTP/1.1 200 OK')
[1] Received first header ('Server: Netwave IP Camera')
[1] Received first header ('Date: Sun, 21 Jul 2013 17:36:55 GMT')
[1] Received first header ('Content-Type: image/jpeg')
[1] Non-streaming camera (keep-alive not set)
[1] Received first header ('Content-Length: 40364')
[1] Content-length present
[1] Received first header ('Content-disposition: filename="snapshot_00626E4296B5_20130721193655.jpg"')
[1] Received first header ('Connection: close')
[1] Found Conn:close header ('Connection: close')
[1] Received first header ('')
[1] Calculated frame time 487049.500000
[1] netcam_read_html_jpeg disconnecting netcam since keep-alive not set.
[1] netcam_image_conv: jpeg_error 0
[1] netcam_connect, disconnecting netcam since keep-alive not set.
[1] netcam_connect with no keepalive, new socket created fd 7
[1] netcam_proc_jpeg: processing jpeg image - content length 40364
[1] netcam_init_jpeg: jpeg_error 0
[1] Received first header ('HTTP/1.1 200 OK')
[1] Received first header ('Server: Netwave IP Camera')
[1] Received first header ('Date: Sun, 21 Jul 2013 17:36:55 GMT')
[1] Received first header ('Content-Type: image/jpeg')
[1] Non-streaming camera (keep-alive not set)
[1] Received first header ('Content-Length: 40072')
[1] Content-length present
[1] Received first header ('Content-disposition: filename="snapshot_00626E4296B5_20130721193655.jpg"')
[1] Received first header ('Connection: close')
[1] Found Conn:close header ('Connection: close')
[1] Received first header ('')
[1] netcam_image_conv: jpeg_error 0
[1] Calculated frame time 497175.343750
[1] netcam_read_html_jpeg disconnecting netcam since keep-alive not set.
[0] DEBUG-2 threads_running 3 motion_threads_running 2 , finish 0
[2] Received first header ('HTTP/1.1 200 OK')
[2] Received first header ('Server: Netwave IP Camera')
[2] Received first header ('Date: Sun, 21 Jul 2013 17:36:55 GMT')
[2] Received first header ('Content-Type: image/jpeg')
[2] Non-streaming camera (keep-alive not set)
[2] Received first header ('Content-Length: 34496')
[2] Content-length present
[2] Received first header ('Content-disposition: filename="snapshot_00626E42E367_20130721193655.jpg"')
[2] Received first header ('Connection: close')
[2] Found Conn:close header ('Connection: close')
[2] Received first header ('')
[2] netcam_setup_html: connected, going on to read image.
[2] expanding buffer from 0 to 4096 bytes
[2] expanding buffer from 4096 to 8192 bytes
[2] expanding buffer from 8192 to 12288 bytes
[2] expanding buffer from 12288 to 16384 bytes
[2] expanding buffer from 16384 to 20480 bytes
[2] expanding buffer from 20480 to 24576 bytes
[2] expanding buffer from 24576 to 28672 bytes
[2] expanding buffer from 28672 to 32768 bytes
[2] expanding buffer from 32768 to 36864 bytes
[2] netcam_read_html_jpeg disconnecting netcam since keep-alive not set.
[2] netcam_init_jpeg: jpeg_error 0
[2] netcam_get_dimensions: JFIF_marker IS PRESENT ret 0
[2] Resizing pre_capture buffer to 1 items
[2] Camera handler thread [4] started
[2] netcam_connect, disconnecting netcam since keep-alive not set.
[2] netcam_connect with no keepalive, new socket created fd 6
[2] Received first header ('HTTP/1.1 200 OK')
[2] Received first header ('Server: Netwave IP Camera')
[2] Received first header ('Date: Sun, 21 Jul 2013 17:36:55 GMT')
[2] Received first header ('Content-Type: image/jpeg')
[2] Non-streaming camera (keep-alive not set)
[2] Received first header ('Content-Length: 34532')
[2] Content-length present
[2] Received first header ('Content-disposition: filename="snapshot_00626E42E367_20130721193655.jpg"')
[2] Received first header ('Connection: close')
[2] Found Conn:close header ('Connection: close')
[2] Received first header ('')
[2] expanding buffer from 0 to 4096 bytes
[2] expanding buffer from 4096 to 8192 bytes
[2] expanding buffer from 8192 to 12288 bytes
[2] expanding buffer from 12288 to 16384 bytes
[2] expanding buffer from 16384 to 20480 bytes
[2] expanding buffer from 20480 to 24576 bytes
[2] Started stream webcam server in port 8081
[2] Resizing pre_capture buffer to 4 items
[2] expanding buffer from 24576 to 28672 bytes
[2] expanding buffer from 28672 to 32768 bytes
[2] expanding buffer from 32768 to 36864 bytes
[2] netcam_next called with no data in buffer
[2] vid_return_code 6
[2] Calculated frame time 906051.812500
[2] netcam_read_html_jpeg disconnecting netcam since keep-alive not set.
[1] netcam_proc_jpeg: processing jpeg image - content length 40072
[1] netcam_init_jpeg: jpeg_error 0
[1] netcam_connect, disconnecting netcam since keep-alive not set.
[1] netcam_connect with no keepalive, new socket created fd 6
[1] Received first header ('HTTP/1.1 200 OK')
[1] Received first header ('Server: Netwave IP Camera')
[1] Received first header ('Date: Sun, 21 Jul 2013 17:36:56 GMT')
[1] Received first header ('Content-Type: image/jpeg')
[1] Non-streaming camera (keep-alive not set)
[1] Received first header ('Content-Length: 40176')
[1] Content-length present
[1] Received first header ('Content-disposition: filename="snapshot_00626E4296B5_20130721193656.jpg"')
[1] Received first header ('Connection: close')
[1] Found Conn:close header ('Connection: close')
[1] Received first header ('')
[1] Calculated frame time 500547.218750
[1] netcam_read_html_jpeg disconnecting netcam since keep-alive not set.
[1] netcam_image_conv: jpeg_error 0
[2] netcam_proc_jpeg: processing jpeg image - content length 34532
[2] netcam_init_jpeg: jpeg_error 0
[2] netcam_connect, disconnecting netcam since keep-alive not set.
[2] netcam_connect with no keepalive, new socket created fd 6
[2] Received first header ('HTTP/1.1 200 OK')
[2] Received first header ('Server: Netwave IP Camera')
[2] Received first header ('Date: Sun, 21 Jul 2013 17:36:56 GMT')
[2] Received first header ('Content-Type: image/jpeg')
[2] Non-streaming camera (keep-alive not set)
[2] Received first header ('Content-Length: 34512')</VERBATIM>
Environment
Motion version: |
3.2.11 |
ffmpeg version: |
0.5-svn17737+3:0.svn20090303-1ubuntu6 |
Shared libraries: |
ffmpeg |
Server OS: |
Linux debian 3.0.9 armv5tel |
--
JohnMiller - 21 Jul 2013
Follow up
Fix record