jussi24
Posts: 64
Joined: Fri Jul 26, 2013 11:30 am

snapshot enumeration

Wed May 28, 2014 9:27 am

Hi,
it seems there's no way to tell raspimjpeg not to enumerate taken snaphots. In the config file there's only the chance to give a printf-format string but the order of the inserted variables is unchangeable with this procedure.

Now I noticed that my raspi crashed after it has taken exactly 9999 images. Seems as if the 10.000th picture produced an deathly error (no ssh, no life sign, I had to power cycle).

Beside that I want to get rid of the number because having the date string in the file name is a kind of ordering itself. So the number becomes redundant and useless.

Is there a way to have this?
Thanks!

StudioDubio
Posts: 3
Joined: Wed May 28, 2014 1:23 pm

Re: RPi Cam Web Interface

Wed May 28, 2014 1:54 pm

partach wrote: - can not use synology surveillance with this setup. It will not connect to port 80 and use cam.jpg.
I also ran into this problem and need to know how to fix this issue. I'm using the latest Synology Surveillance Station 6 (beta) and want to add the RPi Cam but it can't connect. Anyone can help?

tigroz
Posts: 7
Joined: Fri Jan 31, 2014 4:26 pm

Re: RPi Cam Web Interface

Wed May 28, 2014 4:10 pm

hi,
im trying to set the Pi-Light (OpenElectrons) without the Pi-Pan (OpenElectrons)
i've just followed the directions on the wiki http://elinux.org/RPi-Cam-Web-Interface
i can't switch the leds on or of trough the web interface or command line, if i use command : python ./pilight.py 255 255 255 the leds light up what i am missing?

m4rky
Posts: 37
Joined: Wed Jul 04, 2012 8:57 pm

Re: RPi Cam Web Interface

Thu May 29, 2014 11:16 am

ludespeedny wrote:Try the post on this page: http://www.raspberrypi.org/forums/viewt ... 60#p500460
m4rky wrote:
slabua wrote: In that case, you need to edit motion.conf adding the directive:

Code: Select all

netcam_userpass username:password
I am trying to put some security on my camera feed so it's not open to everyone on the internet.
I have edited the motion.conf file as above with a username and password but I never get prompted to enter it when I access the web page, either locally or over the net?

Any ideas?
Thanks, the .htaccess and Apache changes work for me :) I did see that post but assumed that you could use .htaccess method or the motion.conf change.

ludespeedny
Posts: 103
Joined: Mon Oct 01, 2012 6:55 pm

Re: RPi Cam Web Interface

Thu May 29, 2014 4:00 pm

Does anyone use a different preview or index page? I would like to see different examples in use.

dangkiet000
Posts: 6
Joined: Mon Jul 29, 2013 3:35 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 1:03 am

I installed RPi Cam Web Interface completely and It's ok.
I want to embed my webpage and I use webserver WebIOPI to controll I/O.
However, when I instruct on wiki RPi-Cam-Web-Interface :

Code: Select all

[b]Embed live-preview in own homepage[/b]

    Navigate to /var/www
    Remove all files except cam_pic.php, script_min.js and FIFO
    Copy your own homepage into /var/www
    Change your index.html/php: Add script_min.js (<script src="script_min.js"></script> in header)
    Change your index.html/php: Add [i]onload="setTimeout('init();', 100);"[/i] to body
    Change your index.html/php: Add <img id="mjpeg_dest"> at the place where you want the live-preview.

The size can be changed either as parameter in /etc/rc.local or with CSS. To add further features (change settings, record images/videos), study the existing homepage. 
I changed link webiopi index.html : doc-root = /var/www/ ( I think this step not wrong )
And I tested with webiopi index.html :

Code: Select all

<!DOCTYPE html>
<html>
  <head>
    <title>RPi Cam Control</title>
    <script src="script_min.js"></script>
  </head>
  <body onload="setTimeout('init();', 100);">
    <center>
      <h1>RPi Cam Control</h1>
      <div><img id="mjpeg_dest"></div>
  </body>
</html>
I'm sure I removed all files except cam_pic.php, script_min.js and FIFO .
Result

if I type in 192.168.1.222:8020 => I see the WebIOPi page without video stream :x (192.168.1.222 = my ip address of Pi)
If I type 192.168.1.222 in my web browser(firefox) => I see the RPI Cam page and video stream correspond webiopi index.html :(
How can I stop stream video on 192.168.1.222 and stream video on 192.168.1.222:8020 (webserver WebIOPI) ?
Can you help me ,please ? :( :( I don't sleep 2 nights :cry: :cry: :cry:

nhanlt187
Posts: 5
Joined: Thu Mar 06, 2014 2:52 am

Re: RPi Cam Web Interface

Fri May 30, 2014 2:01 am

Anyone can use raspimjpeg support 90 fps? :D

0lly
Posts: 77
Joined: Sun Mar 02, 2014 5:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 4:55 am

dangkiet000 wrote: How can I stop stream video on 192.168.1.222 and stream video on 192.168.1.222:8020 (webserver WebIOPI) ?
Can you help me ,please ? :( :( I don't sleep 2 nights :cry: :cry: :cry:
Have you edited /etc/apache2/sites-available/default ?

Code: Select all

<VirtualHost *:80>
	ServerAdmin webmaster@localhost

	DocumentRoot /var/www
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
	</Directory>

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>

	ErrorLog ${APACHE_LOG_DIR}/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	SetEnvIf Request_URI "^/cam_pic.php$|^/status_mjpeg.php$" dontlog
	CustomLog ${APACHE_LOG_DIR}/access.log common env=!dontlog
</VirtualHost>


dangkiet000
Posts: 6
Joined: Mon Jul 29, 2013 3:35 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 6:33 am

Have you edited /etc/apache2/sites-available/default ?

Code: Select all

<VirtualHost *:80>
	ServerAdmin webmaster@localhost

	DocumentRoot /var/www
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
	</Directory>

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>

	ErrorLog ${APACHE_LOG_DIR}/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	SetEnvIf Request_URI "^/cam_pic.php$|^/status_mjpeg.php$" dontlog
	CustomLog ${APACHE_LOG_DIR}/access.log common env=!dontlog
</VirtualHost>

[/quote]
I'm sorry but How do I have to edit ?
My " /etc/apache2/sites-available/default " like above, no different .

0lly
Posts: 77
Joined: Sun Mar 02, 2014 5:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 1:24 pm

You need to use Port 8020 then edit

Code: Select all

<VirtualHost *:80>
to

Code: Select all

<VirtualHost *:8020>

Dogbyte
Posts: 9
Joined: Fri Mar 22, 2013 4:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 1:36 pm

ive got everything installed, changed the port number i use, added security ect.... but i have not figured out how to get the motion detection to work. tried searching this thread and gave up. I see the threshold setting in the motion.conf, but i didnt want to risk jacking it up. when i run start motion detection, i can walk directly in front of the camera, and it doesnt record anything. i'd like to find out where the settings are to adjust the sensitivity, i already see the zones portion on the index page, and also would probably need to adjust the delay timeout for how long video records after a detection is made.

this is a great project, its slick.

0lly
Posts: 77
Joined: Sun Mar 02, 2014 5:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 2:26 pm

Dogbyte wrote:I see the threshold setting in the motion.conf, but i didnt want to risk jacking it up.
Motion detection works for me.
in my motion.conf

Code: Select all

############################################################
# Motion Detection Settings:
############################################################

# Threshold for number of changed pixels in an image that
# triggers motion detection (default: 1500)
threshold 500
i dont want convert video
my /etc/raspimjpeg

Code: Select all

#
# File Locations
#
# preview path: add %d for number
# image+video path: add %d for number, year, month, day, hour, minute, second
#
preview_path /dev/shm/mjpeg/cam.jpg
image_path /var/www/media/image_%04d_%04d%02d%02d_%02d%02d%02d.jpg
video_path /var/www/media/video_%04d_%04d%02d%02d_%02d%02d%02d.h264
status_file /var/www/status_mjpeg.txt
control_file /var/www/FIFO
what is your firmwareversion ?

Dogbyte
Posts: 9
Joined: Fri Mar 22, 2013 4:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 3:13 pm

0lly wrote:
Dogbyte wrote:I see the threshold setting in the motion.conf, but i didnt want to risk jacking it up.
Motion detection works for me.
in my motion.conf

Code: Select all

############################################################
# Motion Detection Settings:
############################################################

# Threshold for number of changed pixels in an image that
# triggers motion detection (default: 1500)
threshold 500
i dont want convert video
my /etc/raspimjpeg

Code: Select all

#
# File Locations
#
# preview path: add %d for number
# image+video path: add %d for number, year, month, day, hour, minute, second
#
preview_path /dev/shm/mjpeg/cam.jpg
image_path /var/www/media/image_%04d_%04d%02d%02d_%02d%02d%02d.jpg
video_path /var/www/media/video_%04d_%04d%02d%02d_%02d%02d%02d.h264
status_file /var/www/status_mjpeg.txt
control_file /var/www/FIFO
what is your firmwareversion ?

my threshold is still at the default 1500, but i thought walking up close to the cam would have satisfied that...so i think the issue is elsewhere.

one thing i have thought of, could it be the distro that im running? I remember the instructions say Raspian, but i remember the distro i downloaded way back says raspian-wheezy, i assumed that was the same....but now im not sure.



/opt/vc/bin/vcgencmd version
Jan 6 2014 21:16:43
Copyright (c) 2012 Broadcom

~ $ uname -a
Linux house 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l GNU/Linux
version b00bb3ae73bd2799df0e938b7a5f17f45303fb53 (clean) (release)

0lly
Posts: 77
Joined: Sun Mar 02, 2014 5:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 3:31 pm

my version
uname -a
Linux rpi2 3.10.36+ #662 PREEMPT Fri Apr 4 18:31:16 BST 2014 armv6l GNU/Linux

/opt/vc/bin/vcgencmd version
Apr 4 2014 19:06:18
Copyright (c) 2012 Broadcom
version 7072433f2b6e5e7b717073969db662e991638978 (clean) (release)
try

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update 8660fe5152f6353dec61422808835dbcb49fc8b2
go to http://www.raspberrypi.org/forums/viewt ... 43&t=63276
and update raspimjpeg

Dogbyte
Posts: 9
Joined: Fri Mar 22, 2013 4:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 3:37 pm

0lly wrote:my version
uname -a
Linux rpi2 3.10.36+ #662 PREEMPT Fri Apr 4 18:31:16 BST 2014 armv6l GNU/Linux

/opt/vc/bin/vcgencmd version
Apr 4 2014 19:06:18
Copyright (c) 2012 Broadcom
version 7072433f2b6e5e7b717073969db662e991638978 (clean) (release)
try

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update 8660fe5152f6353dec61422808835dbcb49fc8b2
go to http://www.raspberrypi.org/forums/viewt ... 43&t=63276
and update raspimjpeg

when you say update raspimjpeg, do you mean go through the git clone/installer.sh process again in step 4?

0lly
Posts: 77
Joined: Sun Mar 02, 2014 5:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 3:39 pm

yes,step 4 ;)

Dogbyte
Posts: 9
Joined: Fri Mar 22, 2013 4:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 4:30 pm

Do i have to completely remove the install first? if i run step 4 again, wont it try to overwrite the interface directory?

0lly
Posts: 77
Joined: Sun Mar 02, 2014 5:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 5:03 pm

or try

Code: Select all

git pull origin master

Dogbyte
Posts: 9
Joined: Fri Mar 22, 2013 4:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 5:10 pm

0lly wrote:or try

Code: Select all

git pull origin master
~/RPi_Cam_Web_Interface $ git pull origin master
From https://github.com/silvanmelchior/RPi_Cam_Web_Interface
* branch master -> FETCH_HEAD
Already up-to-date.


man sorry to be such a pain.

User avatar
algorithm
Posts: 198
Joined: Mon Nov 25, 2013 9:09 pm
Location: Flatland

Re: RPi Cam Web Interface

Fri May 30, 2014 5:42 pm

Dogbyte wrote:man sorry to be such a pain.

Code: Select all

No manual entry for sorry
No manual entry for to
No manual entry for be
No manual entry for such
No manual entry for a
No manual entry for pain

Dogbyte
Posts: 9
Joined: Fri Mar 22, 2013 4:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 5:46 pm

:lol:

Dogbyte
Posts: 9
Joined: Fri Mar 22, 2013 4:07 pm

Re: RPi Cam Web Interface

Fri May 30, 2014 9:19 pm

Code: Select all

May 30 16:21:50 house motion: [1] libjpeg decompression failure on first frame -                                      giving up!
May 30 16:22:00 house motion: [1] Retrying until successful connection with came                                     ra
May 30 16:22:00 house motion: [1] libjpeg decompression failure on first frame -                                      giving up!
May 30 16:22:06 house motion: [1] Video signal lost - Adding grey image
May 30 16:22:10 house motion: [1] Retrying until successful connection with came                                     ra
May 30 16:22:10 house motion: [1] libjpeg decompression failure on first frame -                                      giving up!
May 30 16:22:20 house motion: [1] Retrying until successful connection with came                                     ra
May 30 16:22:20 house motion: [1] libjpeg decompression failure on first frame -                                      giving up!
May 30 16:22:30 house motion: [1] Retrying until successful connection with came                                     ra
May 30 16:22:30 house motion: [1] libjpeg decompression failure on first frame -                                      giving up!
May 30 16:22:40 house motion: [1] Retrying until successful connection with camera
May 30 16:22:40 house motion: [1] libjpeg decompression failure on first frame - giving up!
May 30 16:22:50 house motion: [1] Retrying until successful connection with camera
May 30 16:22:50 house motion: [1] libjpeg decompression failure on first frame - giving up!

not sure whats up here. could this be a permission issue? or should the motion daemon be running as a specific user? this is my first time with motion.

dangkiet000
Posts: 6
Joined: Mon Jul 29, 2013 3:35 pm

Re: RPi Cam Web Interface

Sat May 31, 2014 6:19 pm

0lly wrote:You need to use Port 8020 then edit

Code: Select all

<VirtualHost *:80>
to

Code: Select all

<VirtualHost *:8020>
I'm really thank 0lly !
My webIOPI webserver use port 8020
I follow http://elinux.org/RPi-Cam-Web-Interface ... d_Pi-Light to change port 8020 :
sudo nano /etc/apache2/ports.conf change 80 --> 8020
and Change:- Listen 80 to Listen 8020
1) => I into http://192.168.1.222:8020/ I see video stream
But I start WebIOPI ==> Failed . :evil:
2) I change WebIOPI = port 8010 , apache2/ports.conf still 8020
=> I into http://192.168.1.222:8020/ I see video stream
=> I into http://192.168.1.222:8010/ I see WebIOPI but not video stream :evil:
the both use 1 file index.html
==> can't embed video stream RPi Cam Web Interface into my WebIOPI page.
Can RPi Cam Web Interface embed video like that (MJPEG-Steamer) ?
<img src="http://raspberrypi.local:8010/?action=stream">
Please , can anyone give advice to solve problem ?

mstate1981
Posts: 3
Joined: Sat May 31, 2014 6:48 pm

Re: RPi Cam Web Interface

Sun Jun 01, 2014 4:22 am

I was getting the "could not set inline flag" error so I moved back to an old kernel which worked, however, it also breaks my PiTFT display. The PiTFT requires installing a later kernel than what works with RPi Cam Web Interface. Is everyone seeing the "could not set inline flag" error when using the latest kernel? Is there another fix other backing up to an old kernel?

ludespeedny
Posts: 103
Joined: Mon Oct 01, 2012 6:55 pm

Re: RPi Cam Web Interface

Mon Jun 02, 2014 2:08 pm

Does anyone have this working with all the new functions?
unnamed7 wrote:http://grid.stronazen.pl/rpi/rpi-cam-visual-pack.zip
just upload contents of .zip to var/www and delete default index.html
i haven't really tested it in all browsers but it should be ok since it's based on twitter bootstrap.
hope you like it :)

Return to “Camera board”