btidey
Posts: 1635
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Thu Aug 13, 2015 12:07 pm

mrtamer wrote:Hi, I am experiencing an issue relating to the RPi Cam Web Interface autostart feature.
The interface installed and runs like a charm on my new RPi 2 when started manually, but it does not load automatically during boot although the installer mentions that the feature is enabled.
I checked the rc.local file and it looks fine and running it manually with below command starts the Web Interface.

Code: Select all

sudo /etc/init.d/rc.local start
and the permissions of the rc.local file should be ok.

Code: Select all

-rwxr-xr-x 1 root root 1023 Aug 13 11:27 /etc/rc.local
My latest step in solving the case was to copy the exactly same code that is in the rc.local and add it to a new script to init.d. To my surprise it started the service during boot. Now it might quite likely be my Rpi, but for me the autostart does not run if done from the rc.local.
I noticed that there has been some similar issues previously with other users with rc.local (not with the webinterface).
Strange. Haven't come across that one before in this context.

Couple of things. If you put a simple echo of text to a full path txt file at the top of the rc.local does that work during boot. That would help establish whether the rc.local was getting called at all. Second, the /etc/rc.local is invoked at boot time by /etc/init.d/rc.local. It looks like you can do that manually, but what do the permissions on that file look like? Do you still have pi as a user? Although that shouldn't matter, just trying to understand what might be different.

btidey
Posts: 1635
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Thu Aug 13, 2015 12:15 pm

robotus wrote: Thanks for that information. You seem to be getting better results than me. I have the live preview, but motion detection is not active. Here are my results at different settings:
1.record for 20s @ 90fps, box 25fps. Playback 30s --- not 2.5 times like you got !
2.record for 20s @ 90fps, box 30fps. Playback 35s
3.record for 20s @ 60fps, box 15fps. Playback 75s
4.record for 20s @ 75fps, box 30fps. Playback 31s
5.record for 20s @ 90fps, box 20fps. Playback 38s

Is it possible to turn live preview off ? or anything else to try.
Thanks
What video resolution did you use for those tests? That is the main determining factor on what fps you can achieve during recording. What sort of Pi is this; A,B,2? Changing GPU memory in /boot/config.txt may have some influence on max frame rate but I haven't tried that. Mine is typically set to 128MB.

You can't turn the live preview off at the moment as this actually serves 3 purposes; live video, external motion detection and thumbnails for captures.

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

Re: RPi Cam Web Interface

Thu Aug 13, 2015 12:42 pm

Hi guys,
Can someone please advise on which sort of camera settings I can use in order to 'save' MB while watching the camera video streaming on my smartphone? My monthly data allowance is killing me now :?
Many thanks in advance for your kind help!

btidey
Posts: 1635
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Thu Aug 13, 2015 1:32 pm

harlock74 wrote:Hi guys,
Can someone please advise on which sort of camera settings I can use in order to 'save' MB while watching the camera video streaming on my smartphone? My monthly data allowance is killing me now :?
Many thanks in advance for your kind help!
wiki http://elinux.org/RPi-Cam-Web-Interface ... idth_usage

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

Re: RPi Cam Web Interface

Thu Aug 13, 2015 1:57 pm

btidey wrote:
harlock74 wrote:Hi guys,
Can someone please advise on which sort of camera settings I can use in order to 'save' MB while watching the camera video streaming on my smartphone? My monthly data allowance is killing me now :?
Many thanks in advance for your kind help!
wiki http://elinux.org/RPi-Cam-Web-Interface ... idth_usage
Hi Robert,
Oops I should have read the wiki properly before posting, sorry. :oops:

Many thank for pointing me in the right direction though!

I will be playing with those 3 parameters then.

Cheers

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

Re: RPi Cam Web Interface

Thu Aug 13, 2015 6:17 pm

Hi Robert,
I would like to report something odd that just happened with all my 3 RPIs running the same version of the software. Basically when I tap on the Motion settings I can only see the following fields available:-
1. Motion Vector Preview
2. Noise Level
3. Threshold
4. Mask Image
5. Change Frames to start
6. Still Frames tonstop
7. Save vectors to . dat

nothing else other than that.
Any ideas?
Cheers

triedonce
Posts: 12
Joined: Wed Jun 24, 2015 9:59 pm

Re: RPi Cam Web Interface

Thu Aug 13, 2015 7:56 pm

I have noticed this in the logfile before. Any idea why the dates logged seem out of sequence? It looks like some entries were inserted in between the previous day.

{2015/08/13 20:14:56} Start boxing /var/www/rpi1cam/media/vi_0940_20150813_201452.mp4.h264 to /var/www/rpi1cam/media/vi_0940_20150813_201452.mp4 Queue pos 14
{2015/08/13 20:14:57} DEBUG 3
{2015/08/13 20:15:01} Finished boxing /var/www/rpi1cam/media/vi_0940_20150813_201452.mp4 from Box Queue at pos 14
[2015/08/13 20:24:09] Scheduled management tasks. Next at 1439455149
{2015/08/13 21:54:08} send smd 1
{2015/08/13 21:54:17} send smd 0
{2015/08/13 21:55:33} send smd 1
{2015/08/13 21:55:42} send smd 0
{2015/08/13 23:12:57} send smd 1
{2015/08/13 23:13:09} send smd 0
[2015/08/13 23:42:10] RaspiCam support started
[2015/08/13 23:42:11] Capture Pipe already exists /var/www/rpi1cam/FIFO1
[2015/08/13 23:42:11] Scheduler loop is started
[2015/08/13 23:42:12] New period detected 1
[2015/08/13 23:42:12] Send md 1
{2015/08/14 01:13:18} send smd 1
{2015/08/14 01:13:32} send smd 0
{2015/08/14 01:16:51} send smd 1
{2015/08/14 01:17:09} send smd 0
{2015/08/14 06:18:33} send smd 1
{2015/08/14 06:19:06} send smd 0
{2015/08/14 06:25:12} send smd 1
{2015/08/14 06:25:49} send smd 0
{2015/08/13 20:17:35} RaspiMJPEG Version 5.2.4
{2015/08/13 20:17:35} recommended video buffers 1
{2015/08/13 20:17:35} h264 buffers set to recommended 1
{2015/08/13 20:17:35} Set up internal detect width=121 height=68
{2015/08/13 20:17:35} Motion mask /home/pi/mask-121x68-cam.pgm loaded
{2015/08/13 20:17:35} MJPEG streaming, ready to receive commands
{2015/08/13 20:17:35} send smd 9
{2015/08/13 20:17:36} DEBUG 3
[2015/08/13 20:17:40] RaspiCam support started
[2015/08/13 20:17:41] Capture Pipe already exists /var/www/rpi1cam/FIFO1

btidey
Posts: 1635
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Thu Aug 13, 2015 9:34 pm

harlock74 wrote:Hi Robert,
I would like to report something odd that just happened with all my 3 RPIs running the same version of the software. Basically when I tap on the Motion settings I can only see the following fields available:-
1. Motion Vector Preview
2. Noise Level
3. Threshold
4. Mask Image
5. Change Frames to start
6. Still Frames tonstop
7. Save vectors to . dat

nothing else other than that.
Any ideas?
Cheers
There are two separate motion detection systems.

The original scheme uses the external separate 'motion' detection program to compare pixel data from the video stream and to generate triggers. When this is used there is a separate motion set up page.

The second scheme uses a feed of the vector data from the camera itself and is built into the raspimjpeg program. It does not used an external motion detect program but instead it calculates triggers itself. It is referred to as 'internal' motion detection. When it is active then there is no separate motion set up page but instead the set of parameters you describe. These actually give a functionally similar set of controls to determine how much motion change is needed to start and stop recordings. The advantage of the internal scheme is that the original filtering of data down to vector changes is being done by the GPU built into the Pi and it is much more efficient lowering the CPU load a lot. The vector preview control turns the live video feed into a display of the vector changes where the picture is mainly black apart from white areas where changes are happening.

On my systems I have been using the internal scheme successfully for the last couple of months and that is where future enhancements will be.

You can switch between the two systems using the camera settings control 'motion detect mode'

btidey
Posts: 1635
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Thu Aug 13, 2015 9:56 pm

triedonce wrote:I have noticed this in the logfile before. Any idea why the dates logged seem out of sequence? It looks like some entries were inserted in between the previous day.

{2015/08/13 20:14:56} Start boxing /var/www/rpi1cam/media/vi_0940_20150813_201452.mp4.h264 to /var/www/rpi1cam/media/vi_0940_20150813_201452.mp4 Queue pos 14
{2015/08/13 20:14:57} DEBUG 3
{2015/08/13 20:15:01} Finished boxing /var/www/rpi1cam/media/vi_0940_20150813_201452.mp4 from Box Queue at pos 14
[2015/08/13 20:24:09] Scheduled management tasks. Next at 1439455149
{2015/08/13 21:54:08} send smd 1
{2015/08/13 21:54:17} send smd 0
{2015/08/13 21:55:33} send smd 1
{2015/08/13 21:55:42} send smd 0
{2015/08/13 23:12:57} send smd 1
{2015/08/13 23:13:09} send smd 0
[2015/08/13 23:42:10] RaspiCam support started
[2015/08/13 23:42:11] Capture Pipe already exists /var/www/rpi1cam/FIFO1
[2015/08/13 23:42:11] Scheduler loop is started
[2015/08/13 23:42:12] New period detected 1
[2015/08/13 23:42:12] Send md 1
{2015/08/14 01:13:18} send smd 1
{2015/08/14 01:13:32} send smd 0
{2015/08/14 01:16:51} send smd 1
{2015/08/14 01:17:09} send smd 0
{2015/08/14 06:18:33} send smd 1
{2015/08/14 06:19:06} send smd 0
{2015/08/14 06:25:12} send smd 1
{2015/08/14 06:25:49} send smd 0
{2015/08/13 20:17:35} RaspiMJPEG Version 5.2.4
{2015/08/13 20:17:35} recommended video buffers 1
{2015/08/13 20:17:35} h264 buffers set to recommended 1
{2015/08/13 20:17:35} Set up internal detect width=121 height=68
{2015/08/13 20:17:35} Motion mask /home/pi/mask-121x68-cam.pgm loaded
{2015/08/13 20:17:35} MJPEG streaming, ready to receive commands
{2015/08/13 20:17:35} send smd 9
{2015/08/13 20:17:36} DEBUG 3
[2015/08/13 20:17:40] RaspiCam support started
[2015/08/13 20:17:41] Capture Pipe already exists /var/www/rpi1cam/FIFO1
If you look at the entries you will see that some have square brackets and some have curly brackets. This actually indicates where the events have been reported from. The square ones come from the web interface while the curly ones come from the raspimjpeg program. These two sources add the time stamps themselves so there can be differences if the time zone on the Raspberry has not been set up.

What time zone are you in?

That doesn't seem to explain everything here though. The file is just appended sequentially so I'm not sure how it could get out of order. It might be worth downloading and checking the file itself so one can see if the order is wrong in the file or if it is some anomaly in how it is being displayed.

triedonce
Posts: 12
Joined: Wed Jun 24, 2015 9:59 pm

Re: RPi Cam Web Interface

Fri Aug 14, 2015 1:21 am

btidey wrote:
triedonce wrote:I have noticed this in the logfile before. Any idea why the dates logged seem out of sequence? It looks like some entries were inserted in between the previous day.

{2015/08/13 20:14:56} Start boxing /var/www/rpi1cam/media/vi_0940_20150813_201452.mp4.h264 to /var/www/rpi1cam/media/vi_0940_20150813_201452.mp4 Queue pos 14
{2015/08/13 20:14:57} DEBUG 3
{2015/08/13 20:15:01} Finished boxing /var/www/rpi1cam/media/vi_0940_20150813_201452.mp4 from Box Queue at pos 14
[2015/08/13 20:24:09] Scheduled management tasks. Next at 1439455149
{2015/08/13 21:54:08} send smd 1
{2015/08/13 21:54:17} send smd 0
{2015/08/13 21:55:33} send smd 1
{2015/08/13 21:55:42} send smd 0
{2015/08/13 23:12:57} send smd 1
{2015/08/13 23:13:09} send smd 0
[2015/08/13 23:42:10] RaspiCam support started
[2015/08/13 23:42:11] Capture Pipe already exists /var/www/rpi1cam/FIFO1
[2015/08/13 23:42:11] Scheduler loop is started
[2015/08/13 23:42:12] New period detected 1
[2015/08/13 23:42:12] Send md 1
{2015/08/14 01:13:18} send smd 1
{2015/08/14 01:13:32} send smd 0
{2015/08/14 01:16:51} send smd 1
{2015/08/14 01:17:09} send smd 0
{2015/08/14 06:18:33} send smd 1
{2015/08/14 06:19:06} send smd 0
{2015/08/14 06:25:12} send smd 1
{2015/08/14 06:25:49} send smd 0
{2015/08/13 20:17:35} RaspiMJPEG Version 5.2.4
{2015/08/13 20:17:35} recommended video buffers 1
{2015/08/13 20:17:35} h264 buffers set to recommended 1
{2015/08/13 20:17:35} Set up internal detect width=121 height=68
{2015/08/13 20:17:35} Motion mask /home/pi/mask-121x68-cam.pgm loaded
{2015/08/13 20:17:35} MJPEG streaming, ready to receive commands
{2015/08/13 20:17:35} send smd 9
{2015/08/13 20:17:36} DEBUG 3
[2015/08/13 20:17:40] RaspiCam support started
[2015/08/13 20:17:41] Capture Pipe already exists /var/www/rpi1cam/FIFO1
If you look at the entries you will see that some have square brackets and some have curly brackets. This actually indicates where the events have been reported from. The square ones come from the web interface while the curly ones come from the raspimjpeg program. These two sources add the time stamps themselves so there can be differences if the time zone on the Raspberry has not been set up.

What time zone are you in?

That doesn't seem to explain everything here though. The file is just appended sequentially so I'm not sure how it could get out of order. It might be worth downloading and checking the file itself so one can see if the order is wrong in the file or if it is some anomaly in how it is being displayed.
Thanks for the quick response. I believe the time zone is set correctly both on the RPi (NZST) and in the Interface settings (Pacific/Auckland) and I don't normally have any issues with it.

However I do get a lot of iframe errors and instances in the log of 'send smd 1 / send smd 0' and the motion detection stops and the Pi is unresponsive but the live preview still works. I usually have to power cycle to reset the system. Also I have noticed the time showing in the preview sometimes slows while motion has been detected and is being recorded.

I am finding the system cannot be left alone to get on with its job as I have not been able to run uninterrupted for more than a few days.
I am running this on a B+ and via wifi and external access with nginx. I think I may have a weaker signal than if using a cable connection so I don't transfer files to my network drive.
Is this too much for a B+ to handle?

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

Re: RPi Cam Web Interface

Fri Aug 14, 2015 7:32 am

btidey wrote: There are two separate motion detection systems....
Hi Robert,
Many thanks for your so clear explanation. It all makes sense now.
Looking forward to see the future development then.
Cheers.

mrtamer
Posts: 4
Joined: Thu Oct 24, 2013 7:18 pm

Re: RPi Cam Web Interface

Fri Aug 14, 2015 8:07 am

btidey wrote:Strange. Haven't come across that one before in this context.

Couple of things. If you put a simple echo of text to a full path txt file at the top of the rc.local does that work during boot. That would help establish whether the rc.local was getting called at all. Second, the /etc/rc.local is invoked at boot time by /etc/init.d/rc.local. It looks like you can do that manually, but what do the permissions on that file look like? Do you still have pi as a user? Although that shouldn't matter, just trying to understand what might be different.
It was a good point to try something simple on rc.local. It did not produce anything on the boot, however with the manual run it worked just fine. So the issue is that rc.local is not executed at boot. The permissions of file /etc/init.d/rc.local look like

Code: Select all

-rwxr-xr-x 1 root root 782 Oct 15  2012 /etc/init.d/rc.local
The user is still pi.

robertogecco
Posts: 1
Joined: Mon Aug 17, 2015 10:55 am

Re: RPi Cam Web Interface

Mon Aug 17, 2015 1:28 pm

Hi all,

i have a problem on recording videos and images with the RPi Cam Web Interface to a mounted samba-share. The file is created, but has just 0 Bytes.
On starting the recording, the button "record video start" doesn´t change to "record video stop", so something must be wrong.

Manual recording (raspivid -o /var/www/media/test.h264) works without problems.

/etc/fstab:
//192.168.1.7/Videos/RPiCam /var/www/media cifs username=root,password=xxx,workgroup=workgroup,users,auto,user_xattr 0 0

Any ideas where the problem could be?

Cheers.

btidey
Posts: 1635
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Mon Aug 17, 2015 2:31 pm

robertogecco wrote:Hi all,

i have a problem on recording videos and images with the RPi Cam Web Interface to a mounted samba-share. The file is created, but has just 0 Bytes.
On starting the recording, the button "record video start" doesn´t change to "record video stop", so something must be wrong.

Manual recording (raspivid -o /var/www/media/test.h264) works without problems.

/etc/fstab:
//192.168.1.7/Videos/RPiCam /var/www/media cifs username=root,password=xxx,workgroup=workgroup,users,auto,user_xattr 0 0

Any ideas where the problem could be?

Cheers.
Possibly a permissions problem. raspimjpeg writes recordings as the web user www-data, so that user needs permissions on the share.

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

Re: RPi Cam Web Interface

Mon Aug 17, 2015 3:11 pm

btidey wrote:
Gary Littlemore wrote:How is the development of the internal motion detection coming along? Where is the project hoping to go long-term?
As far as long term I'd like to hear ideas.
It's always a little bit dangerous to ask for "wishes".
Mine would be

- syncing submitted jpgs to creation rate (espec. in the night i have up to 30fps while raspicam creates due to long shutters only about 0.5fps). This messes up wifi.

- adding the possibility to merge an audio stream to the live stream. Wherever audio comes from (alsa channel from additional audio card...). This is surely a very ambitious project. I could imagine that it would be possible if the project offers a container based AV-stream like ASF or rtsp. Would a raspi(2) be fast enough handling this audio/video interweaving..?

- the subject above (container stream) leads to the next point: offering H264 as a preview format. I did a few newbie-experiments with python-raspi-cam and learned that the delays could get down <=1s

cyanarnofsky
Posts: 70
Joined: Tue Jul 31, 2012 11:33 pm

Re: RPi Cam Web Interface

Mon Aug 17, 2015 8:42 pm

Curious about this error

Code: Select all

    The page at 192.168.10.163 says:
    Error in RaspiMJPEG: Could not send buffers to port
    Restart RaspiMJPEG (./RPi_Cam_Web_Interface_Installer.sh start) or the whole RPi.
Fresh raspbian update and upgrade, installed latest RPI Cam and keep getting this on start. Any ideas?


EDIT:!!! I am an idiot...didn't have camera enabled in Raspi-config. :( :D
Last edited by cyanarnofsky on Mon Aug 17, 2015 9:39 pm, edited 1 time in total.

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

Re: RPi Cam Web Interface

Mon Aug 17, 2015 8:59 pm

Is it possible to have more than one stream appear on a single page? I have 5 instances of RPi Cam around my house (I love this software!!) and it would be great to view all the streams on a single webpage.

I've had a quick stab at doing this without much luck. The following code is based on the embed section from the wiki along with some guesses at how to split the streams. Both the local and remote streams work by themselves, but when combined nothing appears on the webpage. Perhaps my method of splitting the functions isn't right?

allcams.php

Code: Select all

!DOCTYPE html>
<html>
  <head>
    <title>RPi Cam Preview</title>
    <script src="script_min2.js"></script>
  </head>
  <body onload="setTimeout('init();', 100);">
    <center>
      <div><img id="mjpeg_dest" /></div>
      <div><img id="mjpeg_dest2" /></div>
    </center>
 </body>
</html>
script_min2.js

Code: Select all

var mjpeg_img;
var mjpeg_img2;

function reload_img () {
  mjpeg_img.src = "http://<internal_ip>:<port>/cam_pic.php?time=" + new Date().getTime();
}

function reload_img2 () {
  mjpeg_img2.src = "cam_pic.php?time=" + new Date().getTime();"
}

function error_img () {
  setTimeout("mjpeg_img.src = '<internal_ip>:<port>/cam_pic.php?time=' + new Date().getTime();", 100);
}

function error_img2 () {
  setTimeout("mjpeg_img2.src = 'cam_pic.php?time=' + new Date().getTime();", 100);
}

function init() {
  mjpeg_img = document.getElementById("mjpeg_dest");
  mjpeg_img.onload = reload_img;
  mjpeg_img.onerror = error_img;
  reload_img();

  mjpeg_img2 = document.getElementById("mjpeg_dest2");
  mjpeg_img2.onload = reload_img2;
  mjpeg_img2.onerror = error_img2;
  reload_img2();
}
Thanks!

btidey
Posts: 1635
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Tue Aug 18, 2015 10:30 am

jarrah31 wrote:Is it possible to have more than one stream appear on a single page? I have 5 instances of RPi Cam around my house (I love this software!!) and it would be great to view all the streams on a single webpage.

I've had a quick stab at doing this without much luck. The following code is based on the embed section from the wiki along with some guesses at how to split the streams. Both the local and remote streams work by themselves, but when combined nothing appears on the webpage. Perhaps my method of splitting the functions isn't right?
Your basic idea is sound and will work, but you have a syntax error in the js

Code: Select all

function reload_img2 () {
  mjpeg_img2.src = "cam_pic.php?time=" + new Date().getTime();"
}
should be

Code: Select all

function reload_img2 () {
  mjpeg_img2.src = "cam_pic.php?time=" + new Date().getTime();
}
There is an extra quote on the end. Take that off and you get both views.

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

Re: RPi Cam Web Interface

Tue Aug 18, 2015 11:05 am

btidey wrote: There is an extra quote on the end. Take that off and you get both views.
Ahhh nice one, thanks!! I'll try that again when back home this evening. :)
In the long run I hope to create an additional page to the main RPi one where you can easily add and remove cameras. Needs a bit of experimenting first though.

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

Re: RPi Cam Web Interface

Tue Aug 18, 2015 6:18 pm

That works now, thanks for spotting the typo. :)

I have my camera preview width set to 800 so that I can capture more detail via iSpyConnect's motion detection (will move to the built-in motion detection soon), but when I combine feeds on a single page I end up with multiple large video streams on one page. As a result is there a way to reduce/constrain the size that is displayed without adjusting the source please?

Edit - I think I've figured this out by using css and restricting the div container size. I'll continue to play...

Thanks.

bdev
Posts: 1
Joined: Tue Aug 18, 2015 9:07 pm

Re: RPi Cam Web Interface

Tue Aug 18, 2015 9:35 pm

I am looking at the possibility of using this to record indoor sport events... and hopefully to enable people to download the recorded mp4 once the event has completed.

The recorded event would need to have the live audio stream encoded with it - am I being too simplistic to think this might be achieved by starting a separate audio capture at the same time the 'record video now' button is pressed, and then to use the MP4Box process to add this audio stream into the eventual mp4 file ?

Audio in the web browser isn't important, just the recorded stream thats available for download.

maltesea
Posts: 2
Joined: Wed Aug 19, 2015 3:53 pm

Re: RPi Cam Web Interface

Wed Aug 19, 2015 3:58 pm

Hello. I am totally new to Pi and to the camera interface. I have things up and running and think this is a great idea. However, when I plug in the IP address as the URL, I get a page with the control features appearing but a broken image icon or just a LOADING message that appears above the controls. I tried adjusting some settings on the page and rebooting, but nothing changed. I also tried searching this forum but nothing came up with this. Any ideas? Thanks!

Gary Littlemore
Posts: 327
Joined: Thu Oct 11, 2012 11:52 am
Location: Cheshire, UK

Re: RPi Cam Web Interface

Thu Aug 20, 2015 11:58 am

maltesea wrote:Hello. I am totally new to Pi and to the camera interface. I have things up and running and think this is a great idea. However, when I plug in the IP address as the URL, I get a page with the control features appearing but a broken image icon or just a LOADING message that appears above the controls. I tried adjusting some settings on the page and rebooting, but nothing changed. I also tried searching this forum but nothing came up with this. Any ideas? Thanks!
Lots of people asking about 'Loading' within this post... search.php?keywords=Loading&t=63276&sf=msgonly
3b+, 2b, b+, b, Zero & Zero-W

btidey
Posts: 1635
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Thu Aug 20, 2015 12:11 pm

bdev wrote:I am looking at the possibility of using this to record indoor sport events... and hopefully to enable people to download the recorded mp4 once the event has completed.

The recorded event would need to have the live audio stream encoded with it - am I being too simplistic to think this might be achieved by starting a separate audio capture at the same time the 'record video now' button is pressed, and then to use the MP4Box process to add this audio stream into the eventual mp4 file ?

Audio in the web browser isn't important, just the recorded stream thats available for download.
One of the main challenges is getting decent sync between the audio and video. This is made extra tricky if using the pre-trigger buffer which holds a variable amount of video data. However, this is mainly used for motion triggered recordings and if you are not using that then you can leave the buffer at 0 which eliminates that issue.

The next item is triggering the audio recording. One could do that by intercepting the web call starting the video but a better way would be if there was a start video macro like the end ones. Then that could be used to initiate the audio with minimum latency.

Edit: Latest version now has a start video macro call added. macros/start_vid.sh will be called at the start of a video recording. See wiki for details on job macros

maltesea
Posts: 2
Joined: Wed Aug 19, 2015 3:53 pm

Re: RPi Cam Web Interface

Thu Aug 20, 2015 12:43 pm

Gary Littlemore wrote:
maltesea wrote:Hello. I am totally new to Pi and to the camera interface. I have things up and running and think this is a great idea. However, when I plug in the IP address as the URL, I get a page with the control features appearing but a broken image icon or just a LOADING message that appears above the controls. I tried adjusting some settings on the page and rebooting, but nothing changed. I also tried searching this forum but nothing came up with this. Any ideas? Thanks!
Lots of people asking about 'Loading' within this post... search.php?keywords=Loading&t=63276&sf=msgonly

Thanks! It turns out that I needed to run"./RPi_Cam_Web_Interface_Installer.sh" for "start" after installation. I was thrown by the fact that it seemed I would need to install it again instead of just changing a setting, but that's not the case.

Return to “Camera board”