xab
Posts: 23
Joined: Sat Jan 24, 2015 1:24 pm

Re: RPi Cam Web Interface

Sun Apr 26, 2015 3:05 pm

btidey wrote:
electronicsguy wrote:Is there any log (apart from the /var/log/apache2 that'll tell me what operations were last performed when someone connected... like how long did they view the images, or if any files were downloaded?
There is no specific logging on those at the moment.
Adding in log items for downloads or other user triggered activity is pretty easy. It is more a matter of not wanting to clutter the logs up too much. We might want to have categories for log events.

How long people are spending on looking at stuff is more problematic without using apache info.
Well I have some sort of log event categories done for printLog (Default, Info, Success, Alert, Warning, Error) and it works.. I can set the logging level (e.g. success) and everything that is below that level (Default, Info) is not being logged.. Is this what we might want?

chum
Posts: 9
Joined: Wed Jan 28, 2015 8:56 pm

Re: RPi Cam Web Interface

Sun Apr 26, 2015 4:32 pm

btidey wrote:
chum wrote:I am still on old (pre Robert) branch but eager to try out the latest and greatest soon.

Let me throw out a feature idea: When used in motion sensing mode, when I come back home, I just want to browse all those snippets of the day recorded as 30-40 mp4 files. Currently (in the old branch) I need to open and browse one by one. Is it possible to
- automatically pack them into one combined video (say after the end of the day)
- have a user control to do that (preferred)

Great stuff and thanks to Robert/Silva for picking this up again!
All the latest stuff including download previews is folded back in the original silvanmelchior so just follow the wiki instructions.

Part of the original driving force for the improvements was indeed to make it easier to preview and select the individual snippets without having to open them one by one. So I suggest trying that out first.
Ok. I revved my pi with the new branch. Cool stuff. Love the previews. Still have to check out the scheduler for time lapse.
Now on to the Zips download:
- For my chrome on my desktop Hitting Get Zip does not trigger any update on the webconsole. It does not show the progress bar. On SSH'ing it, i do see th Zip files do get created though. On firefox and my adroid-chrome, I can see the progress bar and a download also succeeds. Any idea if I have some bad chrome settings? I checked and it is up to date.
- The way it is designed is that it downloads the zipped file of all the mp4. I was thinking of something that could combine into a single mp4 files which is later downloaded. Have you looked into avconv or ffmpeg or memcoder to do these. Is the computational power an issue? I am on Pi "B". If computational power is an issue and then can you suggest simple tools on Windows to do this quickly or maybe it is down at the host computer for you upon download but by your script.

Thoughts?

rogerjames99
Posts: 29
Joined: Fri Sep 28, 2012 2:58 pm

Re: lockup in evening - watchdog did not fix it

Sun Apr 26, 2015 5:09 pm

btidey wrote: If the lock ups are all on model As then it might be worth focussing on that. My model B systems seem super stable and I don't experience crashes. If the A runs out of run time memory then the watchdog is not going to help. It is worth trying the GPU memory reduction and MP4Box inline mode.
The lockup I reported a few posts ago occured on a B+.

Roger

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

Re: RPi Cam Web Interface

Sun Apr 26, 2015 7:35 pm

chum wrote:[

Ok. I revved my pi with the new branch. Cool stuff. Love the previews. Still have to check out the scheduler for time lapse.
Now on to the Zips download:
- For my chrome on my desktop Hitting Get Zip does not trigger any update on the webconsole. It does not show the progress bar. On SSH'ing it, i do see th Zip files do get created though. On firefox and my adroid-chrome, I can see the progress bar and a download also succeeds. Any idea if I have some bad chrome settings? I checked and it is up to date.
- The way it is designed is that it downloads the zipped file of all the mp4. I was thinking of something that could combine into a single mp4 files which is later downloaded. Have you looked into avconv or ffmpeg or memcoder to do these. Is the computational power an issue? I am on Pi "B". If computational power is an issue and then can you suggest simple tools on Windows to do this quickly or maybe it is down at the host computer for you upon download but by your script.

Thoughts?
If its working on Firefox and Android Chrome then it sounds like a style or progress update issue if the bar is not showing up as the zipping server side does not really depend on what the client is. This does work OK on my PC Chrome and other browsers but for some reason is not working on your PC Chrome

On the server side the zip operation runs as a script (raspizip.sh) which is adding files to a zip and updating a status file with a n/m status where n is the number currently being added and m is the total. When the zip script finishes the status file is removed and this gets reported as zip complete.

At the client end the client is repeatedly requesting the status and is should be updating the progress accordingly. When the zip is complete then it requests the download.

So one important piece of information is whether the download actually happens if you leave it long enough even if the progress doesn't change. If it does eventually take place then there is some issue with painting the progress bar. If it doesn't then it would seem to be some problem with the fetching of the status.

A good way of seeing what is going on is to turn on developer tools in Chrome from the More tools menu. If you select the network tab and kick off a zip download you should see something like below.
There should be repeated GET calls sent from a javascript line which is the client requesting the progress data. When this completes then you get a Post which is the client kicking off the download. If you are not seeing this then look in the console tab to see if any errors are being reported.

On the subject of combining mp4s on the Pi prior to downloading that is going to be painfully slow on the Pi and much slower than zipping. I have used ffpmeg and avconv for doing this sort of thing on the Pi but I much prefer to get them to the PC and do any further post-processing there.
Attachments
zip1.jpg
zip1.jpg (55.79 KiB) Viewed 2107 times
Last edited by btidey on Sun Apr 26, 2015 7:45 pm, edited 1 time in total.

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

Re: lockup in evening - watchdog did not fix it

Sun Apr 26, 2015 7:44 pm

rogerjames99 wrote:
btidey wrote: If the lock ups are all on model As then it might be worth focussing on that. My model B systems seem super stable and I don't experience crashes. If the A runs out of run time memory then the watchdog is not going to help. It is worth trying the GPU memory reduction and MP4Box inline mode.
The lockup I reported a few posts ago occured on a B+.

Roger
Thanks. It would be good if anyone reporting crashes said whether it was A or B or Pi2 and if possible include a little snip from the log.

In your case the crash looks a bit different to the other one reported. It was failing to write all the bytes being sent by the camera. It did that a few times then appeared to crash.

That does also seem to be from an earlier version of raspimjpeg (5.1.0) whereas the latest one is 5.1.3 and reports that error message a little differently if it happens.

Probably worth updating first.

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

Re: RPi Cam Web Interface

Sun Apr 26, 2015 8:31 pm

xab wrote: Well I have some sort of log event categories done for printLog (Default, Info, Success, Alert, Warning, Error) and it works.. I can set the logging level (e.g. success) and everything that is below that level (Default, Info) is not being logged.. Is this what we might want?
Useful to have a log-level like that but I got the impression that was being asked for was both extra log items and then maybe a way of filtering the log into different usage categories.

If the requirement is to get reports on say download usage then I suspect it may be best just to get the extra items into the log and do analysis off-line after downloading the log.

xab
Posts: 23
Joined: Sat Jan 24, 2015 1:24 pm

Re: RPi Cam Web Interface

Sun Apr 26, 2015 9:27 pm

btidey wrote:
xab wrote: Well I have some sort of log event categories done for printLog (Default, Info, Success, Alert, Warning, Error) and it works.. I can set the logging level (e.g. success) and everything that is below that level (Default, Info) is not being logged.. Is this what we might want?
Useful to have a log-level like that but I got the impression that was being asked for was both extra log items and then maybe a way of filtering the log into different usage categories.

If the requirement is to get reports on say download usage then I suspect it may be best just to get the extra items into the log and do analysis off-line after downloading the log.
Alright, perhaps.. The MySQL database part (I've set up on my fork) would also help with filtering the logs.. Currently what I'm having looks like this : Image
However about the download stats and page viewing statistics.. idk.. perhaps some kind of js + sql combo ?(I have no idea, just guessing something here)

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

How does Purge-Space work?

Mon Apr 27, 2015 1:46 am

On the schedule.php page I have selected "Max Usage %" for PurgeSpace_ModeEx and for PurgeSpace_Level I have 75% (I also tried just "75"). For Management_Interval I have 60 and the log shows the parameter change being saved, and subsequently a management task running every minute (actually every 61 seconds). However, my disk usage on the preview.php page continues to show "Used:95.5% Total:7369(MB)" and about half of that is the video/images stored from the RPi Web program. What else do I need to do to activate trimming of the stored video/images ?

I also tried to set the mode to "Max Usage GB" and PurgeSpace_Level at 6, but that didn't delete anything either.

EDIT: I think I understand it, the "PurgeSpace_Level" refers only to the storage space occupied by /var/www/media, but the value reported on the preview page is the total disk space! So I set PurgeSpace_Level to 1 GB and that did get rid of some files right away.

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

Re: RPi Cam Web Interface

Mon Apr 27, 2015 2:09 am

For reference, here's a log file for the time leading up to the raspimjpeg lockup. The timestamp on the last frame captured reads 2015/04/25 20:20:06. Judging by the flurry of captures in the few minutes beforehand, it might be a memory issue on my Model A+.

Code: Select all

[2015/04/25 20:17:16] Start capture requested
[2015/04/25 20:17:16] Send ca 1
{2015/04/25 20:17:16} Capturing started
[2015/04/25 20:17:22] Stop capture requested
[2015/04/25 20:17:26] Send ca 0
[2015/04/25 20:17:28] Start capture requested
[2015/04/25 20:17:29] Send ca 1
{2015/04/25 20:17:29} Capturing stopped
{2015/04/25 20:17:29} Boxing in background
{2015/04/25 20:17:29} Capturing started
[2015/04/25 20:17:34] Stop capture requested
[2015/04/25 20:17:38] Send ca 0
{2015/04/25 20:17:38} Capturing stopped
{2015/04/25 20:17:38} Boxing in background
[2015/04/25 20:17:40] Start capture requested
[2015/04/25 20:17:40] Send ca 1
[2015/04/25 20:17:42] Stop capture requested
[2015/04/25 20:17:45] Send ca 0
{2015/04/25 20:17:45} Capturing started
{2015/04/25 20:17:45} Capturing stopped
{2015/04/25 20:17:45} Boxing in background
[2015/04/25 20:17:55] Start capture requested
[2015/04/25 20:17:55] Send ca 1
{2015/04/25 20:17:55} Capturing started
[2015/04/25 20:17:57] Stop capture requested
[2015/04/25 20:17:57] Send ca 0
{2015/04/25 20:17:57} Capturing stopped
{2015/04/25 20:17:57} Boxing in background
[2015/04/25 20:17:59] Start capture requested
[2015/04/25 20:18:06] Send ca 1
{2015/04/25 20:18:06} Capturing started
[2015/04/25 20:18:10] Scheduled management tasks. Next at 1430018350
[2015/04/25 20:18:11] Stop capture requested
[2015/04/25 20:18:11] Send ca 0
{2015/04/25 20:18:11} Capturing stopped
{2015/04/25 20:18:12} Boxing in background
[2015/04/25 20:18:14] Start capture requested
[2015/04/25 20:18:14] Send ca 1
[2015/04/25 20:18:19] Stop capture requested
[2015/04/25 20:18:21] Send ca 0
{2015/04/25 20:18:21} Capturing started
{2015/04/25 20:18:21} Capturing stopped
{2015/04/25 20:18:22} Boxing in background
[2015/04/25 20:18:49] Start capture requested
[2015/04/25 20:18:49] Send ca 1
{2015/04/25 20:18:51} Capturing started
[2015/04/25 20:18:56] Stop capture requested
[2015/04/25 20:19:00] Send ca 0
{2015/04/25 20:19:00} Capturing stopped
{2015/04/25 20:19:00} Boxing in background
[2015/04/25 20:19:02] Start capture requested
[2015/04/25 20:19:12] Send ca 1
{2015/04/25 20:19:13} Capturing started
[2015/04/25 20:19:15] Stop capture requested
[2015/04/25 20:19:15] Send ca 0
{2015/04/25 20:19:15} Capturing stopped
{2015/04/25 20:19:15} Boxing in background
[2015/04/25 20:19:17] Start capture requested
[2015/04/25 20:19:17] Send ca 1
{2015/04/25 20:19:17} Capturing started
[2015/04/25 20:19:19] Stop capture requested
[2015/04/25 20:19:21] Send ca 0
{2015/04/25 20:19:21} Capturing stopped
{2015/04/25 20:19:21} Boxing in background
[2015/04/25 20:19:23] Scheduled management tasks. Next at 1430018423
[2015/04/25 20:19:23] Start capture requested
[2015/04/25 20:19:23] Send ca 1
{2015/04/25 20:19:23} Capturing started
[2015/04/25 20:19:25] Stop capture requested
[2015/04/25 20:19:25] Send ca 0
{2015/04/25 20:19:26} Capturing stopped
{2015/04/25 20:19:26} Boxing in background
[2015/04/25 20:19:27] Start capture requested
[2015/04/25 20:19:27] Send ca 1
{2015/04/25 20:19:28} Capturing started
[2015/04/25 20:19:43] Stop capture requested
[2015/04/25 20:19:52] Send ca 0
{2015/04/25 20:19:52} Capturing stopped
{2015/04/25 20:19:53} Boxing in background
[2015/04/25 20:19:54] Start capture requested
[2015/04/25 20:19:54] Send ca 1
{2015/04/25 20:19:54} Capturing started
[2015/04/25 20:20:09] Stop capture requested
[2015/04/25 20:20:09] Send ca 0
[2015/04/25 20:20:24] Scheduled management tasks. Next at 1430018484
[2015/04/25 20:21:25] Scheduled management tasks. Next at 1430018545

Sephiron
Posts: 13
Joined: Fri Mar 27, 2015 11:10 am

Re: RPi Cam Web Interface

Mon Apr 27, 2015 7:32 am

I have experienced the hangup on my A model, though it did have slightly older version, so it didn't have watchdog. How is the progress on fixing the hangups in the newer version? Can it be done so that if boxing starts taking too much space, then the videos will just be saved to disk unboxed, and maybe later when the system will have more memory, it would restart boxing them again?
Thanks again for the great work!

xab
Posts: 23
Joined: Sat Jan 24, 2015 1:24 pm

Re: RPi Cam Web Interface

Mon Apr 27, 2015 8:23 am

Since I'm having some unknown problems with thumbnail saving I looked at the code and started wondering, why is that thumb_create such a complex function?
This function could look like this:

Code: Select all

void thumb_create(char *from_filename, char source) {
   char *thumb_name = 0;
   //Check if thumbnail needed for this type of source
   if (cfg_stru[c_thumb_gen] != 0 && strchr(cfg_stru[c_thumb_gen], source) != NULL) {   
      asprintf(&thumb_name, "%s.th", from_filename);
      copy_file(cfg_stru[c_preview_path], thumb_name);
      free(thumb_name);
   }
}
And then in HTML it could be done like this:

Code: Select all

<img src="/path/file.jpg.th" width="120" height="120">
<img src="/path/file.h264.th" width="120" height="120">
This should totally work but I can test this once I get home... What do You guys think about this? :roll:

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

Re: RPi Cam Web Interface

Mon Apr 27, 2015 9:32 am

xab wrote:Since I'm having some unknown problems with thumbnail saving I looked at the code and started wondering, why is that thumb_create such a complex function?
This function could look like this:

Code: Select all

void thumb_create(char *from_filename, char source) {
   char *thumb_name = 0;
   //Check if thumbnail needed for this type of source
   if (cfg_stru[c_thumb_gen] != 0 && strchr(cfg_stru[c_thumb_gen], source) != NULL) {   
      asprintf(&thumb_name, "%s.th", from_filename);
      copy_file(cfg_stru[c_preview_path], thumb_name);
      free(thumb_name);
   }
}
And then in HTML it could be done like this:

Code: Select all

<img src="/path/file.jpg.th" width="120" height="120">
<img src="/path/file.h264.th" width="120" height="120">
This should totally work but I can test this once I get home... What do You guys think about this? :roll:
There is extra code in the thumb_create which deals with extra requirements in the thumbnail name for the current web site operation. These allow the thumbnail name to be used to find the location of the capture files, irrespective of the naming strategy used for the capture files.

Specifically extra bits are including the type of capture, the right index number, dealing with sub-folders and also with video captures where boxing is off as this changes the name usage.

If one is separately using a database, as a I think you are, to hold thumbnail names and associated captures then one could use a different thumbnail naming strategy. At the moment the web site operation does not rely on a back end database so the current naming strategy is how the web operation works.

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

Re: RPi Cam Web Interface

Mon Apr 27, 2015 9:41 am

Sephiron wrote:I have experienced the hangup on my A model, though it did have slightly older version, so it didn't have watchdog. How is the progress on fixing the hangups in the newer version? Can it be done so that if boxing starts taking too much space, then the videos will just be saved to disk unboxed, and maybe later when the system will have more memory, it would restart boxing them again?
Thanks again for the great work!
We don't know the root cause of hang-ups at the moment although the most likely theory is that a primary cause is memory issues which are more likely to occur on a Model A where by default there is only 128MB of operational memory with 128MB allocated to GPU.

I don't use A's so I can't really test but it would be good if somebody could try reducing GPU allocation from 128MB down to 64MB which could make quite a difference.

Also today one could set MP4Boxing to Inline which means that only one MP4Box runs at a time. This was the original mode of operation. It does mean, however, that this must complete before the next video capture can start and leads to a gap between capture stop and being ready for the next.

I am looking at adding a small queue to the boxing commands so they can be set to run in the background but only one gets launched at a time.

xab
Posts: 23
Joined: Sat Jan 24, 2015 1:24 pm

Re: RPi Cam Web Interface

Mon Apr 27, 2015 10:09 am

btidey wrote:
There is extra code in the thumb_create which deals with extra requirements in the thumbnail name for the current web site operation. These allow the thumbnail name to be used to find the location of the capture files, irrespective of the naming strategy used for the capture files.

Specifically extra bits are including the type of capture, the right index number, dealing with sub-folders and also with video captures where boxing is off as this changes the name usage.

If one is separately using a database, as a I think you are, to hold thumbnail names and associated captures then one could use a different thumbnail naming strategy. At the moment the web site operation does not rely on a back end database so the current naming strategy is how the web operation works.
At the moment I think that I'm not going to use database to store thumbnail information.. I will just take the video/image information from database and then simply add ".th" at the end of the file name in order to use thumbnails. Thumbnails would be stored in the same folder as video/image.
Why I'd do it like this? It would make things for me slightly simpler (as explained above). When removing files I can simply add
"*" at the end of the file name which is going to be deleted (it should take care of the file with the .th end). For now all I see is the positive result, can't think of anything bad about this but perhaps yes, it might be only useful for me, I was just trying to offer an idea which might simplify things (since i'm using my own version of the web interface, I have little to no idea whats going on in .php files :roll: )

Jasimo
Posts: 51
Joined: Mon Apr 27, 2015 11:50 am

Re: RPi Cam Web Interface

Mon Apr 27, 2015 11:56 am

Hi,

first of all, thx for this great coding.
I have one small issue regarding the purge mechanism.
I set the PurgeVideo_Hours to "24", because i want tpo purge video older than 24 hours (one day). The Management_Interval is set to "1800", so the management job will run every 30 Minutes (which should also trigger the Purging).
As Management_Command i have "cp -un /var/www/media/*.mp4 /mnt/cam1" to copy over all files to my nas (every 30 Minutes).

My problem is now, the purging of Videos older than 24 hours doesn´t work, could anyone help me on this?

rgs

Jan

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

Re: RPi Cam Web Interface

Mon Apr 27, 2015 2:05 pm

Jasimo wrote:Hi,

first of all, thx for this great coding.
I have one small issue regarding the purge mechanism.
I set the PurgeVideo_Hours to "24", because i want tpo purge video older than 24 hours (one day). The Management_Interval is set to "1800", so the management job will run every 30 Minutes (which should also trigger the Purging).
As Management_Command i have "cp -un /var/www/media/*.mp4 /mnt/cam1" to copy over all files to my nas (every 30 Minutes).

My problem is now, the purging of Videos older than 24 hours doesn´t work, could anyone help me on this?

rgs

Jan
That should be working. I just did a quick test and it purged what I expected.

Is your management command working OK? Do you see that appearing in the log?

You have to save settings for any change to take effect and the management interval effectively gets set so that it runs straight away which makes testing a bit easier. So if you set PurgeVideo_Hours to just less than the age of the oldest video then you should see Purged 1 file in the log.

Jasimo
Posts: 51
Joined: Mon Apr 27, 2015 11:50 am

Re: RPi Cam Web Interface

Mon Apr 27, 2015 4:25 pm

thx for supporting me on this.
Yes the managment command works and i can see it in the log like this:

Code: Select all

[2015/04/27 14:00:42] Scheduled management tasks. Next at 1430137842
[2015/04/27 14:00:42] exec: cp -un /var/www/media/*.mp4 /mnt/cam1
I have attached a screenie of my configuration, could have something to do with 12/24 hour clock.

rgs

Jan
Attachments
2015-04-27 18_21_05-.jpg
Sched Config
2015-04-27 18_21_05-.jpg (50.94 KiB) Viewed 1895 times

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

Re: RPi Cam Web Interface

Mon Apr 27, 2015 5:04 pm

Jasimo wrote:thx for supporting me on this.
Yes the managment command works and i can see it in the log like this:

Code: Select all

[2015/04/27 14:00:42] Scheduled management tasks. Next at 1430137842
[2015/04/27 14:00:42] exec: cp -un /var/www/media/*.mp4 /mnt/cam1
I have attached a screenie of my configuration, could have something to do with 12/24 hour clock.

rgs

Jan
Can't see anything wrong at the moment. 12/24 shouldn't be a factor.

The purge gets the current time as a unix timestamp in hours since 1970. It then loops over the files getting their timestamp again as a unix time in hours. Then purges any file that is older than current time by more than the setting. The only thing that should disturb this would be some external process touching the timestamps of the thumbnail files. The cp doesn't do that.

If you want to dig deeper I have atached a debug version of the scheduler.php which logsa bit of activity in the purging to try to see what might be going wrong.

This gives extra stuff in the log like

Code: Select all

[2015/04/27 17:56:07] Scheduled management tasks. Next at 1430157361
[2015/04/27 17:56:07] Start Purge Check at 397264.93527778
[2015/04/27 17:56:07] Checking vi_0135_20150427_174407.mp4.v0135.th.jpg with timestamp 397264.73527778 purgeHours 12
[2015/04/27 17:56:07] Checking vi_0136_20150427_174510.mp4.v0136.th.jpg with timestamp 397264.75277778 purgeHours 12
[2015/04/27 17:56:07] Checking vi_0137_20150427_174516.mp4.v0137.th.jpg with timestamp 397264.75444444 purgeHours 12
[2015/04/27 17:56:07] Checking vi_0138_20150427_174521.mp4.v0138.th.jpg with timestamp 397264.75583333 purgeHours 12
Where the start logs the current time and then for each file it logs the file time. Any file with a time less than current time less purgehours should be deleted.

If you want to try this then in /var/www
backup your original schedule.php
copy in the debug version
In the scheduler screen press stop followed by start which loads the debug version.
Within a few seconds the log should then show it checking your current files.

To restore non debug version, copy your backup schedule.php back in and press stop followed by start again.
Attachments
schedule.zip
(7.69 KiB) Downloaded 33 times

Jasimo
Posts: 51
Joined: Mon Apr 27, 2015 11:50 am

Re: RPi Cam Web Interface

Mon Apr 27, 2015 5:21 pm

thx for the debug scheduler.php here is the outcome of the log:

Code: Select all

[2015/04/27 19:15:17] Scheduled management tasks. Next at 1430156713
[2015/04/27 19:15:17] Start Purge Check at 397265.25472222
[2015/04/27 19:15:17] Checking vi_0017_20150426_111252.mp4.v0017.th.jpg with timestamp 397233.21444444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0018_20150426_111325.mp4.v0018.th.jpg with timestamp 397233.22361111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0019_20150426_111404.mp4.v0019.th.jpg with timestamp 397233.23444444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0020_20150426_111435.mp4.v0020.th.jpg with timestamp 397233.24305556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0021_20150426_111450.mp4.v0021.th.jpg with timestamp 397233.24722222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0022_20150426_111802.mp4.v0022.th.jpg with timestamp 397233.30055556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0023_20150426_111806.mp4.v0023.th.jpg with timestamp 397233.30166667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0024_20150426_111810.mp4.v0024.th.jpg with timestamp 397233.30277778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0025_20150426_111815.mp4.v0025.th.jpg with timestamp 397233.30416667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0026_20150426_111819.mp4.v0026.th.jpg with timestamp 397233.30527778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0027_20150426_111823.mp4.v0027.th.jpg with timestamp 397233.30638889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0028_20150426_111827.mp4.v0028.th.jpg with timestamp 397233.3075 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0029_20150426_111849.mp4.v0029.th.jpg with timestamp 397233.31361111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0030_20150426_111925.mp4.v0030.th.jpg with timestamp 397233.32361111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0031_20150426_112519.mp4.v0031.th.jpg with timestamp 397233.42194444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0032_20150426_112755.mp4.v0032.th.jpg with timestamp 397233.46527778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0033_20150426_112800.mp4.v0033.th.jpg with timestamp 397233.46722222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0034_20150426_112814.mp4.v0034.th.jpg with timestamp 397233.47055556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0035_20150426_112826.mp4.v0035.th.jpg with timestamp 397233.47388889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0067_20150426_133516.mp4.v0067.th.jpg with timestamp 397235.58777778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0068_20150426_133524.mp4.v0068.th.jpg with timestamp 397235.59 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0069_20150426_134156.mp4.v0069.th.jpg with timestamp 397235.69888889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0070_20150426_134200.mp4.v0070.th.jpg with timestamp 397235.7 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0071_20150426_134204.mp4.v0071.th.jpg with timestamp 397235.70111111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0072_20150426_134208.mp4.v0072.th.jpg with timestamp 397235.70222222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0073_20150426_135010.mp4.v0073.th.jpg with timestamp 397235.83611111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0074_20150426_135138.mp4.v0074.th.jpg with timestamp 397235.86055556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0075_20150426_135153.mp4.v0075.th.jpg with timestamp 397235.86472222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0076_20150426_135212.mp4.v0076.th.jpg with timestamp 397235.87 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0077_20150426_135337.mp4.v0077.th.jpg with timestamp 397235.89361111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0078_20150426_135410.mp4.v0078.th.jpg with timestamp 397235.90277778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0079_20150426_135442.mp4.v0079.th.jpg with timestamp 397235.91166667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0080_20150426_135501.mp4.v0080.th.jpg with timestamp 397235.91666667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0081_20150426_135546.mp4.v0081.th.jpg with timestamp 397235.92972222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0082_20150426_140041.mp4.v0082.th.jpg with timestamp 397236.01138889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0083_20150426_140045.mp4.v0083.th.jpg with timestamp 397236.0125 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0084_20150426_140050.mp4.v0084.th.jpg with timestamp 397236.01388889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0085_20150426_140055.mp4.v0085.th.jpg with timestamp 397236.01527778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0086_20150426_140059.mp4.v0086.th.jpg with timestamp 397236.01638889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0087_20150426_140110.mp4.v0087.th.jpg with timestamp 397236.01944444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0088_20150426_140116.mp4.v0088.th.jpg with timestamp 397236.02111111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0089_20150426_140125.mp4.v0089.th.jpg with timestamp 397236.02361111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0090_20150426_140129.mp4.v0090.th.jpg with timestamp 397236.02472222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0091_20150426_140133.mp4.v0091.th.jpg with timestamp 397236.02583333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0092_20150426_140205.mp4.v0092.th.jpg with timestamp 397236.03472222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0093_20150426_140233.mp4.v0093.th.jpg with timestamp 397236.04305556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0094_20150426_142904.mp4.v0094.th.jpg with timestamp 397236.48444444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0095_20150426_142908.mp4.v0095.th.jpg with timestamp 397236.48555556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0096_20150426_142913.mp4.v0096.th.jpg with timestamp 397236.48694444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0097_20150426_142917.mp4.v0097.th.jpg with timestamp 397236.48805556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0098_20150426_142921.mp4.v0098.th.jpg with timestamp 397236.48916667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0099_20150426_142925.mp4.v0099.th.jpg with timestamp 397236.49027778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0100_20150426_143146.mp4.v0100.th.jpg with timestamp 397236.52944444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0101_20150426_143150.mp4.v0101.th.jpg with timestamp 397236.53055556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0102_20150426_143208.mp4.v0102.th.jpg with timestamp 397236.53583333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0103_20150426_143212.mp4.v0103.th.jpg with timestamp 397236.53666667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0104_20150426_143216.mp4.v0104.th.jpg with timestamp 397236.53805556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0105_20150426_143220.mp4.v0105.th.jpg with timestamp 397236.53888889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0106_20150426_143224.mp4.v0106.th.jpg with timestamp 397236.54 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0107_20150426_143229.mp4.v0107.th.jpg with timestamp 397236.54138889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0108_20150426_143233.mp4.v0108.th.jpg with timestamp 397236.5425 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0109_20150426_144823.mp4.v0109.th.jpg with timestamp 397236.80638889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0110_20150426_145045.mp4.v0110.th.jpg with timestamp 397236.84583333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0111_20150426_145057.mp4.v0111.th.jpg with timestamp 397236.84916667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0120_20150426_145254.mp4.v0120.th.jpg with timestamp 397236.88166667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0121_20150426_145328.mp4.v0121.th.jpg with timestamp 397236.89111111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0122_20150426_145341.mp4.v0122.th.jpg with timestamp 397236.89472222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0123_20150426_145348.mp4.v0123.th.jpg with timestamp 397236.89666667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0142_20150426_152013.mp4.v0142.th.jpg with timestamp 397237.33694444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0143_20150426_152018.mp4.v0143.th.jpg with timestamp 397237.33833333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0144_20150426_152032.mp4.v0144.th.jpg with timestamp 397237.34222222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0145_20150426_152037.mp4.v0145.th.jpg with timestamp 397237.34361111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0146_20150426_152100.mp4.v0146.th.jpg with timestamp 397237.35 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0147_20150426_152107.mp4.v0147.th.jpg with timestamp 397237.35194444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0148_20150426_152119.mp4.v0148.th.jpg with timestamp 397237.35527778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0149_20150426_154152.mp4.v0149.th.jpg with timestamp 397237.69777778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0150_20150426_160315.mp4.v0150.th.jpg with timestamp 397238.05416667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0151_20150426_160348.mp4.v0151.th.jpg with timestamp 397238.06333333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0152_20150426_160419.mp4.v0152.th.jpg with timestamp 397238.07194444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0153_20150426_160434.mp4.v0153.th.jpg with timestamp 397238.07611111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0154_20150426_160449.mp4.v0154.th.jpg with timestamp 397238.08027778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0155_20150426_160500.mp4.v0155.th.jpg with timestamp 397238.08333333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0156_20150426_160510.mp4.v0156.th.jpg with timestamp 397238.08611111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0157_20150426_160551.mp4.v0157.th.jpg with timestamp 397238.0975 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0158_20150426_160616.mp4.v0158.th.jpg with timestamp 397238.10444444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0159_20150426_160632.mp4.v0159.th.jpg with timestamp 397238.10888889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0160_20150426_160659.mp4.v0160.th.jpg with timestamp 397238.11638889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0161_20150426_160707.mp4.v0161.th.jpg with timestamp 397238.11861111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0162_20150426_160717.mp4.v0162.th.jpg with timestamp 397238.12138889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0163_20150426_170001.mp4.v0163.th.jpg with timestamp 397239.00027778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0164_20150426_170027.mp4.v0164.th.jpg with timestamp 397239.0075 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0165_20150426_170039.mp4.v0165.th.jpg with timestamp 397239.01083333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0166_20150426_170051.mp4.v0166.th.jpg with timestamp 397239.01416667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0167_20150426_170114.mp4.v0167.th.jpg with timestamp 397239.02055556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0168_20150426_170125.mp4.v0168.th.jpg with timestamp 397239.02361111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0169_20150426_170140.mp4.v0169.th.jpg with timestamp 397239.02777778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0170_20150426_170157.mp4.v0170.th.jpg with timestamp 397239.0325 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0171_20150426_170653.mp4.v0171.th.jpg with timestamp 397239.11472222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0172_20150426_172430.mp4.v0172.th.jpg with timestamp 397239.40833333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0173_20150426_172452.mp4.v0173.th.jpg with timestamp 397239.41444444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0174_20150426_172507.mp4.v0174.th.jpg with timestamp 397239.41861111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0175_20150426_172512.mp4.v0175.th.jpg with timestamp 397239.42 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0176_20150426_172546.mp4.v0176.th.jpg with timestamp 397239.42944444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0177_20150426_172645.mp4.v0177.th.jpg with timestamp 397239.44583333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0178_20150426_172655.mp4.v0178.th.jpg with timestamp 397239.44861111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0179_20150426_172700.mp4.v0179.th.jpg with timestamp 397239.45 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0180_20150426_172732.mp4.v0180.th.jpg with timestamp 397239.45888889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0181_20150426_172745.mp4.v0181.th.jpg with timestamp 397239.4625 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0182_20150426_172750.mp4.v0182.th.jpg with timestamp 397239.46388889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0183_20150426_172755.mp4.v0183.th.jpg with timestamp 397239.46527778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0184_20150426_172759.mp4.v0184.th.jpg with timestamp 397239.46638889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0185_20150426_180834.mp4.v0185.th.jpg with timestamp 397240.14277778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0186_20150426_181048.mp4.v0186.th.jpg with timestamp 397240.18 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0187_20150426_181121.mp4.v0187.th.jpg with timestamp 397240.18916667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0188_20150426_181148.mp4.v0188.th.jpg with timestamp 397240.19666667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0189_20150426_181208.mp4.v0189.th.jpg with timestamp 397240.20222222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0190_20150426_182141.mp4.v0190.th.jpg with timestamp 397240.36138889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0191_20150426_182255.mp4.v0191.th.jpg with timestamp 397240.38194444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0192_20150426_182313.mp4.v0192.th.jpg with timestamp 397240.38694444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0193_20150426_182522.mp4.v0193.th.jpg with timestamp 397240.42277778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0194_20150426_182527.mp4.v0194.th.jpg with timestamp 397240.42416667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0195_20150426_182610.mp4.v0195.th.jpg with timestamp 397240.43638889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0196_20150426_182651.mp4.v0196.th.jpg with timestamp 397240.4475 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0197_20150426_182942.mp4.v0197.th.jpg with timestamp 397240.495 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0198_20150426_184132.mp4.v0198.th.jpg with timestamp 397240.69222222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0199_20150426_185442.mp4.v0199.th.jpg with timestamp 397240.91166667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0200_20150426_192118.mp4.v0200.th.jpg with timestamp 397241.355 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0201_20150426_192152.mp4.v0201.th.jpg with timestamp 397241.36444444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0202_20150426_192248.mp4.v0202.th.jpg with timestamp 397241.38 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0203_20150426_192332.mp4.v0203.th.jpg with timestamp 397241.39222222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0204_20150426_192708.mp4.v0204.th.jpg with timestamp 397241.45222222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0205_20150426_192715.mp4.v0205.th.jpg with timestamp 397241.45416667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0206_20150426_192722.mp4.v0206.th.jpg with timestamp 397241.45611111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0207_20150426_192730.mp4.v0207.th.jpg with timestamp 397241.45888889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0208_20150426_195720.mp4.v0208.th.jpg with timestamp 397241.95555556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0209_20150426_195824.mp4.v0209.th.jpg with timestamp 397241.97333333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0210_20150426_195829.mp4.v0210.th.jpg with timestamp 397241.97472222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0211_20150426_195908.mp4.v0211.th.jpg with timestamp 397241.98555556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0212_20150426_195920.mp4.v0212.th.jpg with timestamp 397241.98888889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0213_20150426_195925.mp4.v0213.th.jpg with timestamp 397241.99027778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0214_20150426_200013.mp4.v0214.th.jpg with timestamp 397242.00361111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0215_20150426_200051.mp4.v0215.th.jpg with timestamp 397242.01416667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0216_20150426_200156.mp4.v0216.th.jpg with timestamp 397242.03222222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0217_20150426_200217.mp4.v0217.th.jpg with timestamp 397242.03805556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0218_20150426_200225.mp4.v0218.th.jpg with timestamp 397242.04027778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0219_20150426_200314.mp4.v0219.th.jpg with timestamp 397242.05388889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0394_20150427_055800.mp4.v0394.th.jpg with timestamp 397251.96666667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0395_20150427_055806.mp4.v0395.th.jpg with timestamp 397251.96833333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0396_20150427_055811.mp4.v0396.th.jpg with timestamp 397251.96972222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0397_20150427_055819.mp4.v0397.th.jpg with timestamp 397251.97194444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0398_20150427_055825.mp4.v0398.th.jpg with timestamp 397251.97361111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0399_20150427_055831.mp4.v0399.th.jpg with timestamp 397251.97527778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0400_20150427_055837.mp4.v0400.th.jpg with timestamp 397251.97694444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0401_20150427_055843.mp4.v0401.th.jpg with timestamp 397251.97861111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0402_20150427_055849.mp4.v0402.th.jpg with timestamp 397251.98027778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0403_20150427_055855.mp4.v0403.th.jpg with timestamp 397251.98194444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0404_20150427_055901.mp4.v0404.th.jpg with timestamp 397251.98361111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0405_20150427_055906.mp4.v0405.th.jpg with timestamp 397251.985 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0406_20150427_055912.mp4.v0406.th.jpg with timestamp 397251.98666667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0408_20150427_075130.mp4.v0408.th.jpg with timestamp 397253.85833333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0409_20150427_113113.mp4.v0409.th.jpg with timestamp 397257.52027778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0410_20150427_113118.mp4.v0410.th.jpg with timestamp 397257.52166667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0411_20150427_113123.mp4.v0411.th.jpg with timestamp 397257.52305556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0412_20150427_113633.mp4.v0412.th.jpg with timestamp 397257.60916667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0413_20150427_114200.mp4.v0413.th.jpg with timestamp 397257.7 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0414_20150427_114650.mp4.v0414.th.jpg with timestamp 397257.78055556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0415_20150427_115032.mp4.v0415.th.jpg with timestamp 397257.84222222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0416_20150427_121525.mp4.v0416.th.jpg with timestamp 397258.25694444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0417_20150427_121642.mp4.v0417.th.jpg with timestamp 397258.27833333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0418_20150427_121933.mp4.v0418.th.jpg with timestamp 397258.32583333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0419_20150427_122537.mp4.v0419.th.jpg with timestamp 397258.42694444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0420_20150427_124053.mp4.v0420.th.jpg with timestamp 397258.68138889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0421_20150427_125129.mp4.v0421.th.jpg with timestamp 397258.85805556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0422_20150427_125352.mp4.v0422.th.jpg with timestamp 397258.8975 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0423_20150427_130603.mp4.v0423.th.jpg with timestamp 397259.10083333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0424_20150427_132232.mp4.v0424.th.jpg with timestamp 397259.37555556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0425_20150427_132307.mp4.v0425.th.jpg with timestamp 397259.38527778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0426_20150427_132738.mp4.v0426.th.jpg with timestamp 397259.46055556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0427_20150427_133236.mp4.v0427.th.jpg with timestamp 397259.54333333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0428_20150427_133357.mp4.v0428.th.jpg with timestamp 397259.56583333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0429_20150427_133430.mp4.v0429.th.jpg with timestamp 397259.575 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0430_20150427_135057.mp4.v0430.th.jpg with timestamp 397259.84916667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0431_20150427_140751.mp4.v0431.th.jpg with timestamp 397260.13083333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0432_20150427_140846.mp4.v0432.th.jpg with timestamp 397260.14611111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0433_20150427_140859.mp4.v0433.th.jpg with timestamp 397260.14972222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0434_20150427_141359.mp4.v0434.th.jpg with timestamp 397260.23305556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0435_20150427_143223.mp4.v0435.th.jpg with timestamp 397260.53972222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0436_20150427_145159.mp4.v0436.th.jpg with timestamp 397260.86638889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0437_20150427_145214.mp4.v0437.th.jpg with timestamp 397260.87055556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0438_20150427_152035.mp4.v0438.th.jpg with timestamp 397261.34305556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0439_20150427_152245.mp4.v0439.th.jpg with timestamp 397261.37916667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0440_20150427_152849.mp4.v0440.th.jpg with timestamp 397261.48027778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0441_20150427_154048.mp4.v0441.th.jpg with timestamp 397261.68 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0442_20150427_154350.mp4.v0442.th.jpg with timestamp 397261.73055556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0443_20150427_161928.mp4.v0443.th.jpg with timestamp 397262.32444444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0444_20150427_162215.mp4.v0444.th.jpg with timestamp 397262.37083333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0445_20150427_162453.mp4.v0445.th.jpg with timestamp 397262.41472222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0446_20150427_163621.mp4.v0446.th.jpg with timestamp 397262.60583333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0447_20150427_164233.mp4.v0447.th.jpg with timestamp 397262.70916667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0448_20150427_164351.mp4.v0448.th.jpg with timestamp 397262.73083333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0449_20150427_164438.mp4.v0449.th.jpg with timestamp 397262.74388889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0450_20150427_164504.mp4.v0450.th.jpg with timestamp 397262.75111111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0451_20150427_164617.mp4.v0451.th.jpg with timestamp 397262.77138889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0452_20150427_165019.mp4.v0452.th.jpg with timestamp 397262.83861111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0453_20150427_165114.mp4.v0453.th.jpg with timestamp 397262.85388889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0454_20150427_165132.mp4.v0454.th.jpg with timestamp 397262.85888889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0455_20150427_165352.mp4.v0455.th.jpg with timestamp 397262.89777778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0456_20150427_165719.mp4.v0456.th.jpg with timestamp 397262.95527778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0457_20150427_170536.mp4.v0457.th.jpg with timestamp 397263.09333333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0458_20150427_170601.mp4.v0458.th.jpg with timestamp 397263.10027778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0459_20150427_171055.mp4.v0459.th.jpg with timestamp 397263.18194444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0460_20150427_171207.mp4.v0460.th.jpg with timestamp 397263.20194444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0461_20150427_171254.mp4.v0461.th.jpg with timestamp 397263.215 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0462_20150427_171315.mp4.v0462.th.jpg with timestamp 397263.22083333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0463_20150427_171402.mp4.v0463.th.jpg with timestamp 397263.23388889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0464_20150427_172049.mp4.v0464.th.jpg with timestamp 397263.34694444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0465_20150427_172251.mp4.v0465.th.jpg with timestamp 397263.38083333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0466_20150427_172552.mp4.v0466.th.jpg with timestamp 397263.43111111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0467_20150427_173512.mp4.v0467.th.jpg with timestamp 397263.58666667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0468_20150427_173935.mp4.v0468.th.jpg with timestamp 397263.65972222 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0469_20150427_173952.mp4.v0469.th.jpg with timestamp 397263.66444444 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0470_20150427_174032.mp4.v0470.th.jpg with timestamp 397263.67555556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0471_20150427_174239.mp4.v0471.th.jpg with timestamp 397263.71083333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0472_20150427_175841.mp4.v0472.th.jpg with timestamp 397263.97805556 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0473_20150427_180333.mp4.v0473.th.jpg with timestamp 397264.05916667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0474_20150427_180515.mp4.v0474.th.jpg with timestamp 397264.0875 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0475_20150427_180827.mp4.v0475.th.jpg with timestamp 397264.14083333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0476_20150427_184157.mp4.v0476.th.jpg with timestamp 397264.69916667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0477_20150427_185028.mp4.v0477.th.jpg with timestamp 397264.84111111 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0478_20150427_185345.mp4.v0478.th.jpg with timestamp 397264.89583333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0479_20150427_185930.mp4.v0479.th.jpg with timestamp 397264.99166667 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0480_20150427_185956.mp4.v0480.th.jpg with timestamp 397264.99888889 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0481_20150427_190151.mp4.v0481.th.jpg with timestamp 397265.03083333 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0482_20150427_190704.mp4.v0482.th.jpg with timestamp 397265.11777778 purgeHours 12
[2015/04/27 19:15:17] Checking vi_0483_20150427_191358.mp4.v0483.th.jpg with timestamp 397265.23277778 purgeHours 12
[2015/04/27 19:15:17] Purged 159 Files
[2015/04/27 19:15:17] exec: cp -un /var/www/media/*.mp4 /mnt/cam1
it looks like that it now works with the new scheduler.php file. Is my original scheduler.php file wrong?

rgs

Jan

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

Re: RPi Cam Web Interface

Mon Apr 27, 2015 5:56 pm

Jasimo wrote:thx for the debug scheduler.php here is the outcome of the log:

it looks like that it now works with the new scheduler.php file. Is my original scheduler.php file wrong?

rgs

Jan
All I did was add the debug messages in. The original should have been 32835 bytes long.

If you had updated before just by copying the files in, then the original scheduler might not have been stopped and started so an old copy was still running in the background.

Check your original scheduler is that length then revert to it and see if it works.

Jasimo
Posts: 51
Joined: Mon Apr 27, 2015 11:50 am

Re: RPi Cam Web Interface

Mon Apr 27, 2015 6:28 pm

my schedule.php is 32103 byte long. Crazy because I only installed the "RPi Cam Web Interface" via the install script like described in the howto, no manual copy.
Can in download the actual one from git?
rgs
Jan

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

Re: RPi Cam Web Interface

Mon Apr 27, 2015 7:51 pm

btidey wrote:I am looking at adding a small queue to the boxing commands so they can be set to run in the background but only one gets launched at a time.
I think this would be the ideal case. My main complaint with the original code was the capture dead time while the boxing was going on, so I had a separate bash script that monitored the /var/www/media/ directory for *.h264 and converted them separately, one at a time. It wasn't ideal because I didn't have a foolproof way of telling when a h.264 file was complete and ready for conversion. I just looked for no increase in file size over a period of several seconds, assuming during record, that any internal buffers were continually flushed to disk sooner than that.

Here is my script: viewtopic.php?t=63276&p=675954#p675914

I didn't use any kind of queue, just a brute-force inefficient loop so I have separate wait times on every file to check if they're done yet.

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

Re: RPi Cam Web Interface

Mon Apr 27, 2015 8:24 pm

Jasimo wrote:my schedule.php is 32103 byte long. Crazy because I only installed the "RPi Cam Web Interface" via the install script like described in the howto, no manual copy.
Can in download the actual one from git?
rgs
Jan
Actually 32103 is the correct size as in the Repo. I was using the size on my PC where LF is CRLF so there is more characters making the difference characters. Sorry for the confusion.

Try with the 32103 and just make sure you stop / start the scheduler to make sure it is that one that is running.

xab
Posts: 23
Joined: Sat Jan 24, 2015 1:24 pm

Re: RPi Cam Web Interface

Mon Apr 27, 2015 9:44 pm

jbeale wrote:
btidey wrote:I am looking at adding a small queue to the boxing commands so they can be set to run in the background but only one gets launched at a time.
I think this would be the ideal case. My main complaint with the original code was the capture dead time while the boxing was going on, so I had a separate bash script that monitored the /var/www/media/ directory for *.h264 and converted them separately, one at a time. It wasn't ideal because I didn't have a foolproof way of telling when a h.264 file was complete and ready for conversion. I just looked for no increase in file size over a period of several seconds, assuming during record, that any internal buffers were continually flushed to disk sooner than that.

Here is my script: viewtopic.php?t=63276&p=675954#p675914

I didn't use any kind of queue, just a brute-force inefficient loop so I have separate wait times on every file to check if they're done yet.
Another perhaps brute idea.. boxing function to utils, whenever video is stopped file name gets added to "todo list" array and if currently not boxing then starts doing so (perhaps there could be a bash script externally which sends bd - boxing done command to fifo and letting the program know when it's done). If there is another name in the "todo list" then it starts working on that one.. I hope that my explaining doesn't sound too obscure.

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

Re: RPi Cam Web Interface

Tue Apr 28, 2015 3:38 am

Below is a log from another partial crash tonight, on a different unit that has previously been more reliable, but also a Model A. There was a lot of traffic in front of the camera just before it stopped recording (last image timestamp 19:48:59). The main web interface page continued to work but continually presented dialog boxes about raspimjpeg not responding and needing restart/reboot.

Code: Select all

[2015/04/27 19:47:05] Scheduled management tasks. Next at 1430189465
[2015/04/27 19:47:05] Purged 10 Files
[2015/04/27 19:47:28] Stop capture requested
[2015/04/27 19:47:28] Send ca 0
{2015/04/27 19:47:28} Capturing stopped
{2015/04/27 19:47:28} Boxing in background
[2015/04/27 19:47:30] Start capture requested
[2015/04/27 19:47:30] Send ca 1
{2015/04/27 19:47:30} Capturing started
[2015/04/27 19:48:09] Stop capture requested
[2015/04/27 19:48:09] Send ca 0
{2015/04/27 19:48:09} Capturing stopped
{2015/04/27 19:48:09} Boxing in background
[2015/04/27 19:48:18] Start capture requested
[2015/04/27 19:48:18] Send ca 1
{2015/04/27 19:48:18} Capturing started
[2015/04/27 19:48:33] Stop capture requested
[2015/04/27 19:48:33] Send ca 0
{2015/04/27 19:48:33} Capturing stopped
{2015/04/27 19:48:34} Boxing in background
[2015/04/27 19:48:40] Start capture requested
[2015/04/27 19:48:40] Send ca 1
{2015/04/27 19:48:40} Capturing started
[2015/04/27 19:48:59] Stop capture requested
[2015/04/27 19:48:59] Send ca 0
{2015/04/27 19:48:59} Error: Could not send buffers to port
{2015/04/27 19:49:00} RaspiMJPEG Version 5.1.3
{2015/04/27 19:49:01} Error: Could not enable camera
[2015/04/27 19:49:01] Start capture requested
[2015/04/27 19:49:01] Send ca 1
{2015/04/27 19:49:02} RaspiMJPEG Version 5.1.3
{2015/04/27 19:49:02} Error: Could not enable camera
{2015/04/27 19:49:04} RaspiMJPEG Version 5.1.3
{2015/04/27 19:49:04} Error: Could not enable camera
{2015/04/27 19:49:05} RaspiMJPEG Version 5.1.3
{2015/04/27 19:49:05} Error: Could not enable camera
{2015/04/27 19:49:07} RaspiMJPEG Version 5.1.3
{2015/04/27 19:49:07} Error: Could not enable camera
{2015/04/27 19:49:09} RaspiMJPEG Version 5.1.3
{2015/04/27 19:49:09} Error: Could not enable camera
{2015/04/27 19:49:10} RaspiMJPEG Version 5.1.3
{2015/04/27 19:49:10} Error: Could not enable camera
{2015/04/27 19:49:12} RaspiMJPEG Version 5.1.3
... and a lot more lines like this.

Return to “Camera board”