ftp upload

Support and queries relating to all previous versions of ZoneMinder
Locked
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

ftp upload

Post by jameswilson »

after a bit of messing around i got ftp uploading working. Unfortunatly the machine has 12 cams on it and is set to mocord constantly. Obviously i am uploading lots and i think that i am capturing more than the machine can upload in time. Is there anyway to remove images from the upload. ie only upload images as if there were in modect mode. All i really want to upload is images where something is happening. I have adjusted to filter to only upload events with movement but in a 10 minute record they may be only 20 seconds of movement?

James
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Hi James,
Something you might want to try is leave your mocord cams as is.
Set up dupplicate cams in modect mode and set your filters to those.

1. Driveway Mocord /dev/video0(0)
2. Frontdoor Mocord /dev/video0(1)
3. Driveway Modect /dev/video0(0)
4. Frontdoor Modect /dev/video0(1)

That way you only upload the actual events and can save the bandwidth.
Also maybe change your modect to strait record to conserve resorces but then you lose event loging with them.
Regards,
Cordel
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

good idea cordel. If i do this though this system will end up as 24 cams what do you reackon on hardware spec. Its currently a 2.26gig celeron with 512 and i think it hasnt got much headroom

James
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i did this set the cameras to modect and to 2 fps

machine limped about abit ave 5min load peaked to 60

Not sure this is a good idea.

FYI 3.2 Ghz P4 728MB ram

i assume then when 8 Ghz processors are about this will work ;-)

James
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

My bad,
Just in case you actualy setup as I typed,
Also maybe change your modect to strait record to conserve resorces but then you lose event loging with them.
Should actualy read:
Also maybe change your mocord to strait record to conserve resorces but then you lose event loging with them.
Regards,
Cordel
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

ah no i didnt cordel i set them up as local web cams (cgi feeds) i assumed i couldnt do that but i will try. sorry for being stupid again!!!!

JAmes
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

seems ok but drops fran rate. I have a single cam on a 4 way single chip card. It would appear that zm is switching the inputs to do this. If i have 4 cams on a card my frame rate will be very low? or have i missed something again
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Al this does is changing your mocord to record means that no anailisis is done and no event loging on your constant recording cameras. Other wise yes this will more than double your load. :wink:
Regards,
Cordel
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

sorry cordel what I mean is that if you set up dev0 channel 0 twice my frame rate maxed out is 4 per camera as if the chip was switching between 2 cameras
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Yeah that would be a problem, Sorry I didn't see that post as I was probably already reading and replying before it had even posted.
It worked okay here because I have only two cameras per chip and run them all at 3 fps so I was unable to see any impact as I still had the resorces available :oops:
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

is there a way around it or can we do something about the original idea and only upload the movement frames from a mocord event?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The events are handled as a whole. You would have to find a way to decide what portion is actualy the frames you want. The database has a flag that it sets which is used in the frames detail page that could be used. But you also talking about coding that would have to be done in the filters to see that and building a fuction that would just package those frames based on the filter. I can't think of any other way at the moment. I'll ponder it a bit but I think this would have to go to the features request list as some bit of coding would need to be done.
Regards,
Cordel
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

fair enough cheers mate

James
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

back on topic.
I have a system that is set to ftp upload but for various resons the ftp server i was using is no longer available.
When i first set ftp upluad there were some perl packages missing and nothing uploaded. It cuased the background scripts to stall. Ie because it couldnt upload it stopped the purge when full filter working.
Now if the ftp server disappeared for whatever reason would this stall the script the same??

James
Locked