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

Re: RPi Cam Web Interface

Sun Apr 06, 2014 7:24 pm

slabua wrote:
m4rky wrote:How do I get it to save the files to a windows share in the first place rather than the SD card?
You're welcome : )
Maybe have a look at here http://elinux.org/RPi-Cam-Web-Interface ... her_folder
Thats exactly what I was looking for. Thanks for your help :D

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

Re: RPi Cam Web Interface

Sun Apr 06, 2014 7:35 pm

m4rky wrote:Thats exactly what I was looking for. Thanks for your help :D
Glad it worked, you're welcome : )
Salvatore La Bua - www.slblabs.com
DICGIM - University of Palermo, Italy

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

Re: RPi Cam Web Interface

Mon Apr 07, 2014 7:23 am

m4rky wrote: Thats exactly what I was looking for. Thanks for your help :D
I use a NAS as NFS-Server
On Rpi install

Code: Select all

sudo apt-get install nfs-common rpcbind
sudo service rpcbind start
sudo service nfs-common start
mount the nfs-share
(modify the location "192.168.178.14:/i-data/6b86fde7/nfs/rpicam")

Code: Select all

sudo nano /etc/fstab
add 192.168.178.14:/i-data/6b86fde7/nfs/rpicam /var/www/media nfs defaults 0 1
and reboot

test

Code: Select all

mount
..
192.168.178.14:/i-data/6b86fde7/nfs/rpicam on /var/www/media type nfs (rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.178.14,mountvers=3,mountport=4171,mountproto=udp,local_lock=none,addr=192.168.178.14)

Code: Select all

df
Dateisystem 1K-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
rootfs 7515692 2952440 4212628 42% /
/dev/root 7515692 2952440 4212628 42% /
devtmpfs 183312 0 183312 0% /dev
tmpfs 38316 240 38076 1% /run
tmpfs 5120 0 5120 0% /run/lock
tmpfs 76620 56 76564 1% /run/shm
/dev/mmcblk0p1 57288 19120 38168 34% /boot
192.168.178.14:/i-data/6b86fde7/nfs/rpicam 1922352480 1461040256 461312224 77% /var/www/media

MatsHelge
Posts: 6
Joined: Thu Mar 27, 2014 6:32 pm

Re: RPi Cam Web Interface

Mon Apr 07, 2014 2:08 pm

Hi guys,

I was wondering how to activate the timestamp to the pictures? I found no word of it in the wiki and don't remember seeing a mention on this thread also. Currently the images and videos I take have no timestamp and in the motion.conf there is no line in the timestamp-section that says default=on/off.

I'm sure it's something easy, but don't seem to get my head around it.

Thanks again!

Mats

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

Re: RPi Cam Web Interface

Mon Apr 07, 2014 2:44 pm

MatsHelge wrote:Hi guys,

I was wondering how to activate the timestamp to the pictures? I found no word of it in the wiki and don't remember seeing a mention on this thread also. Currently the images and videos I take have no timestamp and in the motion.conf there is no line in the timestamp-section that says default=on/off.

I'm sure it's something easy, but don't seem to get my head around it.

Thanks again!

Mats
In the default setup, the motion triggers an action which sends to raspimjpeg a pipe command to start the video recording at the resolution you set in /etc/raspimjpeg and by itself, it can't record timestamp.
You can, however, record the videos from motion itself, instead of letting raspimjpeg do so. This way you can use the timestamp settings in motion.conf, but then the resolution of the resulting video is the one also set in motion.conf. You can of course record both videos.
If I recall, you have to enable the movie_filename directive in motion.conf.
Salvatore La Bua - www.slblabs.com
DICGIM - University of Palermo, Italy

jarrah31
Posts: 125
Joined: Wed Oct 10, 2012 10:16 am

Re: RPi Cam Web Interface

Tue Apr 08, 2014 8:46 am

Questionario wrote:really awesome work as usual =)
4.) as for the pan/tilt function, can this not be implemented even for users without the pi-pan, like virtually if you dont have full FOV?
I don't think this is possible as it's a limitation of the camera hardware.

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

Re: RPi Cam Web Interface

Tue Apr 08, 2014 8:52 am

jarrah31 wrote:
Questionario wrote:really awesome work as usual =)
4.) as for the pan/tilt function, can this not be implemented even for users without the pi-pan, like virtually if you dont have full FOV?
I don't think this is possible as it's a limitation of the camera hardware.
Maybe he meant to use a smaller Sensor Region setting and shift it to simulate panning. Tilt won't be possible, though.
Salvatore La Bua - www.slblabs.com
DICGIM - University of Palermo, Italy

Questionario
Posts: 40
Joined: Tue Jun 04, 2013 6:22 am

Re: RPi Cam Web Interface

Tue Apr 08, 2014 9:26 am

slabua wrote:
jarrah31 wrote:
Questionario wrote:really awesome work as usual =)
4.) as for the pan/tilt function, can this not be implemented even for users without the pi-pan, like virtually if you dont have full FOV?
I don't think this is possible as it's a limitation of the camera hardware.
Maybe he meant to use a smaller Sensor Region setting and shift it to simulate panning. Tilt won't be possible, though.
yup, thats what I meant!
although I thought, depending on the resolution, either or (pan/tilt) would be possible

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

Re: RPi Cam Web Interface

Tue Apr 08, 2014 9:52 am

Questionario wrote:yup, thats what I meant!
although I thought, depending on the resolution, either or (pan/tilt) would be possible
Oh okie I had in mind tilting as rotating the pointing angle of the camera, then it's basically shifting the field of view along the x and y axis respectively, that makes sense : )
Salvatore La Bua - www.slblabs.com
DICGIM - University of Palermo, Italy

ahsanshakeel90
Posts: 2
Joined: Thu Jan 16, 2014 7:14 pm

Re: RPi Cam Web Interface

Wed Apr 09, 2014 8:22 am

hey amazing work, all that i needed to complete my project :)
i need to ask few questions
firstly your RPi_Cam_Web_Interface_Installer.sh file includes first removing apache2 an php. will this remove my installed apache serve and php? since i am using this in my project and have files in /var/www directory. Secondly will camera store images or videos in raspberry pi sd card? if yes then my sd card can run out if memory? can i store these images and videos on a windows shared forlder?

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

Re: RPi Cam Web Interface

Thu Apr 10, 2014 9:06 am

Did something change in the kernel recently that if not using the Fixedfps or Sport exposure mode would let the stream at a much lower framerate?
Before, using Auto exposure mode I could get a visibly high framerate, correspondant to that set in the resolutions and fps fields above, now I must use Fixedfps or Sport mode to actually achieve the fps i've set up there.

PS. Does Nightpreview mode work at all? It seems like it keeps whatever the previous mode was selected.
Last edited by slabua on Thu Apr 10, 2014 7:07 pm, edited 1 time in total.
Salvatore La Bua - www.slblabs.com
DICGIM - University of Palermo, Italy

ahsanshakeel90
Posts: 2
Joined: Thu Jan 16, 2014 7:14 pm

Re: RPi Cam Web Interface

Thu Apr 10, 2014 3:59 pm

hey how i can change the position of stream received since i cannot find the img id tag.

jarrah31
Posts: 125
Joined: Wed Oct 10, 2012 10:16 am

Re: RPi Cam Web Interface

Thu Apr 10, 2014 7:16 pm

ahsanshakeel90 wrote:hey amazing work, all that i needed to complete my project :)
i need to ask few questions
firstly your RPi_Cam_Web_Interface_Installer.sh file includes first removing apache2 an php. will this remove my installed apache serve and php? since i am using this in my project and have files in /var/www directory. Secondly will camera store images or videos in raspberry pi sd card? if yes then my sd card can run out if memory? can i store these images and videos on a windows shared forlder?
It would only remove apache and php if you specified "remove" after the RPi_Cam_Web_Interface_Installer.sh script. Choosing "install" will try to install apache and php but apt-get will detect that it is already installed.

Be careful though because if you already have files in /var/www, the "install" command will overwrite any files with the same name that the project requires, such as index.html.

The camera will install files to the SD card, but you can mount a share to the /var/www/media folder so that images and videos are stored on a network share. See http://elinux.org/RPi-Cam-Web-Interface ... her_folder for details.

jarrah31
Posts: 125
Joined: Wed Oct 10, 2012 10:16 am

Re: RPi Cam Web Interface

Thu Apr 10, 2014 7:22 pm

slabua wrote:
Questionario wrote:yup, thats what I meant!
although I thought, depending on the resolution, either or (pan/tilt) would be possible
Oh okie I had in mind tilting as rotating the pointing angle of the camera, then it's basically shifting the field of view along the x and y axis respectively, that makes sense : )
I think Silvan only has time to code features that he needs, so given that he now has Pi-Pan and has written some code to make it work with the web interface, he wouldn't want to spend time on a software pan-tilt method (I believe).

However the code is on Github so it's open for other people to have a go at doing this (I wouldn't have a clue). :)

Marcel
Posts: 3
Joined: Fri Apr 04, 2014 7:56 pm

Re: RPi Cam Web Interface

Thu Apr 10, 2014 9:42 pm

So finally red through all posts on this forum. Took me a while....
Silvan what an amazing good solution you have made. Just read the FIPO and follow the simple steps and it is working!!!
This is my 4th camera solution I've tried and this is the best by far and the first one which was working directly. (Bad for learning the Pi ;) )

Many thanks Silvan!

Still having some requests:
1) Is it possible to make the preview resolution changeable over the web interface?
2) Is there a manual over enabling motion detection and the length of video after (and before) motion is detected?
3) What are all resolution the camera can handle (not only max)

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

Re: RPi Cam Web Interface

Fri Apr 11, 2014 9:37 pm

after an update with

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update
is raqspimjpeg crashed when creating of images.
Timelaps also did not run.
Only the recording of videos ran.
I then

Code: Select all

sudo rm /usr/bin/raspimjpeg
sudo rm /var/www/FIFO
./Install RPi_Cam_Web_Interface_Installer.sh
./RPi_Cam_Web_Interface_Installer.sh start
reinstalled and then there were no more problems.
Perhaps the information will help someone who is in the same situation.

elohab
Posts: 6
Joined: Sat Apr 12, 2014 1:18 am

Re: RPi Cam Web Interface

Sat Apr 12, 2014 1:47 am

thanks for the great work. i have a few problems.
i use the interface with motion in a relatively dark environment so
i choose the full FOV and nigth exposure at the startup.
when motion is detected the preview changes from night to auto
i think because it gets much more darker and records the video in
that way. strangely the preview settings does not come back to night
after the recording stops and stays at auto. i use latest raspbian and
RPi Cam Web Interface.

my settings

Code: Select all

###############################
#  Config File for raspimjpeg  #
################################
# Syntax: "Command Param", no spaces before/after line allowed

#
# Camera Options
#
sharpness 0
contrast 0
brightness 50
saturation 0
iso 0
metering_mode average
video_stabilisation false
exposure_compensation 10
exposure_mode night
white_balance auto
image_effect none
colour_effect_en false
colour_effect_u 128
colour_effect_v 128
rotation 0
hflip true
vflip true
sensor_region_x 0
sensor_region_y 0
sensor_region_w 65536
sensor_region_h 65536
shutter_speed 130000
raw_layer false

#
# Preview Options
#
# fps_preview = video_fps (below) / divider
#
width 512
quality 25
divider 1

#
# Video Options
#
video_width 1296
video_height 976
video_fps 25
video_bitrate 5000000
MP4Box true
MP4Box_fps 25

#
# Image Options
#
image_width 2592
image_height 1944
image_quality 85

#
# 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.mp4
status_file /var/www/status_mjpeg.txt
control_file /var/www/FIFO
#
# Autostart
#
# autostart: standard/idle
# motion detection can only be true if autostart is standard
#
autostart standard
motion_detection true

Ydo
Posts: 11
Joined: Sun Apr 06, 2014 12:57 pm
Location: Netherlands

error

Sat Apr 12, 2014 11:16 am

When I connect RPi Cam Control on my winxp pc using Firefox the control panel comes up with an error window in front showing:

Error in RaspiMJPEG. Could not set inline flag.
Restart RaspiMJPEG (./JRPi_Cam_Web_Interface_Installer.sh start) or the whole RPi.

This restart does not work. I tried to find information on this forum but there are so many posts!
RPi Cam Cotrol has been working o.k. but after a new system chrash and re-installing the operating system Debian RPi Cam Control refused to work properly. Wifi and ethernet are working, raspistill -t 500 starts the camera.
Using WinXP, browser Firefox 28.0.
What can be the matter? Please help.
Last edited by Ydo on Sun Apr 13, 2014 9:42 am, edited 1 time in total.

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

Re: error

Sat Apr 12, 2014 12:12 pm

Ydo wrote:re-installing the operating system Debian RPi Cam Control refused to work properly.
i think some is wrong on the new firmware.
try

Code: Select all

sudo rpi-update 8660fe5152f6353dec61422808835dbcb49fc8b2
This is the latest worked firmware for me.
testet on 2 rpi + cam

DuctTape
Posts: 3
Joined: Sat Apr 12, 2014 8:56 am

Re: RPi Cam Web Interface

Sun Apr 13, 2014 9:34 am

I just updated my the cam web interface and the automatic motion detection is working well, only problem is at night it fills up the SD card with pitch black video.

Whats the best way to have the pi disable motion at say 1am and enable it again at 5am?

Ydo
Posts: 11
Joined: Sun Apr 06, 2014 12:57 pm
Location: Netherlands

Re: error

Sun Apr 13, 2014 10:41 am

0lly wrote:
Ydo wrote:re-installing the operating system Debian RPi Cam Control refused to work properly.
i think some is wrong on the new firmware.
try

Code: Select all

sudo rpi-update 8660fe5152f6353dec61422808835dbcb49fc8b2
This is the latest worked firmware for me.
testet on 2 rpi + cam
This solved RasPi Cam Control problem but created a new one: the raspistill command is corrupted:

[email protected] ~ $ raspistill -t 500
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates

I tried to re-update with:

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update

raspistill -t 500 is still not working.

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

Re: error

Sun Apr 13, 2014 1:18 pm

Ydo wrote: [email protected] ~ $ raspistill -t 500
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates
raspistill is working here

Code: Select all

raspistill -t 500 -o test.jpg
and i get a 3MB test.jpg

ps
do a ./RPi_Cam_Web_Interface_Installer.sh stop
before test raspistill

metalheadz
Posts: 1
Joined: Sun Apr 13, 2014 1:19 pm

Re: error

Sun Apr 13, 2014 1:24 pm

Ydo wrote:
0lly wrote:
Ydo wrote:re-installing the operating system Debian RPi Cam Control refused to work properly.
i think some is wrong on the new firmware.
try

Code: Select all

sudo rpi-update 8660fe5152f6353dec61422808835dbcb49fc8b2
This is the latest worked firmware for me.
testet on 2 rpi + cam
This solved RasPi Cam Control problem but created a new one: the raspistill command is corrupted:

[email protected] ~ $ raspistill -t 500
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates

I tried to re-update with:

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update

raspistill -t 500 is still not working.
This is the message I get when my camera is not connected correctly... Everythings working fine on my side

B0SC0
Posts: 22
Joined: Tue Jun 04, 2013 3:46 pm

pi-pan errors

Sun Apr 13, 2014 4:24 pm

Keep getting these errors.

(see attached jpeg)

I had RPi Cam Web Interface working fine.

Then I also installed my RTC DS1307 pcb.Working fine.

Then I installed my pi-pan. Starting to have problems, I believe, with a conflict of the i2c interface. RTC and pi-pan led are on this bus.
Removed the RTC pcb and
commented out the RTC lines:

mkdir /dev/shm/mjpeg
raspimjpeg -ic $image -vc $video > /dev/null &

python /home/pi/pi-pan/pipan_pipe.py &

# modprobe i2c-bcm2708
# echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
# modprobe rtc--ds1307
# hwclock -s
exit 0

At this point I am receiving these errors.

B0SC0
Attachments
pipan errors2.jpg
pipan errors2.jpg (61.82 KiB) Viewed 8392 times

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

Re: pi-pan errors

Sun Apr 13, 2014 4:31 pm

B0SC0 wrote:At this point I am receiving these errors.
I'm not sure but I suppose pipan_pipe.py uses FIFO_pipan while raspimjpeg uses FIFO. Maybe the error is saying something related to these pipe files and you may want to look on whether they are correctly created.
Salvatore La Bua - www.slblabs.com
DICGIM - University of Palermo, Italy

Return to “Camera board”