The main background service is raspimjpeg. There are actually 2 copies of this running with one acting as a monitor / restart in case the first dies. There is also a check for the preview image not updating in the watchdog interval which should trigger a restart.bic wrote:I have my cams in motion state. Once in a while it will 'freeze' during recording. The web interface doesn't freeze, just the preview image (and no further recordings take place). The preview page after reboot always has that last recording in "Busy" state. I can reboot through the web interface. What service can I restart instead of rebooting the pi? Also can there be a check, when the preview is not being updated to restart that service automatically? This has been an issue on all versions.
Also what service/script do you use to keep the disc from becoming full?
Great project, keep up the good work!
Code: Select all
netcam_keepalive on
Code: Select all
netcam_keepalive on
Code: Select all
[0] [NTC] [ALL] [Mar 30 10:01:33] motion_startup: Using log type (ALL) log level (ALL)
[0] [NTC] [ALL] [Mar 30 10:01:33] become_daemon: Motion going to daemon mode
[0] [NTC] [ALL] [Mar 30 10:01:33] motion_startup: Motion running as daemon process
[0] [NTC] [ENC] [Mar 30 10:01:33] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3670016 LIBAVFORMAT_BUILD 3670272
[0] [NTC] [ALL] [Mar 30 10:01:33] main: Thread 1 is from /etc/motion/motion.conf
[0] [NTC] [ALL] [Mar 30 10:01:33] main: Thread 1 is device: http://localhost/html/cam_pic.php input -1
[0] [NTC] [ALL] [Mar 30 10:01:33] main: Stream port 6643
[0] [NTC] [ALL] [Mar 30 10:01:33] main: Waiting for threads to finish, pid: 3103
[1] [NTC] [ALL] [Mar 30 10:01:33] motion_init: Thread 1 started , motion detection Enabled
[1] [ALR] [NET] [Mar 30 10:01:33] netcam_start: Network Camera thread starting... for url (http://localhost/html/cam_pic.php)
[1] [DBG] [NET] [Mar 30 10:01:33] netcam_url_parse: Entry netcam_url_parse data http://localhost/html/cam_pic.php
[1] [DBG] [NET] [Mar 30 10:01:33] netcam_url_parse: Parse case 0 data http://localhost/html/cam_pic.php
[1] [DBG] [NET] [Mar 30 10:01:33] netcam_url_parse: Parse case 1 data http
[1] [DBG] [NET] [Mar 30 10:01:33] netcam_url_parse: Parse case 6 data localhost
[1] [DBG] [NET] [Mar 30 10:01:33] netcam_url_parse: Parse case 9 data /html/cam_pic.php
[1] [INF] [NET] [Mar 30 10:01:33] netcam_start: Netcam_http parameter 'on' converts to flags: HTTP/1.0: 0 HTTP/1.1: 1 Keep-Alive ON.
[1] [INF] [NET] [Mar 30 10:01:33] netcam_start: now calling netcam_setup_html()
[1] [INF] [NET] [Mar 30 10:01:33] netcam_http_build_url: Netcam has flags: HTTP/1.0: 0 HTTP/1.1: 1 Keep-Alive ON.
[1] [INF] [NET] [Mar 30 10:01:33] netcam_http_build_url: Camera connect string is ''GET /html/cam_pic.php HTTP/1.1
Host: localhost
User-Agent: Motion-netcam/3.2.12+git20140228
Connection: Keep-Alive
Authorization: Basic cGk6JGNIIzg4MTM=
'' End of camera connect string.
[1] [INF] [NET] [Mar 30 10:01:33] netcam_http_request: about to try to connect, time #0
[1] [INF] [NET] [Mar 30 10:01:33] netcam_connect: with keepalive set, invalid socket.This could be first time, created a new one with fd 12
[1] [INF] [NET] [Mar 30 10:01:33] netcam_connect: SO_KEEPALIVE is OFF
[1] [INF] [NET] [Mar 30 10:01:33] netcam_connect: SO_KEEPALIVE set on socket.
[1] [INF] [NET] [Mar 30 10:01:33] netcam_connect: re-using socket 12 since keepalive is set.
[1] [INF] [NET] [Mar 30 10:01:33] netcam_read_first_header: Received first header ('HTTP/1.1 200 OK')
[1] [INF] [NET] [Mar 30 10:01:33] netcam_read_first_header: Received first header ('Server: nginx/1.6.2')
[1] [INF] [NET] [Mar 30 10:01:33] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:01:33] netcam_read_first_header: Received first header ('Date: Wed, 30 Mar 2016 14:01:33 GMT')
[1] [INF] [NET] [Mar 30 10:01:33] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:01:33] netcam_read_first_header: Received first header ('Content-Type: image/jpeg')
[1] [INF] [NET] [Mar 30 10:01:33] netcam_check_content_type: Content-type image/jpeg
[1] [NTC] [NET] [Mar 30 10:01:33] netcam_read_first_header: Non-streaming camera (keep-alive set)
[1] [INF] [NET] [Mar 30 10:01:33] netcam_read_first_header: Received first header ('Transfer-Encoding: chunked')
[1] [INF] [NET] [Mar 30 10:01:33] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:01:33] netcam_read_first_header: Received first header ('Connection: keep-alive')
[1] [INF] [NET] [Mar 30 10:01:33] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:01:33] netcam_read_first_header: Received first header ('')
[1] [INF] [NET] [Mar 30 10:01:33] netcam_read_first_header: No 'Connection: Keep-Alive' nor 'Connection: close' header received.
Motion continues unchanged.
[1] [NTC] [NET] [Mar 30 10:01:33] netcam_setup_html: connected, going on to read image.
[1] [DBG] [NET] [Mar 30 10:01:33] netcam_check_buffsize: expanding buffer from [0/0] to [0/4096] bytes.
[1] [DBG] [NET] [Mar 30 10:01:33] netcam_check_buffsize: expanding buffer from [3941/4096] to [3941/8192] bytes.
[1] [DBG] [NET] [Mar 30 10:01:33] netcam_check_buffsize: expanding buffer from [8037/8192] to [8037/12288] bytes.
[1] [DBG] [NET] [Mar 30 10:01:33] netcam_check_buffsize: expanding buffer from [12133/12288] to [12133/16384] bytes.
[1] [NTC] [NET] [Mar 30 10:01:38] netcam_read_html_jpeg: leaving netcam connected.
[1] [DBG] [NET] [Mar 30 10:01:38] netcam_output_message: Not a JPEG file: starts with 0x31 0x66
[1] [INF] [NET] [Mar 30 10:01:38] netcam_error_exit: netcam->jpeg_error 1
[1] [CRT] [NET] [Mar 30 10:01:38] netcam_start: libjpeg decompression failure on first frame - giving up!
[1] [WRN] [ALL] [Mar 30 10:01:38] motion_init: Could not fetch initial image from camera Motion continues using width and height from config file(s)
[1] [NTC] [ALL] [Mar 30 10:01:38] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] [NTC] [STR] [Mar 30 10:01:38] http_bindsock: motion-stream testing : IPV4 addr: 127.0.0.1 port: 6643
[1] [NTC] [STR] [Mar 30 10:01:38] http_bindsock: motion-stream Bound : IPV4 addr: 127.0.0.1 port: 6643
[1] [NTC] [ALL] [Mar 30 10:01:38] motion_init: Started motion-stream server in port 6643 auth Disabled
[1] [DBG] [ALL] [Mar 30 10:01:38] motion_loop: vid_return_code 1
[1] [DBG] [ALL] [Mar 30 10:01:39] motion_loop: vid_return_code 1
[1] [DBG] [ALL] [Mar 30 10:01:39] motion_loop: vid_return_code 1
[1] [WRN] [ALL] [Mar 30 10:01:40] motion_loop: Retrying until successful connection with camera
[1] [ALR] [NET] [Mar 30 10:01:40] netcam_start: Network Camera thread starting... for url (http://localhost/html/cam_pic.php)
[1] [DBG] [NET] [Mar 30 10:01:40] netcam_url_parse: Entry netcam_url_parse data http://localhost/html/cam_pic.php
[1] [DBG] [NET] [Mar 30 10:01:40] netcam_url_parse: Parse case 0 data http://localhost/html/cam_pic.php
[1] [DBG] [NET] [Mar 30 10:01:40] netcam_url_parse: Parse case 1 data http
[1] [DBG] [NET] [Mar 30 10:01:40] netcam_url_parse: Parse case 6 data localhost
[1] [DBG] [NET] [Mar 30 10:01:40] netcam_url_parse: Parse case 9 data /html/cam_pic.php
[1] [INF] [NET] [Mar 30 10:01:40] netcam_start: Netcam_http parameter 'on' converts to flags: HTTP/1.0: 0 HTTP/1.1: 1 Keep-Alive ON.
[1] [INF] [NET] [Mar 30 10:01:40] netcam_start: now calling netcam_setup_html()
[1] [INF] [NET] [Mar 30 10:01:40] netcam_http_build_url: Netcam has flags: HTTP/1.0: 0 HTTP/1.1: 1 Keep-Alive ON.
[1] [INF] [NET] [Mar 30 10:01:40] netcam_http_build_url: Camera connect string is ''GET /html/cam_pic.php HTTP/1.1
Host: localhost
User-Agent: Motion-netcam/3.2.12+git20140228
Connection: Keep-Alive
Authorization: Basic cGk6JGNIIzg4MTM=
'' End of camera connect string.
[1] [INF] [NET] [Mar 30 10:01:40] netcam_http_request: about to try to connect, time #0
[1] [INF] [NET] [Mar 30 10:01:40] netcam_connect: with keepalive set, invalid socket.This could be first time, created a new one with fd 13
[1] [INF] [NET] [Mar 30 10:01:40] netcam_connect: SO_KEEPALIVE is OFF
[1] [INF] [NET] [Mar 30 10:01:40] netcam_connect: SO_KEEPALIVE set on socket.
[1] [INF] [NET] [Mar 30 10:01:40] netcam_connect: re-using socket 13 since keepalive is set.
[1] [INF] [NET] [Mar 30 10:01:40] netcam_read_first_header: Received first header ('HTTP/1.1 200 OK')
[1] [INF] [NET] [Mar 30 10:01:40] netcam_read_first_header: Received first header ('Server: nginx/1.6.2')
[1] [INF] [NET] [Mar 30 10:01:40] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:01:40] netcam_read_first_header: Received first header ('Date: Wed, 30 Mar 2016 14:01:40 GMT')
[1] [INF] [NET] [Mar 30 10:01:40] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:01:40] netcam_read_first_header: Received first header ('Content-Type: image/jpeg')
[1] [INF] [NET] [Mar 30 10:01:40] netcam_check_content_type: Content-type image/jpeg
[1] [NTC] [NET] [Mar 30 10:01:40] netcam_read_first_header: Non-streaming camera (keep-alive set)
[1] [INF] [NET] [Mar 30 10:01:40] netcam_read_first_header: Received first header ('Transfer-Encoding: chunked')
[1] [INF] [NET] [Mar 30 10:01:40] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:01:40] netcam_read_first_header: Received first header ('Connection: keep-alive')
[1] [INF] [NET] [Mar 30 10:01:40] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:01:40] netcam_read_first_header: Received first header ('')
[1] [INF] [NET] [Mar 30 10:01:40] netcam_read_first_header: No 'Connection: Keep-Alive' nor 'Connection: close' header received.
Motion continues unchanged.
[1] [NTC] [NET] [Mar 30 10:01:40] netcam_setup_html: connected, going on to read image.
[1] [DBG] [NET] [Mar 30 10:01:40] netcam_check_buffsize: expanding buffer from [0/0] to [0/4096] bytes.
[1] [DBG] [NET] [Mar 30 10:01:40] netcam_check_buffsize: expanding buffer from [3941/4096] to [3941/8192] bytes.
[1] [DBG] [NET] [Mar 30 10:01:40] netcam_check_buffsize: expanding buffer from [8164/8192] to [8164/12288] bytes.
[1] [DBG] [NET] [Mar 30 10:01:40] netcam_check_buffsize: expanding buffer from [12259/12288] to [12259/16384] bytes.
[1] [NTC] [NET] [Mar 30 10:01:45] netcam_read_html_jpeg: leaving netcam connected.
[1] [DBG] [NET] [Mar 30 10:01:45] netcam_output_message: Not a JPEG file: starts with 0x31 0x66
[1] [INF] [NET] [Mar 30 10:01:45] netcam_error_exit: netcam->jpeg_error 1
[1] [CRT] [NET] [Mar 30 10:01:45] netcam_start: libjpeg decompression failure on first frame - giving up!
[1] [DBG] [ALL] [Mar 30 10:01:45] motion_loop: vid_return_code 1
[1] [DBG] [ALL] [Mar 30 10:01:45] motion_loop: vid_return_code 1
[1] [DBG] [ALL] [Mar 30 10:01:45] motion_loop: vid_return_code 1
[1] [DBG] [ALL] [Mar 30 10:01:45] motion_loop: vid_return_code 1
[1] [DBG] [ALL] [Mar 30 10:01:45] motion_loop: vid_return_code 1
[1] [DBG] [ALL] [Mar 30 10:01:46] motion_loop: vid_return_code 1
[1] [DBG] [ALL] [Mar 30 10:01:46] motion_loop: vid_return_code 1
[1] [DBG] [EVT] [Mar 30 10:01:46] exec_command: Executing external command 'echo -n '0' >/var/www/html/FIFO1'
[1] [NTC] [ALL] [Mar 30 10:01:46] motion_loop: End of event 1
[1] [NTC] [ALL] [Mar 30 10:01:46] motion_loop: Thread exiting
[1] [NTC] [STR] [Mar 30 10:01:46] stream_stop: Closing motion-stream listen socket & active motion-stream sockets
[1] [NTC] [STR] [Mar 30 10:01:46] stream_stop: Closed motion-stream listen socket & active motion-stream sockets
[0] [NTC] [ALL] [Mar 30 10:01:47] main: Threads finished
[0] [NTC] [ALL] [Mar 30 10:01:48] main: Motion terminating
[0] [NTC] [ALL] [Mar 30 10:01:48] motion_remove_pid: Closing logfile (/home/pi/motion.log).
Code: Select all
[0] [NTC] [ALL] [Mar 30 10:13:38] motion_startup: Using log type (ALL) log level (ALL)
[0] [NTC] [ALL] [Mar 30 10:13:38] become_daemon: Motion going to daemon mode
[0] [NTC] [ALL] [Mar 30 10:13:38] motion_startup: Motion running as daemon process
[0] [NTC] [ENC] [Mar 30 10:13:38] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3670016 LIBAVFORMAT_BUILD 3670272
[0] [NTC] [ALL] [Mar 30 10:13:38] main: Thread 1 is from /etc/motion/motion.conf
[0] [NTC] [ALL] [Mar 30 10:13:38] main: Thread 1 is device: http://localhost/html/cam_pic.php input -1
[0] [NTC] [ALL] [Mar 30 10:13:38] main: Stream port 6643
[0] [NTC] [ALL] [Mar 30 10:13:38] main: Waiting for threads to finish, pid: 3308
[1] [NTC] [ALL] [Mar 30 10:13:38] motion_init: Thread 1 started , motion detection Enabled
[1] [ALR] [NET] [Mar 30 10:13:38] netcam_start: Network Camera thread starting... for url (http://localhost/html/cam_pic.php)
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_url_parse: Entry netcam_url_parse data http://localhost/html/cam_pic.php
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_url_parse: Parse case 0 data http://localhost/html/cam_pic.php
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_url_parse: Parse case 1 data http
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_url_parse: Parse case 6 data localhost
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_url_parse: Parse case 9 data /html/cam_pic.php
[1] [INF] [NET] [Mar 30 10:13:38] netcam_start: Netcam_http parameter 'off' converts to flags: HTTP/1.0: 1 HTTP/1.1: 0 Keep-Alive OFF.
[1] [INF] [NET] [Mar 30 10:13:38] netcam_start: now calling netcam_setup_html()
[1] [INF] [NET] [Mar 30 10:13:38] netcam_http_build_url: Netcam has flags: HTTP/1.0: 1 HTTP/1.1: 0 Keep-Alive OFF.
[1] [INF] [NET] [Mar 30 10:13:38] netcam_http_build_url: Camera connect string is ''GET /html/cam_pic.php HTTP/1.0
Host: localhost
User-Agent: Motion-netcam/3.2.12+git20140228
Connection: close
Authorization: Basic cGk6JGNIIzg4MTM=
'' End of camera connect string.
[1] [INF] [NET] [Mar 30 10:13:38] netcam_http_request: about to try to connect, time #0
[1] [INF] [NET] [Mar 30 10:13:38] netcam_connect: disconnecting netcam since keep-alive not set.
[1] [INF] [NET] [Mar 30 10:13:38] netcam_connect: with no keepalive, new socket created fd 12
[1] [INF] [NET] [Mar 30 10:13:38] netcam_connect: re-using socket 12 since keepalive is set.
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('HTTP/1.1 200 OK')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('Server: nginx/1.6.2')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('Date: Wed, 30 Mar 2016 14:13:38 GMT')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('Content-Type: image/jpeg')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_check_content_type: Content-type image/jpeg
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_read_first_header: Non-streaming camera (keep-alive not set)
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('Connection: close')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_check_content_length: Content-Length -1
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_read_first_header: Found Conn: close header ('Connection: close')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('')
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_setup_html: connected, going on to read image.
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_check_buffsize: expanding buffer from [0/0] to [0/4096] bytes.
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_check_buffsize: expanding buffer from [3974/4096] to [3974/8192] bytes.
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_check_buffsize: expanding buffer from [8070/8192] to [8070/12288] bytes.
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_check_buffsize: expanding buffer from [12166/12288] to [12166/16384] bytes.
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_read_html_jpeg: disconnecting netcam since keep-alive not set.
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_read_html_jpeg: leaving netcam connected.
[1] [INF] [NET] [Mar 30 10:13:38] netcam_init_jpeg: jpeg_error 0
[1] [INF] [NET] [Mar 30 10:13:38] netcam_get_dimensions: JFIF_marker NOT PRESENT ret 0
[1] [ALR] [NET] [Mar 30 10:13:38] netcam_handler_loop: Camera handler thread [2] started
[1] [INF] [NET] [Mar 30 10:13:38] netcam_connect: disconnecting netcam since keep-alive not set.
[1] [NTC] [ALL] [Mar 30 10:13:38] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] [INF] [NET] [Mar 30 10:13:38] netcam_connect: with no keepalive, new socket created fd 12
[1] [INF] [NET] [Mar 30 10:13:38] netcam_connect: re-using socket 12 since keepalive is set.
[1] [NTC] [STR] [Mar 30 10:13:38] http_bindsock: motion-stream testing : IPV4 addr: 127.0.0.1 port: 6643
[1] [NTC] [STR] [Mar 30 10:13:38] http_bindsock: motion-stream Bound : IPV4 addr: 127.0.0.1 port: 6643
[1] [NTC] [ALL] [Mar 30 10:13:38] motion_init: Started motion-stream server in port 6643 auth Disabled
[1] [WRN] [NET] [Mar 30 10:13:38] netcam_next: called with no data in buffer
[1] [DBG] [ALL] [Mar 30 10:13:38] motion_loop: vid_return_code 6
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('HTTP/1.1 200 OK')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('Server: nginx/1.6.2')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('Date: Wed, 30 Mar 2016 14:13:38 GMT')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('Content-Type: image/jpeg')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_check_content_type: Content-type image/jpeg
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_read_first_header: Non-streaming camera (keep-alive not set)
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('Connection: close')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_check_content_length: Content-Length -1
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_read_first_header: Found Conn: close header ('Connection: close')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('')
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_check_buffsize: expanding buffer from [0/0] to [0/4096] bytes.
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_check_buffsize: expanding buffer from [3974/4096] to [3974/8192] bytes.
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_check_buffsize: expanding buffer from [8070/8192] to [8070/12288] bytes.
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_check_buffsize: expanding buffer from [12166/12288] to [12166/16384] bytes.
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_read_html_jpeg: Calculated frame time 452102.593750
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_read_html_jpeg: disconnecting netcam since keep-alive not set.
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_read_html_jpeg: leaving netcam connected.
[1] [INF] [NET] [Mar 30 10:13:38] netcam_proc_jpeg: processing jpeg image - content length 0
[1] [INF] [NET] [Mar 30 10:13:38] netcam_connect: disconnecting netcam since keep-alive not set.
[1] [INF] [NET] [Mar 30 10:13:38] netcam_connect: with no keepalive, new socket created fd 12
[1] [INF] [NET] [Mar 30 10:13:38] netcam_connect: re-using socket 12 since keepalive is set.
[1] [INF] [NET] [Mar 30 10:13:38] netcam_init_jpeg: jpeg_error 0
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('HTTP/1.1 200 OK')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('Server: nginx/1.6.2')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('Date: Wed, 30 Mar 2016 14:13:38 GMT')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('Content-Type: image/jpeg')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_check_content_type: Content-type image/jpeg
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_read_first_header: Non-streaming camera (keep-alive not set)
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('Connection: close')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_check_content_length: Content-Length -1
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_read_first_header: Found Conn: close header ('Connection: close')
[1] [INF] [NET] [Mar 30 10:13:38] netcam_read_first_header: Received first header ('')
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_check_buffsize: expanding buffer from [0/0] to [0/4096] bytes.
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_check_buffsize: expanding buffer from [3974/4096] to [3974/8192] bytes.
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_check_buffsize: expanding buffer from [8070/8192] to [8070/12288] bytes.
[1] [DBG] [NET] [Mar 30 10:13:38] netcam_read_html_jpeg: Calculated frame time 458325.625000
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_read_html_jpeg: disconnecting netcam since keep-alive not set.
[1] [NTC] [NET] [Mar 30 10:13:38] netcam_read_html_jpeg: leaving netcam connected.
[1] [INF] [NET] [Mar 30 10:13:38] netcam_image_conv: jpeg_error 0
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 2 (0) Size: 122322 (1,0)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 3 (1) Size: 21 (52,125)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 4 (2) Size: 5710 (444,150)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 5 (3) Size: 103 (74,154)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 6 (4) Size: 31 (438,161)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 7 (5) Size: 102 (247,244)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 8 (6) Size: 401 (317,249)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 9 (7) Size: 28 (301,258)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 10 (8) Size: 1149 (263,259)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 11 (9) Size: 639 (95,263)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 12 (10) Size: 51 (177,302)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 13 (11) Size: 21 (178,316)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 14 (12) Size: 217 (107,322)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 15 (13) Size: 41 (62,328)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 16 (14) Size: 26 (438,343)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 17 (15) Size: 36 (78,357)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 18 (16) Size: 331 (75,371)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 19 (17) Size: 70 (25,374)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 20 (18) Size: 72 (52,377)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: Label: 21 (19) Size: 36 (40,379)
[1] [DBG] [ALL] [Mar 30 10:13:38] alg_labeling: 2 Labels found. Largest connected Area: 122322 Pixel(s). Largest Label: 20
[1] [INF] [NET] [Mar 30 10:13:39] netcam_proc_jpeg: processing jpeg image - content length 0
[1] [INF] [NET] [Mar 30 10:13:39] netcam_init_jpeg: jpeg_error 0
[1] [INF] [NET] [Mar 30 10:13:39] netcam_connect: disconnecting netcam since keep-alive not set.
[1] [INF] [NET] [Mar 30 10:13:39] netcam_connect: with no keepalive, new socket created fd 12
[1] [INF] [NET] [Mar 30 10:13:39] netcam_connect: re-using socket 12 since keepalive is set.
[1] [INF] [NET] [Mar 30 10:13:39] netcam_read_first_header: Received first header ('HTTP/1.1 200 OK')
[1] [INF] [NET] [Mar 30 10:13:39] netcam_read_first_header: Received first header ('Server: nginx/1.6.2')
[1] [INF] [NET] [Mar 30 10:13:39] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:13:39] netcam_read_first_header: Received first header ('Date: Wed, 30 Mar 2016 14:13:39 GMT')
[1] [INF] [NET] [Mar 30 10:13:39] netcam_check_content_length: Content-Length -1
[1] [INF] [NET] [Mar 30 10:13:39] netcam_read_first_header: Received first header ('Content-Type: image/jpeg')
[1] [INF] [NET] [Mar 30 10:13:39] netcam_check_content_type: Content-type image/jpeg
[1] [NTC] [NET] [Mar 30 10:13:39] netcam_read_first_header: Non-streaming camera (keep-alive not set)
[1] [INF] [NET] [Mar 30 10:13:39] netcam_read_first_header: Received first header ('Connection: close')
[1] [INF] [NET] [Mar 30 10:13:39] netcam_check_content_length: Content-Length -1
[1] [NTC] [NET] [Mar 30 10:13:39] netcam_read_first_header: Found Conn: close header ('Connection: close')
[1] [INF] [NET] [Mar 30 10:13:39] netcam_read_first_header: Received first header ('')
[1] [DBG] [NET] [Mar 30 10:13:39] netcam_read_html_jpeg: Calculated frame time 466017.156250
[1] [NTC] [NET] [Mar 30 10:13:39] netcam_read_html_jpeg: disconnecting netcam since keep-alive not set.
[1] [NTC] [NET] [Mar 30 10:13:39] netcam_read_html_jpeg: leaving netcam connected.
[1] [INF] [NET] [Mar 30 10:13:39] netcam_image_conv: jpeg_error 0
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 2 (0) Size: 32 (97,0)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 3 (1) Size: 93194 (105,0)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 4 (2) Size: 21 (219,10)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 5 (3) Size: 35 (337,10)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 6 (4) Size: 26 (166,11)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 7 (5) Size: 21 (362,14)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 8 (6) Size: 28 (132,15)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 9 (7) Size: 21 (269,15)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 10 (8) Size: 21 (348,15)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 11 (9) Size: 21 (254,17)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 12 (10) Size: 58 (260,19)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 13 (11) Size: 4408 (445,155)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 14 (12) Size: 1941 (129,256)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 15 (13) Size: 3479 (216,339)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 16 (14) Size: 114 (1,349)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 17 (15) Size: 193 (101,352)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 18 (16) Size: 71 (34,353)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 19 (17) Size: 122 (45,353)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 20 (18) Size: 26 (57,357)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 21 (19) Size: 93 (175,364)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 22 (20) Size: 51 (144,370)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: Label: 23 (21) Size: 106 (83,376)
[1] [DBG] [ALL] [Mar 30 10:13:39] alg_labeling: 3 Labels found. Largest connected Area: 93194 Pixel(s). Largest Label: 22
[1] [INF] [NET] [Mar 30 10:13:39] netcam_proc_jpeg: processing jpeg image - content length 0
[1] [INF] [NET] [Mar 30 10:13:39] netcam_init_jpeg: jpeg_error 0
[1] [INF] [NET] [Mar 30 10:13:39] netcam_connect: disconnecting netcam since keep-alive not set.
[1] [INF] [NET] [Mar 30 10:13:39] netcam_connect: with no keepalive, new socket created fd 12
[1] [INF] [NET] [Mar 30 10:13:39] netcam_connect: re-using socket 12 since keepalive is set.
There is no built in audio support as such. However, some users have used the macros to trigger a simultaneous recording when a video capture starts and then 'box' the audio during conversion to mp4.Patrick260284 wrote:Hey guys. Don´t know if this has been asked before, but is it possible to sync the video-stream to an audio device?
I have a daffodil usb soundcard attached (configured and working) with a microphone and would like to have constant audio in my stream.
This doesn't look like RPi Cam stuff. I think you may have posted your question in the wrong forum.ScheissSchiesser wrote:Hi there. I am hoping somebody can help me clarify an error I get when I setin the motion configuration file. It looks like it is having trouble reading or converting the jpeg image from the stream?Code: Select all
netcam_keepalive on
Some users have used a PIR to trigger captures. This is fairly easy to do with a bit of python.midhun wrote:Hello all,
Before I ask my question, this is an awesome piece of code. Great project! Kudos to the devs.
Also I am a total NOOB and my following question might be stupid but please excuse me.
My question is that, to detect the motion, why isnt a Motion Sensor (PIR) being used? That would detect all the movements rights?
When you do a remove the script tries to preserve any media files that exist by moving them to your home directory. That is why the user media folder was created. It is not used operationally wen you install again. That is always under the /var/www tree.Max1968 wrote:Followup to my previous message "Installation issues"
I just did a clean install of Jessie, and right after this i did the installation using install.sh (previously was using the "old" installation method). Configuration parameters suggested by the script was "html" for the subdirectory which i did not change, so i had raspimjpeg running from ~www-data/html/html.
Thus i removed raspimjpeg again using the "remove.sh" script, reinstalled it again, this time using "" as subdirectory. Now the web interface is working fine (directly in www-data root), but i have a new folder ~root/media/media where the media files are stored. Why was that folder created, especially as it seems still ~www-data/media is used for recordings and such ?
After this i started the update process for testing, using "update.sh", receiving a message "nothing to update" - But then got the configuration dialog followed by an error message "./install.sh: line 125: rpicamdirEsc: command not found" and a request to reboot although nothing was changed, not even installed packages - Why that ?
Code: Select all
root@EGDrivewayCamera:~/RPi_Cam_Web_Interface# ./update.sh
Local : a435a4159d99f20e96a5b6f8aa15c0c4298ffeb0
Remote: 074a9a2fa771fdd6b2d59eee8c95bbe32f74d478
lqqqqqqqqUpdate messageqqqqqqqqqqqk
x Commits don't match. We update. x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/silvanmelchior/RPi_Cam_Web_Interface
* branch master -> FETCH_HEAD
a435a41..074a9a2 master -> origin/master
Updating a435a41..074a9a2
error: Your local changes to the following files would be overwritten by merge:
install.sh
Please, commit your changes or stash them before you can merge.
Aborting
***************
*** ABORTED ***
***************
An error occurred. Exiting...
root@EGDrivewayCamera:~/RPi_Cam_Web_Interface#
Code: Select all
raspimjpeg: no process found
php: no process found
motion: no process found
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2-bin apache2-data apache2-utils gpac-modules-base liba52-0.7.4 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap libasyncns0 libavcodec56 libavdevice55 libavfilter5 libavformat56 libavresample2 libavutil54 libcaca0
libcdio-cdda1 libcdio-paranoia1 libcdio13 libdc1394-22 libdirectfb-1.2-9 libdrm-amdgpu1 libdrm-freedreno1 libdrm-nouveau2
libdrm-radeon1 libelf1 libfaad2 libflac8 libfreenect0.2 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libglu1-mesa
libgpac3 libgsm1 libice6 libjack-jackd2-0 libllvm3.7 liblua5.1-0 libmad0 libmp3lame0 libmysqlclient18 libogg0 libonig2
libopencv-core2.4 libopencv-imgproc2.4 libopenjpeg5 libopus0 liborc-0.4-0 libperl4-corelibs-perl libpulse0 libqdbm14
libraw1394-11 libschroedinger-1.0-0 libsdl1.2debian libsm6 libsndfile1 libspeex1 libswscale3 libtheora0 libtxc-dxtn-s2tc0
libva1 libvdpau1 libvorbis0a libvorbisenc2 libvpx1 libx11-xcb1 libx264-142 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
libxcb-present0 libxcb-sync1 libxdamage1 libxfixes3 libxi6 libxshmfence1 libxtst6 libxv1 libxvidcore4 libxxf86vm1 lsof
mysql-common php5-common php5-json php5-readline ssl-cert va-driver-all vdpau-va-driver x11-common
Suggested packages:
www-browser apache2-doc apache2-suexec-pristine apache2-suexec-custom php-pear frei0r-plugins jackd2 opus-tools pulseaudio
libraw1394-doc speex vdpau-driver mysql-client postgresql-client php5-user-cache openssl-blacklist
Recommended packages:
ffmpeg
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils gpac gpac-modules-base liba52-0.7.4 libapache2-mod-php5 libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libasyncns0 libav-tools libavcodec56 libavdevice55 libavfilter5 libavformat56
libavresample2 libavutil54 libcaca0 libcdio-cdda1 libcdio-paranoia1 libcdio13 libdc1394-22 libdirectfb-1.2-9
libdrm-amdgpu1 libdrm-freedreno1 libdrm-nouveau2 libdrm-radeon1 libelf1 libfaad2 libflac8 libfreenect0.2 libgl1-mesa-dri
libgl1-mesa-glx libglapi-mesa libglu1-mesa libgpac3 libgsm1 libice6 libjack-jackd2-0 libllvm3.7 liblua5.1-0 libmad0
libmp3lame0 libmysqlclient18 libogg0 libonig2 libopencv-core2.4 libopencv-imgproc2.4 libopenjpeg5 libopus0 liborc-0.4-0
libperl4-corelibs-perl libpulse0 libqdbm14 libraw1394-11 libschroedinger-1.0-0 libsdl1.2debian libsm6 libsndfile1
libspeex1 libswscale3 libtheora0 libtxc-dxtn-s2tc0 libva1 libvdpau1 libvorbis0a libvorbisenc2 libvpx1 libx11-xcb1
libx264-142 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxdamage1 libxfixes3 libxi6
libxshmfence1 libxtst6 libxv1 libxvidcore4 libxxf86vm1 lsof motion mysql-common php5 php5-cli php5-common php5-json
php5-readline ssl-cert va-driver-all vdpau-va-driver x11-common zip
0 upgraded, 99 newly installed, 0 to remove and 90 not upgraded.
Need to get 35.8 MB of archives.
After this operation, 122 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
libice6 libsm6 libxi6 libxtst6 libxfixes3 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-sync1 libxdamage1
libxxf86vm1 mysql-common libmysqlclient18 libxv1 libgpac3 gpac-modules-base gpac motion
E: There are problems and -y was used without --force-yes
awk: cannot open /etc/apache2/ports.conf (No such file or directory)
awk: cannot open /etc/apache2/ports.conf (No such file or directory)
sudo: htpasswd: command not found
mv: cannot move ‘etc/apache2/sites-available/raspicam.conf’ to ‘/etc/apache2/sites-available/raspicam.conf’: No such file or d
irectory
ln: failed to create symbolic link ‘/etc/apache2/sites-enabled/raspicam.conf’: No such file or directory
sed: can't read /etc/apache2/conf.d/other-vhosts-access-log: No such file or directory
Failed to restart apache2.service: Unit apache2.service failed to load: No such file or directory.
^CYour custom raspimjpg backed up at /etc/raspimjpeg.bak
sed: can't read /etc/motion/motion.conf: No such file or directory
sed: can't read /etc/motion/motion.conf: No such file or directory
sed: can't read /etc/motion/motion.conf: No such file or directory
sed: can't read /etc/motion/motion.conf: No such file or directory
There is a setting for timelapse duration under camera settings on main page.You can also set it using the command 'tv n' where n is the duration in 0.1 sec units; e.g. tv 50 sets interval to 5 seconds.errikos wrote:Hello,
How can you set the duration of the timelapse? it is recording for a predeined time or stopse when syou press timelapse stop?
raspizip.sh is a shell script used by the web server for zipping files together for download.erwang01 wrote:Hello,
Does anyone know what ./raspizip.sh does?
Thanks
That would seem to imply that something in the period change at 10AM is stopping the time lapse. I am not aware of md 1 or ca commands doing that.slabua wrote:Are there any known issues related to the timelapse feature (unless I'm setting it up wrong)?
I have set on the scheduler to enable the timelapse from 8am to 8pm, at 1 frame per minute, but I only get 119 frames saved (2 hours, from 8 to 10am).
Strange, the log says it's keeping recording a frame every minute without issues.btidey wrote:That would seem to imply that something in the period change at 10AM is stopping the time lapse. I am not aware of md 1 or ca commands doing that.slabua wrote:Are there any known issues related to the timelapse feature (unless I'm setting it up wrong)?
I have set on the scheduler to enable the timelapse from 8am to 8pm, at 1 frame per minute, but I only get 119 frames saved (2 hours, from 8 to 10am).
Check the scheduler log around the 10AM time period to see what the activity was. There should be the regular time lapse captures. Is there a time lapse stop there or does the time lapse just stop?
You're probably right. Do you know of a good support forum for "motion?"btidey wrote:This doesn't look like RPi Cam stuff. I think you may have posted your question in the wrong forum.ScheissSchiesser wrote:Hi there. I am hoping somebody can help me clarify an error I get when I setin the motion configuration file. It looks like it is having trouble reading or converting the jpeg image from the stream?Code: Select all
netcam_keepalive on