Re: RPi Cam Web Interface
In my last post I'd left Pi out filming after a stop start and don't reboot attempt. I powered it down late that evening, my video's and pictures luckily downloaded in my Pc 's browser. Sunday morning re-power just to check that I wasn't leaving anything behind before formatting. I spent the rest of Sunday trying to rescue my week old sd card, now formatted but won't accept files.
Luckily I have other cards, installed pi-pan, rebooted, same old, raspi, sudo apt-get and finished it off with ./install, Rpi- error re-start etc on reboot, raspi enable camera, camera enabled on reboot, but no buttons, chmod, buttons now work.
Installed Pipe, redirected Servoblaster files, reboot, no direction buttons working, started Crome, pipan.pipe in the list, re-installed pi-pan, rebooted, checked Servoblaster, no feed on Gpio's, renamed servo_off to servo_on in /html, opened Pipan.pipe to find it had no contents, yes pipan.pipe had no contents, hence the buttons didn't work. reboot, no buttons, open pipan.pipe and re-direct it
Reboot, now the camera is steerable on an iphone and ipad by touch (I've never had that working before), just need to remember where I can set the minimum movement down to 1 and I'd call that a super install. Well done, impressed as usual.
Luckily I have other cards, installed pi-pan, rebooted, same old, raspi, sudo apt-get and finished it off with ./install, Rpi- error re-start etc on reboot, raspi enable camera, camera enabled on reboot, but no buttons, chmod, buttons now work.
Installed Pipe, redirected Servoblaster files, reboot, no direction buttons working, started Crome, pipan.pipe in the list, re-installed pi-pan, rebooted, checked Servoblaster, no feed on Gpio's, renamed servo_off to servo_on in /html, opened Pipan.pipe to find it had no contents, yes pipan.pipe had no contents, hence the buttons didn't work. reboot, no buttons, open pipan.pipe and re-direct it
Reboot, now the camera is steerable on an iphone and ipad by touch (I've never had that working before), just need to remember where I can set the minimum movement down to 1 and I'd call that a super install. Well done, impressed as usual.
Re: RPi Cam Web Interface
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!
The raspimjpeg process can best be restarted via the stop.sh and start.sh scripts in the install folder.
The scheduler has settings to do purging and maintain the disk capacity. I haven't manually deleted images from one of my cameras in over a year.
-
- Posts: 2
- Joined: Wed Feb 10, 2016 10:15 am
Re: RPi Cam Web Interface
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.
I have a daffodil usb soundcard attached (configured and working) with a microphone and would like to have constant audio in my stream.
-
- Posts: 9
- Joined: Wed Mar 23, 2016 2:48 pm
Re: RPi Cam Web Interface
Hi there. I am hoping somebody can help me clarify an error I get when I set in the motion configuration file. It looks like it is having trouble reading or converting the jpeg image from the stream?
Before you read through this, here are the questions I am trying to answer:
netcam_keepalive on
netcam_keepalive off
I apologize for the lengthy logs but I am not sure what is relevant.
Code: Select all
netcam_keepalive on
Before you read through this, here are the questions I am trying to answer:
- Why does cause this error (which stops motion from ever getting any image data)?
Code: Select all
netcam_keepalive on
- Should I not be using keepalive for the connection?
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.
Last edited by ScheissSchiesser on Wed Mar 30, 2016 4:03 pm, edited 1 time in total.
Re: RPi Cam Web Interface
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?
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?
Re: RPi Cam Web Interface
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.
There is a difficulty in getting good sync particularly if the video buffer is used to get pre-trigger capture as the amount of time in the buffer can vary.
Re: RPi Cam Web Interface
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
Re: RPi Cam Web Interface
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?
The reasons for using the camera / analysis to do the baseline motion detection are
no extra sensor needed
range of detection
masking of areas to focus detection on where it is needed
flexibility in tweaking detection parameters to suit purpose
Re: RPi Cam Web Interface
Installation script issues
Hi,
I've been using raspimjpeg on 6 different pi's for more than a year now, and i was very very happy about it. However, with the recent changes to the installation script(s) I'm facing severe issues, and today it completely killed one of my pi's so that i need to reinstall it from scratch. What exactly is the recommended installation procedure / base OS ?
The issues I had was:
- Update failing with some weird message i should commit my changes first (i didnt do any changes) - This happened several times, usually i just removed the raspimjpeg installation with the install script and reinstalled, worked fine after
- Recently completely inconsistent behaviour of the install script. On the same pi running wheezy i did a install followed by an uninstall and a deletion of the git directory. The first time it was installed into subfolder html, the second time it was installed into the root www directory
- Today the installation script tried to do a chown www-data:www-data of my media directory (why is it doing this at all ?), but due to some errors somewhere it did this on / instead, and now not only my pi itself but also some mounted network drives have severe ownership issues... This was on a pi running jessie.
Due to these issues recently i took a look at pikrellcam, so far it looks good. Thus i will do a fresh install of both, and go on with whatever runs more smooth now...
Hi,
I've been using raspimjpeg on 6 different pi's for more than a year now, and i was very very happy about it. However, with the recent changes to the installation script(s) I'm facing severe issues, and today it completely killed one of my pi's so that i need to reinstall it from scratch. What exactly is the recommended installation procedure / base OS ?
The issues I had was:
- Update failing with some weird message i should commit my changes first (i didnt do any changes) - This happened several times, usually i just removed the raspimjpeg installation with the install script and reinstalled, worked fine after
- Recently completely inconsistent behaviour of the install script. On the same pi running wheezy i did a install followed by an uninstall and a deletion of the git directory. The first time it was installed into subfolder html, the second time it was installed into the root www directory
- Today the installation script tried to do a chown www-data:www-data of my media directory (why is it doing this at all ?), but due to some errors somewhere it did this on / instead, and now not only my pi itself but also some mounted network drives have severe ownership issues... This was on a pi running jessie.
Due to these issues recently i took a look at pikrellcam, so far it looks good. Thus i will do a fresh install of both, and go on with whatever runs more smooth now...
Re: RPi Cam Web Interface
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 ?
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 ?
Re: RPi Cam Web Interface
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 ?
When you do an update it first tries to fetch any files from the github repository then it runs install.sh. You got the message nothing to update as nothing had changed on github. It still runs the install.sh in case you wan to change something. If you just want to rerun the installer (to change parameters for example then you can just run install.sh direct.
I think the error you got on line 125 was caused by an extra space character in that script. I have corrected that now.
The reboot request is always done at the end of the script just a way of ensuring that all changes are applied OK including things like autostart. Actually most of the time you can just do a ./start.sh to start up at this point and avoid any reboot.
Re: RPi Cam Web Interface
OK, thanks - However as stated in my first comment above it did not only try to move existing media files (the folder ~www-data/media in my case is always empty as I move files immediately to a network share) to ~root/media/media, but also tried to change ownership of all files on my pi to www-data:www-data ("chown -R www-data:www-data /") - this should never happen. I guess some variable in the script that should contain the correct path was not set, and thus "/" was used.
Furthermore on the same jessie pi I installed from scratch now i tried to do a "update.sh", results below - I did not do any changes to the install.sh script, thus there seems to be an issue somewhere as well:
Furthermore on the same jessie pi I installed from scratch now i tried to do a "update.sh", results below - I did not do any changes to the install.sh script, thus there seems to be an issue somewhere as well:
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#
Re: RPi Cam Web Interface
I am tryind to install it in Jessie Lite, RPi B (the first version 256mb)
After the interface i have the following error
Can you please help?
Also is there a ready image to use? This would make it even easier...
Thank you !!

Edit:
Retried, I view a blank page when I enter the IP...
./start.sh shows message
motion: no process found
Then when I go to the web page, the rpi stops responding...
Edit:
Stupid power supply issues.
Amazing piece of software!!
Thank you!!
After the interface i have the following error
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
Can you please help?
Also is there a ready image to use? This would make it even easier...
Thank you !!



Edit:
Retried, I view a blank page when I enter the IP...
./start.sh shows message
motion: no process found
Then when I go to the web page, the rpi stops responding...
Edit:
Stupid power supply issues.
Amazing piece of software!!
Thank you!!
Re: RPi Cam Web Interface
Hello,
How can you set the duration of the timelapse? it is recording for a predeined time or stopse when syou press timelapse stop?
How can you set the duration of the timelapse? it is recording for a predeined time or stopse when syou press timelapse stop?
Re: RPi Cam Web Interface
Hello,
Does anyone know what ./raspizip.sh does?
Thanks
Does anyone know what ./raspizip.sh does?
Thanks
Re: RPi Cam Web Interface
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?
Re: RPi Cam Web Interface
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
Live annotation
Hello,
Last week I tried upgrading from 6.0.3 to 6.0.23 (the latest at that time.) I use a python script to change the annotation by appending the fifo file with an 'an' line, several times a second. This worked well in .3, but after the update it seems to interfere a lot with the system; very often annotation lines are mixed with 'ca 1 / ca 0' lines, so the motion is often not captured or it does not stop recording and obviously the annotation looks crap.
I have tried this with and without upgrading raspimjpeg (the whole system in fact), so I doubt the problem lies there. Is there a way to check if it is safe to write to the FIFO, or can the annotation be changed in another way? Perhaps a 2nd fifo to feed instructions to the RPI CWI system, so it can pass the instructions along without them colliding with the internal commands?
Thanks in advance,
Fj.
Last week I tried upgrading from 6.0.3 to 6.0.23 (the latest at that time.) I use a python script to change the annotation by appending the fifo file with an 'an' line, several times a second. This worked well in .3, but after the update it seems to interfere a lot with the system; very often annotation lines are mixed with 'ca 1 / ca 0' lines, so the motion is often not captured or it does not stop recording and obviously the annotation looks crap.
I have tried this with and without upgrading raspimjpeg (the whole system in fact), so I doubt the problem lies there. Is there a way to check if it is safe to write to the FIFO, or can the annotation be changed in another way? Perhaps a 2nd fifo to feed instructions to the RPI CWI system, so it can pass the instructions along without them colliding with the internal commands?
Thanks in advance,
Fj.
Re: RPi Cam Web Interface
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).
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).
- Attachments
-
- Screenshot from 2016-04-11 21-49-12.png (21.8 KiB) Viewed 6696 times
Salvatore La Bua - www.slblabs.com
DICGIM - University of Palermo, Italy
DICGIM - University of Palermo, Italy
Re: RPi Cam Web Interface
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?
Re: RPi Cam Web Interface
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?
I checked the storage, and the files are indeed there.
The problem seems to be here then? The conversion seems to apply only to those 119 or 120 frames, leaving the remaining pictures orphaned.
Salvatore La Bua - www.slblabs.com
DICGIM - University of Palermo, Italy
DICGIM - University of Palermo, Italy
-
- Posts: 17
- Joined: Wed Apr 13, 2016 1:25 pm
Re: RPi Cam Web Interface
Hi guys,
I'm trying to figure out how the brightness of my shot changes depending on the initial light levels when the camera is switched on. I've tried setting the shutter speed at "50000", exposure to "off", ISO to "100". It doesn't change throughout the shot which is good, but every time I switch the camera off and on again, the brightness of the shot is different.
How can I set it to never change?
I'm trying to figure out how the brightness of my shot changes depending on the initial light levels when the camera is switched on. I've tried setting the shutter speed at "50000", exposure to "off", ISO to "100". It doesn't change throughout the shot which is good, but every time I switch the camera off and on again, the brightness of the shot is different.
How can I set it to never change?
Re: RPi Cam Web Interface
Another strange thing is this: at some point after 10.00, I manually stopped and restarted the timelapse. It has now continued beyond the 16.00 slot, without interruption. The preview icon currently shows a total of 212 frames (up to the slot of 16.00, indeed).
I think for some reason, at each scheduler slot, something happens with the preview, or the naming of files, though, each image gets saved on disk as per scheduler log.
I think for some reason, at each scheduler slot, something happens with the preview, or the naming of files, though, each image gets saved on disk as per scheduler log.
Salvatore La Bua - www.slblabs.com
DICGIM - University of Palermo, Italy
DICGIM - University of Palermo, Italy
-
- Posts: 9
- Joined: Wed Mar 23, 2016 2:48 pm
Re: RPi Cam Web Interface
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
-
- Posts: 9
- Joined: Wed Mar 23, 2016 2:48 pm
Re: RPi Cam Web Interface
Can somebody help me figure out why my motionPars.json file is not getting populated with the motion settings? This causes me to be unable to view/change the motion settings via the web interface.
I am having trouble determining which part of the RPi-Cam-Web-Interface code is responsible for doing that. It is probably something in the motion.php file, but I am having trouble understanding it. It might help to debug this problem if I could figure that out.
As it stands now, motionPars.json is an empty file. Bringing up the motion.php page via clicking on the "motion settings" button shows a blank page (no table), presumably because the motionPars.json file contains no data.
Any help/hints would be appreciated.
I am having trouble determining which part of the RPi-Cam-Web-Interface code is responsible for doing that. It is probably something in the motion.php file, but I am having trouble understanding it. It might help to debug this problem if I could figure that out.
As it stands now, motionPars.json is an empty file. Bringing up the motion.php page via clicking on the "motion settings" button shows a blank page (no table), presumably because the motionPars.json file contains no data.
Any help/hints would be appreciated.