harlock74
Posts: 182
Joined: Fri Jan 18, 2013 10:47 am

Re: RPi Cam Web Interface

Fri Dec 12, 2014 2:16 pm

HI,

I don’t know whether someone else got the same issue as me or not, but I thought it would be a good idea to post it here. Since I connected 2 No Pan & Tilt I have been experiencing some video interferences (i.e. a few black lines scrolling from the top to the bottom of the video preview) only when the pan & tilt is in operation. Strange enough this does not happen at all with mjpg-streamer. Indeed I tried to replicate the issue by uninstalling/reinstalling both RPi Cam and mjpg-streamer. For same strange reason it happens only with RPi Cam. I also tried with 3 different RPI’s. Go figure. :ugeek:

Many thanks in advance for any kind suggestions/explanations.

soraz
Posts: 3
Joined: Sun Dec 14, 2014 6:23 pm

Re: RPi Cam Web Interface

Sun Dec 14, 2014 7:03 pm

hi,
how to modify this great work for activate live streaming for view and save video remotely ?

thanks

Kyaw
Posts: 2
Joined: Fri Dec 19, 2014 12:05 pm

Re: RPi Cam Web Interface

Fri Dec 19, 2014 12:35 pm

Hi.this is very urgent and import for me.I followed the instrutions and networking between pi and pic is working ( over Ethernet) .I pinged them and they replied each other.camer's red light is on indicating it is streaming or something.When I enter pi 's ip on pc browser ( Firefox) nothing happened.what should I do.Should I start it over again and reinstall .if so how?please.

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

Re: RPi Cam Web Interface

Sat Dec 20, 2014 6:48 am

is your PC and the Pi on the same network (ie, not behind a router)? Can you ssh into the pi from the PC ? Have you verified that you have a webserver running on your pi? It "just worked" fine for me when I tested it out some months ago.

bithunter
Posts: 2
Joined: Sat Dec 20, 2014 11:56 am

Re: RPi Cam Web Interface

Sat Dec 20, 2014 12:01 pm

Hi the RPI Cam Web Interface works fine !!

Great work !!!

But i have some trouble to make the settings over Android devices.
I have try Chrome, stock , Firefox (all the aktual versions)

If i try to switch the resolution or other settings they will not work.

On the Windows PC all ok ??

Has anyone an idee ??

User avatar
Mettauk
Posts: 238
Joined: Mon Dec 10, 2012 12:40 pm
Location: Zarg

Re: RPi Cam Web Interface

Sat Dec 20, 2014 5:06 pm

It works in Android but for some reason you have to do the command twice!
As humans we have been the same for a very very long time, technology changes how we do... not who we are as people.

bithunter
Posts: 2
Joined: Sat Dec 20, 2014 11:56 am

Re: RPi Cam Web Interface

Sun Dec 21, 2014 2:48 pm

Mettauk wrote:It works in Android but for some reason you have to do the command twice!

Wich device and Browser ???

i`ve testet with Samsung S3 and Asus Memo Pad 10. On both devices the same Problem !!

User avatar
Mettauk
Posts: 238
Joined: Mon Dec 10, 2012 12:40 pm
Location: Zarg

Re: RPi Cam Web Interface

Sun Dec 21, 2014 3:09 pm

Android (Google Chrome v 39.0.2171.93)
Android Verson 5.0.1
Rpi is latest version with Pi Raspbain updated with all updates (as of posting date)
It works in previous version of android (KitKat) for last 3-5 months+ but as said before each command seems to need to be sent twice, so for example setting "night mode" would nned to be done twice for it to work in Chome on android.
As humans we have been the same for a very very long time, technology changes how we do... not who we are as people.

maces
Posts: 1
Joined: Mon Dec 22, 2014 7:18 am

Re: RPi Cam Web Interface: Doorbell and Email Alert

Mon Dec 22, 2014 11:39 am

Hello,

Is it possible to build in two features in this piece of fine code? (Webinterface)

I try to push the screw, but i know i must turn :-(

Features i miss:
First: a Doorbell, push a gpio Button (or Ir Sensor) and take a Picture who send over gmail to me, and delete the old on SD Cart.
I use this on another raspberry and it works well, but i cant get it into the RPi Cam Web Interface :x

i use this snippet`s: (Doorbell)

Code: Select all

import RPi.GPIO as GPIO
import time
import os

#adjust for where your switch is connected
buttonPin = 24
GPIO.setmode(GPIO.BCM)
GPIO.setup(buttonPin,GPIO.IN)

while True:
    #assuming the script to call is long enough we can ignore bouncing
    if (GPIO.input(buttonPin)):
        #this is the script that will be called (as root)
        os.system("raspistill -o neu.jpg -n")
        os.system("python /home/pi/sendnotify.py")
And sendnotify.py

Code: Select all

#!/usr/bin/env python
import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email.Utils import COMMASPACE, formatdate
from email import Encoders
import os

USERNAME = "[email protected]"
PASSWORD = "password"

def sendMail(to, subject, text, files=[]):
    assert type(to)==list
    assert type(files)==list

    msg = MIMEMultipart()
    msg['From'] = USERNAME
    msg['To'] = COMMASPACE.join(to)
    msg['Date'] = formatdate(localtime=True)
    msg['Subject'] = subject

    msg.attach( MIMEText(text) )

    for file in files:
        part = MIMEBase('application', "octet-stream")
        part.set_payload( open(file,"rb").read() )
        Encoders.encode_base64(part)
        part.add_header('Content-Disposition', 'attachment; filename="%s"'
                       % os.path.basename(file))
        msg.attach(part)

	server = smtplib.SMTP('smtp.gmail.com:587')
	server.ehlo_or_helo_if_needed()
	server.starttls()
	server.ehlo_or_helo_if_needed()
	server.login(USERNAME,PASSWORD)
	server.sendmail(USERNAME, to, msg.as_string())
	server.quit()

sendMail( ["*******your_email********@gmail.com"],
        "Doorbell notification",
        "Someone is ringing the doorbell, picture attached",
        ["/home/pi/webcam.jpg"] )
I Use this site for my Projekt: http://harizanov.com/2013/07/raspberry- ... inging-it/



Second WISH:: Motion Allerts send a Picture and a Movie over gmail to me and the movie where stored in googledrive and delete the old on SD Card .

I work/read these Sites but the pyhton script dont work with the modified motion.conf.

http://www.lavrsen.dk/foswiki/bin/view/ ... tionNotify for me to heavy!

http://through-the-interface.typepad.co ... art-2.html

I try this on another sd card for 12 month ago, this works..but i cant build in the code in the web Interface :-(

Is there someone outside, to help me build in this two Features. That was so big...The perfect IP CAM :-)

Please be patiend for my creepy English

dominicafonso
Posts: 6
Joined: Mon Jul 14, 2014 12:59 pm

Re: RPi Cam Web Interface

Sun Dec 28, 2014 2:08 pm

Just got up and running with this web interface and have hit a few hurdles.

At the moment, the service isn't starting after a reboot - autostart - yes is set.

If I manually start then I get the messages pasted below (the web interface comes to life, but starts recording immediately)

[email protected]:~/RPi_Cam_Web_Interface$ ./RPi_Cam_Web_Interface/RPi_Cam_Web_Interface_Installer.sh start
Started
[email protected]:~/RPi_Cam_Web_Interface$ [-1242975368] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion.conf
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "despeckle"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "gap"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "max_mpeg_time"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "output_all"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "output_normal"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "output_motion"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "ppm"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_cap_new"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_cap_motion"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "locate"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "jpeg_filename"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_port"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_quality"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_motion"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_maxrate"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_localhost"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_limit"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "control_port"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "control_localhost"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "control_html_output"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_image"
[-1242975368] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_mpeg"
[-1242975368] [NTC] [ALL] motion_startup: Using default log level (NTC) (6)
[-1242975368] [NTC] [ALL] motion_startup: Motion mmaltest Started
[-1242975368] [NTC] [ALL] motion_startup: Logging to syslog
[-1242975368] [NTC] [ALL] motion_startup: Using default log type (ALL)
[-1242975368] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC)
[-1242975368] [NTC] [ALL] become_daemon: Motion going to daemon mode

any help would be appreciated

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

Re: RPi Cam Web Interface

Tue Dec 30, 2014 10:21 am

el_cid wrote: What I have read from earlier in this thread MJPEG (used by the RPI Cam Web Interface; = taking pictures quite fast, 10 per second in this case, to give the illusion of a video) because MJPEG brings you very low latency, below a second.
The mjpg format raspimjpeg uses is not what you expect from mjpeg. mjpeg defines a pushed stream of jpgs. Raspimjpeg in deed uses a separate mecanism in the web browser that pulls up to 10 frames per second from the web server that simple offers new single jpgs asynchronously. This consequences that established mjpeg player don't play this "stream" of jpgs (try vlc etc!). This is NOT mjpeg as far as I understand it.
btw: the predecessor of raspimjpeg, mjpeg-streamer, did produce a "real" mjpg stream.
el_cid wrote:h264 video streaming has high latency, which can go up to 10s.
This is not necessarily true. It depends on how large the buffers are set up. I heard about h264 solutions that don't have noticeable delays at all. Regard all the surveillance cams out there. At least I tried a simple python script for my own to be sure about that all. I got a delay of max one second streaming from my pi to a remote vlc via ethernet!

So I was glad if h264 and "real" mjpg was a goal of the maintainer but still it isn't...

shh200
Posts: 9
Joined: Tue Dec 30, 2014 9:33 pm

Re: RPi Cam Web Interface

Tue Dec 30, 2014 9:43 pm

Hi,
And first of all thanks to all for great job!
Tried to find proper solution but seem to be hard. So:

I want to only record Hi-res images on motion. Not video.
But video stream on web have still to be available.
Anybody good solutions for this kind of need ?
Last edited by shh200 on Fri Jan 02, 2015 11:04 am, edited 2 times in total.

soraz
Posts: 3
Joined: Sun Dec 14, 2014 6:23 pm

Re: RPi Cam Web Interface

Wed Dec 31, 2014 9:57 am

i have found solution for my previous post.

Now when i play recorded video the total time is less of recorded time.
i have convert original file .h264 recorded at 25fps to mp4 at 19fps and the time correspond.
where is my problem ?... we have 50Hz of line-power ?

thanks for any advance

benztowncity
Posts: 1
Joined: Sat Jan 03, 2015 9:50 am

Re: RPi Cam Web Interface

Sat Jan 03, 2015 9:58 am

Hi all,

I am very excited about this whole project and appreciate your effort. Thanks.
After playing around with the RPi Cam Web Interface, I wanted to focus on the motion detection part.
My question at this moment is, which motion.conf does the button on the webpage trigger when pressed?
I tried to change something in /etc/motion/motion.conf and also in /home/admin/RPi_Cam_Web_Interface/etc/motion/motion.conf but this doesn`t change anything in the behaviour. Example: Changing the target_dir has no effect.
Goal would be to fine tune the correct motion.conf and also to start motion with a cron job or something like this in the evening hours.
Hope somebody could give me the path to the correct motion.conf. That would help me out a lot!

Regards
Stefan

user879
Posts: 32
Joined: Mon Sep 01, 2014 5:16 pm

Re: RPi Cam Web Interface

Sun Jan 04, 2015 7:56 am

Hey!
I have the RPi-Cam-Web-Interface working (I can take pictures) but cannot seem to get Pi-pan to work.
I ran echo 'servo 150 150' > /var/www/FIFO_pipan but it just sat there seemingly forever. Any Ideas?
Success is going from failure to failure without loss of enthusiasm - Winston Churchill

User avatar
Mettauk
Posts: 238
Joined: Mon Dec 10, 2012 12:40 pm
Location: Zarg

Re: RPi Cam Web Interface

Sun Jan 04, 2015 12:57 pm

user879 wrote:Hey!
I have the RPi-Cam-Web-Interface working (I can take pictures) but cannot seem to get Pi-pan to work.
I ran echo 'servo 150 150' > /var/www/FIFO_pipan but it just sat there seemingly forever. Any Ideas?
Have same issue with an A+ board. Works just fine with an old A and B but not with A+ :cry:

Working with command line pi pan works but not via the rpi interface.
As humans we have been the same for a very very long time, technology changes how we do... not who we are as people.

user879
Posts: 32
Joined: Mon Sep 01, 2014 5:16 pm

Re: RPi Cam Web Interface

Mon Jan 05, 2015 12:55 am

Mettauk wrote:
user879 wrote:Hey!
I have the RPi-Cam-Web-Interface working (I can take pictures) but cannot seem to get Pi-pan to work.
I ran echo 'servo 150 150' > /var/www/FIFO_pipan but it just sat there seemingly forever. Any Ideas?
Have same issue with an A+ board. Works just fine with an old A and B but not with A+ :cry:

Working with command line pi pan works but not via the rpi interface.
I'm using an A+ as well, I'll try using an old B I have :(
Success is going from failure to failure without loss of enthusiasm - Winston Churchill

Kyaw
Posts: 2
Joined: Fri Dec 19, 2014 12:05 pm

Re: RPi Cam Web Interface

Tue Jan 06, 2015 5:45 pm

I want to increase the size of image so that I can see much larger streaming footage ( almost full screen ) in index.php.what shoul I do?

steven bailey
Posts: 1
Joined: Tue Jan 06, 2015 6:21 pm

Re: RPi Cam Web Interface

Tue Jan 06, 2015 6:23 pm

I would like to add a button to the RPi Cam web interface to be able to turn on a series of infrared lights for the Noir Camera. I am a complete NOOB and have got everything else running fab - any help would be greatly appreciated

soraz
Posts: 3
Joined: Sun Dec 14, 2014 6:23 pm

Re: RPi Cam Web Interface

Tue Jan 06, 2015 6:27 pm

i create a personalized php file for fit image to window

<!DOCTYPE html>
<html>
<head>
<title>RPi Cam Preview</title>
<script src="script_min.js"></script>
</head>
<body onload="setTimeout('init();', 100);" style="margin: 1px 1px 1px 1px;">
<center>
<img id="mjpeg_dest" style="max-width:100%;max-height:100%;vertical-align:middle;"/>
</center>
</body>
</html>

old man noob
Posts: 2
Joined: Sun Jan 11, 2015 7:06 am

Re: RPi Cam Web Interface

Sun Jan 11, 2015 7:25 am

The way I finally got my servos working was to install the pi-light.bash
even though i don't own a pi-light.If your pi-pan not turning give it a try.
Don'forget to restart apache or just reboot your pi.


cd pi-pan
sudo ./install-pilight.bash

PindaNL
Posts: 2
Joined: Sun Jan 11, 2015 9:28 pm

Re: RPi Cam Web Interface

Sun Jan 11, 2015 10:41 pm

Hi people,

For a school project I am using the Raspberry Pi B+ with the Pi-pan servocontroller from openelectrons.(I build my own gimbal) I followed the instructions from this post and http://elinux.org/RPi-Cam-Web-Interface.

The web interface does work(video, foto etc.) but I am not able to pan/tilt my camera on the web interface. I think my index.php isn't properly configured. Can someone post there index.php file so I can confirm that mine is good?

Thanks!

Greetz Jan

PindaNL
Posts: 2
Joined: Sun Jan 11, 2015 9:28 pm

Re: RPi Cam Web Interface

Mon Jan 12, 2015 1:08 pm

Yess it works!

I didn't installed the pi-light because i don't have one. Thanks to old man noob I fixed the problem and can use the controls on the web interface.

melloajello
Posts: 1
Joined: Thu Aug 28, 2014 11:20 pm

Display frames in the timecode?

Tue Jan 13, 2015 8:38 am

I saw it asked earlier, but did anyone figure out if there is any way to have frames per second or miliseconds in the time code overlay?

geckus
Posts: 6
Joined: Thu May 30, 2013 2:46 am

Re: RPi Cam Web Interface

Fri Jan 16, 2015 2:16 pm

anyone can help me with capturing a image with a thumbnail version of the one captured.using RPi Cam Web Interface

Return to “Camera board”