woodside
Posts: 16
Joined: Mon Oct 22, 2012 7:42 am

Re: RPi Cam Web Interface

Fri Mar 14, 2014 12:18 pm

I have changed the port back to 80 , using the instructions by itsmedoofer in http://www.raspberrypi.org/phpBB3/viewt ... 60#p500460 and now everything is working perfectly.
So it seems the problems I was encountering before were due to the port change. Has anybody got motion working on a different port yet? If so could you please let me know what changes have to be made?
Many thanks for any help you can give.

jonar
Posts: 9
Joined: Tue Mar 04, 2014 1:53 pm

Re: RPi Cam Web Interface

Fri Mar 14, 2014 1:20 pm

@woodside apologies if you did, but did you change the URL inside the motion.conf for the netcam directive?

woodside
Posts: 16
Joined: Mon Oct 22, 2012 7:42 am

Re: RPi Cam Web Interface

Fri Mar 14, 2014 1:28 pm

Hi @jonar - Yes I did (to http://localhost:8080/cam_pic.php) and someone suggested changing netcam_proxy value, but that didn't work either.

yvonnezoe
Posts: 127
Joined: Thu Feb 14, 2013 2:10 am
Contact: Website

Re: RPi Cam Web Interface

Fri Mar 14, 2014 2:34 pm

Hi @silvermelchior, just for your notice, the second line of step 4 should be

Code: Select all

cd RPi_Cam_Web_Interface
? :)
Just started my Raspberry Pi journey >> http://yvonnezoe.wordpress.com

jonar
Posts: 9
Joined: Tue Mar 04, 2014 1:53 pm

Re: RPi Cam Web Interface

Fri Mar 14, 2014 3:16 pm

@woodside proxy would only require changing if you were running via some kind of proxy.

silvanmelchior
Posts: 76
Joined: Mon Nov 25, 2013 5:56 pm

Re: RPi Cam Web Interface

Fri Mar 14, 2014 3:41 pm

yvonnezoe wrote:Hi @silvermelchior, just for your notice, the second line of step 4 should be

Code: Select all

cd RPi_Cam_Web_Interface
? :)
Yes ;)

User avatar
Trixster
Posts: 261
Joined: Sat Jul 07, 2012 3:53 pm

Re: RPi Cam Web Interface

Fri Mar 14, 2014 9:13 pm

So with the new firmware update how do we get the new full sensor fov?!

User avatar
jbeale
Posts: 3494
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: RPi Cam Web Interface

Sat Mar 15, 2014 1:00 am

Trixster wrote:So with the new firmware update how do we get the new full sensor fov?!
Getting the new full sensor field of view from RaspiStill and RaspiVid required the programs to be recompiled after these code changes. Likewise, RaspiMJPEG would also have to be updated and recompiled, which as far as I know has not yet been done.

The changes to RaspiStill/Vid include replacing source code lines like this:

Code: Select all

.max_preview_video_w = state->preview_parameters.previewWindow.width,
.max_preview_video_h = state->preview_parameters.previewWindow.height,
...
format->es->video.width = state->width;
format->es->video.height = state->height;
with lines like this:

Code: Select all

.max_preview_video_w = VCOS_ALIGN_UP(FULL_FOV_PREVIEW_4x3_X, 32),
.max_preview_video_h = VCOS_ALIGN_UP(FULL_FOV_PREVIEW_4x3_Y, 16),
...
format->es->video.width = VCOS_ALIGN_UP(state->width, 32);
format->es->video.height = VCOS_ALIGN_UP(state->height, 16);

AndreKl
Posts: 1
Joined: Sat Mar 15, 2014 12:39 pm

Re: RPi Cam Web Interface

Sat Mar 15, 2014 1:18 pm

Love it... run it now for a while without any problems. It even works on the Kindle Paperwhite :)

If i set "Image Quality" to 0 or don't type anything in the box, the script crashes and had to be restarted in the Console.

The only thing i would wish is a FPS regulator for the preview (preferable in the web interface). So i would be able to decrease the load over the wireless lan.

User avatar
mad-hatter
Posts: 419
Joined: Sun Feb 26, 2012 2:58 pm
Location: By the UK seaside

Re: RPi Cam Web Interface

Sat Mar 15, 2014 7:20 pm

Helllo,

I've shot a series of time lapse photos with rpi_cam_web,
and the results as shown:

Code: Select all

image_0000_20140315_173930.jpg
image_0001_20140315_173930.jpg
image_0002_20140315_173931.jpg
image_0003_20140315_173932.jpg
image_0004_20140315_173933.jpg
image_0005_20140315_173934.jpg
image_0006_20140315_173934.jpg
...
image_0999_20140315_174562.jpg
The error I get, when trying to convert, is:

Code: Select all

root@mypi:/var/www/media# avconv -r 10 -i image_%04d_20140315_%06d.jpg -r -10 -vcodec libx264 -crf 20 - g 15 timelapse.mp4
avconv version 0.8.6-6:0.8.6-1+rpi1, Copyright (c) 2000-2013 the Libav developers
  built on Mar 31 2013 13:58:10 with gcc 4.6.3
image_%04d_20140315_%06d.jpg: No such file or directory
root@mypi:/var/www/media#
Possibly it does not like two %0*d's in the command line.
Can somebody help me with the syntax or make suggestions as to how I do the conversion.

Regards

cica
Posts: 9
Joined: Mon Mar 03, 2014 1:45 am
Location: Boston, MA USA

Re: RPi Cam Web Interface

Sun Mar 16, 2014 2:27 pm

woodside wrote:I have changed the port back to 80 , using the instructions by itsmedoofer in http://www.raspberrypi.org/phpBB3/viewt ... 60#p500460 and now everything is working perfectly.
So it seems the problems I was encountering before were due to the port change. Has anybody got motion working on a different port yet? If so could you please let me know what changes have to be made?
Many thanks for any help you can give.
I reinstalled a fresh copy of Raspbian yesterday and installed the RPi Cam Web Interface per the instructions on page one of this post. I then made 3 changes to the code to move from port 80 to port 81 and everything still works! The 3 changed I made were:

In /etc/motion/motion.conf:

change:

Code: Select all

netcam_url http://localhost/cam_pic.php
to:

Code: Select all

netcam_url http://localhost:81/cam_pic.php
In /etc/apache2/ports.conf:

change:

Code: Select all

NameVirtualHost *.80
Listen 80
to:

Code: Select all

NameVirtualHost *.81
Listen 81
In /etc/apache2/sites-available/default:

change:

Code: Select all

<VirtualHost *.80>

to:

Code: Select all

<VirtualHost *.81>
That's it.
-Tom

silvanmelchior
Posts: 76
Joined: Mon Nov 25, 2013 5:56 pm

Re: RPi Cam Web Interface

Sun Mar 16, 2014 3:16 pm

Update

Thanks to the new firmware-update, it's now possible to view the full FOV-preview with 30fps. Recording videos is still not possible because the highest resolution would be 1296x976 and so I'm going to wait until the firmware supports 1080p full FOV 30fps.

To use this new feature, a soft- and firmware-update is needed:

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update
Afterwards, update your interface: Navigate into your cloned git-repo and run the installer again (./RPi_Cam_Web_Interface_Installer.sh install ). Afterward, start the interface (./RPi_Cam_Web_Interface_Installer.sh start)

Please let me know if it works. The command raspimjpeg --version should output 3.1

User avatar
Trixster
Posts: 261
Joined: Sat Jul 07, 2012 3:53 pm

Re: RPi Cam Web Interface

Sun Mar 16, 2014 6:17 pm

Doesn't seem to work for me, I still get the original fov. I've done the firmware update and re-run the installer. raspimjpeg --version shows 3.1.

silvanmelchior
Posts: 76
Joined: Mon Nov 25, 2013 5:56 pm

Re: RPi Cam Web Interface

Sun Mar 16, 2014 6:21 pm

Did you change to image-mode? (Button below live-preview)

ridgelift
Posts: 5
Joined: Sun Dec 23, 2012 9:44 pm

Re: RPi Cam Web Interface

Sun Mar 16, 2014 7:37 pm

With RaspiMJPEG Version 3.1, I get a full fov when the 'change mode to image' button is selected. The 'motion detection start' button is disabled when viewing in image mode.

@cica, Your port change settings work for me! I'll test two camera's on the same network sometime this week.

poing
Posts: 1131
Joined: Thu Mar 08, 2012 3:32 pm

Re: RPi Cam Web Interface

Sun Mar 16, 2014 7:44 pm

Works for me.

About the wide FOV video, I think 1296x976 is it for now as it is straight 2x2 binning and I recall jamesh thinking upscaling to 1080p after the fact gives the same quality as doing it directly in the gpu. Although that outlook might have changed. I think if you can create video recording @1296x976 I can make something that upscales it to 1080p automatically. I was already planning to create something similar to automatically create a video of a timelapse when it's finished shooting.

woodside
Posts: 16
Joined: Mon Oct 22, 2012 7:42 am

Re: RPi Cam Web Interface

Sun Mar 16, 2014 8:55 pm

@cica - I've got some new sd cards and after new install of Rasbian and following your instructions, it's all working on the new port.
Thanks for your help.

poing
Posts: 1131
Joined: Thu Mar 08, 2012 3:32 pm

Re: RPi Cam Web Interface

Sun Mar 16, 2014 9:37 pm

@silvanmelchior: One thing I don't like *at all* about your present install script is that it silently(!!!) removes all the files from the /var/www folder! Some people use their Pi for other web activities than only your setup.

I would go even further and suggest you put your project in a separate folder, do wahtever you want inside that folder and respect the files placed inside the /var/www root by the rightful owner of the device. Some people might make use of their own index.html you see...

:shock:

silvanmelchior
Posts: 76
Joined: Mon Nov 25, 2013 5:56 pm

Re: RPi Cam Web Interface

Sun Mar 16, 2014 11:00 pm

UPDATE

It's now possible to record videos with the full FOV (1296x976 px) or a wider FOV (1296x730 px) than standard. Of course is a 1080p video capture with the standard FOV still possible. The desired FOV can be chosen in the settings. By the way, motion detection is now also available for the full FOV.

To update, you need to update the installer and then run it again. Navigate to your cloned git-repo and run the following commands:

Code: Select all

git pull origin master
./RPi_Cam_Web_Interface_Installer.sh install
./RPi_Cam_Web_Interface_Installer.sh start
If you haven't done yet, update your firmware:

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update
sudo reboot
The command raspimjpeg --version should output 3.2, the same content should be in /var/www/Version.txt

@poing: I'm sorry if you lost any data. But please note my comment on my first post, above all installation instructions:
Here are the instructions to run my installer. Warning: The installer will replace various files, so backup all your data.
I changed the installer a little bit, so it doesn't delete all files in /var/www, but it still replaces some files like "index.html", "script.js", ... if they already exist.

hairynoggin
Posts: 14
Joined: Wed Feb 05, 2014 7:31 pm

Re: RPi Cam Web Interface

Sun Mar 16, 2014 11:24 pm

works...

many thanks for the time you put into this project

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

Re: RPi Cam Web Interface

Sun Mar 16, 2014 11:39 pm

many thanks, works
Don't change the displaysettings while Camera is stopped,will never start again.

Code: Select all

pi@rpi ~/RPi_Cam_Web_Interface $ ./RPi_Cam_Web_Interface_Installer.sh start
Started
pi@rpi ~/RPi_Cam_Web_Interface $ mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
Error: Could not enable camera
./RPi_Cam_Web_Interface_Installer.sh stop
raspimjpeg: Kein Prozess gefunden
Stopped
pi@rpi ~/RPi_Cam_Web_Interface $ ./RPi_Cam_Web_Interface_Installer.sh start
Started
pi@rpi ~/RPi_Cam_Web_Interface $ [0] Processing thread 0 - config file /etc/motion/motion.conf

poing
Posts: 1131
Joined: Thu Mar 08, 2012 3:32 pm

Re: RPi Cam Web Interface

Sun Mar 16, 2014 11:47 pm

silvanmelchior wrote: @poing: I'm sorry if you lost any data. But please note my comment on my first post, above all installation instructions:
Here are the instructions to run my installer. Warning: The installer will replace various files, so backup all your data.
I changed the installer a little bit, so it doesn't delete all files in /var/www, but it still replaces some files like "index.html", "script.js", ... if they already exist.
No, I didn't lose any data but I was a bit dumbfounded when my own project, which uses index.php and coexisted before, was suddenly gone completely ;)

poing
Posts: 1131
Joined: Thu Mar 08, 2012 3:32 pm

Re: RPi Cam Web Interface

Mon Mar 17, 2014 12:08 am

The new update works, but what suddenly changed is that the 'Night' setting doesn't give a good exposed image any more. This must be due to the RaspCam Web Interface as it worked with the previous update but now doesn't any more and I didn't update the firmware in between. It also didn't work with the update before the previous one.

Before (1sec ISO 1250):
image_0028_20140316_222140.jpg
image_0028_20140316_222140.jpg (46.25 KiB) Viewed 5914 times
After (1/5 sec ISO 640):
image_0029_20140317_010211.jpg
image_0029_20140317_010211.jpg (25.53 KiB) Viewed 5914 times

ridgelift
Posts: 5
Joined: Sun Dec 23, 2012 9:44 pm

Re: RPi Cam Web Interface

Mon Mar 17, 2014 12:30 am

Version 3.2 has full FOV in video preview mode, and allows motion to trigger video capture!

Changing display settings while the camera is stopped will cause this: Error: RaspiMJPEG terminated

Restarting the program clears the error without a reboot.

Code: Select all

./RPi_Cam_Web_Interface_Installer.sh start

User avatar
slabua
Posts: 95
Joined: Tue Sep 11, 2012 7:00 pm
Contact: Website

Re: RPi Cam Web Interface

Mon Mar 17, 2014 4:23 pm

poing wrote:The new update works, but what suddenly changed is that the 'Night' setting doesn't give a good exposed image any more. This must be due to the RaspCam Web Interface as it worked with the previous update but now doesn't any more and I didn't update the firmware in between. It also didn't work with the update before the previous one.
I'm having the same issue. With version 3.0 (no full fov) I get clear images and it seems to correctly pick up the auto white balance. With version 3.2, instead, my images are really dark and overly yellow, and also as quoted above, the Night setting seems to do nothing. Does anyone else have the same issue?

I have another thought/request, It would be nice to be able to choose among more (smaller) resolutions for the recorded images/videos, to possibly minimise the file size or just in case, for various reasons, the user wouldn't actually need that a high resolution.
Last edited by slabua on Mon Mar 17, 2014 6:06 pm, edited 1 time in total.
Salvatore La Bua - www.slblabs.com
DICGIM - University of Palermo, Italy

Return to “Camera board”