SKJM Forum

Support => iCam Support => : Zarkov December 30, 2009, 03:38:24 PM

: Safe, fast backup of MJPEG streams via Dropbox!
: Zarkov December 30, 2009, 03:38:24 PM
I want to occasionally use iCam as a simple security system.  I was concerned that in the event that someone broke into my house, one of the first things they'd go for was my computer.  So, other than anything I was able to snap of the iCam data stream on my iPhone (assuming I acted on a push alert), the record of the burglary would be gone.  I wanted some way to backup the data stream other than on the machine running iCam Source, so if the computer is stolen you can still get the perp’s picture.

I've been playing around with Dropbox, and I think it’s a killer solution.  Note that the MJPEG images comprising the iCam stream are stored in Pictures are presently stored in:

[user]/pictures/iCam source motion events/[gigantic hash sequence]/[date-time stamp].

If you make an alias of the [gigantic hash sequence] folder you can drop it in the Dropbox, which might be on your computer desktop.  Do not rename the alias! Any images that appear in the [gigantic hash sequence] folder are immediately reflected in the Dropbox Cloud server, as well as anyplace else you have a synchronized Dropbox.  This updating is continuous and does not wait for the motion trigger event to be completed!

The mirrored Dropboxes will show the JPEGs in the Dropbox files, just as they do on your computer.  However, if you throw away the file from the alias in Dropbox, the file is gone for the Mac as well – so be careful.

This seems to be an ideal solution to remote backup of the MJPEG stream.  I've tried it and it works!  Best of all, Dropbox is free for up to 2GB folder.  If you get Dropbox using this link: https://www.dropbox.com/referrals/NTM0MDgwNjM5 (https://www.dropbox.com/referrals/NTM0MDgwNjM5) you (and I ) will get an extra 250 MB of storage.  

And, thanks to Stefan for doing a sanity check on my ideas!
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: Stefan December 30, 2009, 03:58:56 PM
Thanks for the great post, Zarkov! I currently use this scheme, and must agree that it works great ... And it's free! :)
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: edgotbait December 30, 2009, 04:42:49 PM
could you say all that in none computer savvy terms
down loaded  drop box   

now what?
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: Zarkov December 31, 2009, 08:11:30 AM
could you say all that in none computer savvy terms
down loaded  drop box   

now what?
Well, first install Dropbox, then set up an account with Dropbox using the directions (even a video) on their site.  This will create a folder on your Mac (I put mine on the desktop).  Anything you put in that folder is copied to the Dropbox servers in the "Cloud" - which just means they store it for you.  If you install another Dropbox on another machine, you have a simple way to "teleport" files between the two machines, but you don't need that for this application.  All you want is a way to store files offsite.

Now you have to find the folder that holds the iCam videos.  That's located at [user]/pictures/iCam source motion events/[gigantic hash sequence]/[date-time stamp].  Here User is the folder in Finder that has all your stuff in it.  Inside that is a folder called Pictures, etc.  The [gigantic hash sequence] is my name for the folder that has the recorded iCam video files in it, because it is a long string of apparently random alphanumeric characters.

Make an alias of that folder by selecting it and control-clicking it and selecting "Make Alias" (if you're using a PC, it'll be a right-click).  Drop that folder in the Dropbox.  You can change the name to something like "iCam files" if you wish, but do not change the name of the original file - the  one with the  long string of apparently random alphanumeric characters.  If you do, iCam can't find it.

Now anytime iCam records anything, you'll find a copy of it appears in the Dropbox.  It's stored on their servers, where it can easily be retrieved, even if your computer is gone.

Hope this helps!
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: Icamuser January 07, 2010, 12:25:44 PM
 

Too bad my iPhone can see the shortcut in the Dropbox (PC) but can't open it for the iCam pictures.
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: Stefan January 07, 2010, 04:16:58 PM
That might just be a difference between how Windows and OS X treat shortcuts, unfortunately.
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: Icamuser January 07, 2010, 09:03:37 PM
The use of the shortcut is interesting.  When I am on the PC on which the actual iCam folder and dropbox exist, it appears to work. But when i go to the Dropbox and click on the iCam shortcut folder, it takes me to the folder on the PC.  If I turn off the PC and go to another PC and log into Dropbox and click on the iCam folder, it asks to open it and then goes nowhere.   It appears that the iCam picture is not really replicated on Dropbox, or at least in this experiment.
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: OUAnthony March 14, 2010, 05:05:07 AM
For Windows users, you will need to open your icamsource (from the taskbar) and use the "change" button to change the directory for saved motion images...from the default to the new dropbox folder, which is automatically sync'd. Once you do this, your pictures will be sync'd to dropbox's server. Big thanks to you Zarkov...this is the only thing that I REALLY felt was missing from this awesome app.
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: elkskins_j March 27, 2010, 08:10:20 AM
hello, not sure why this is method is needed, dont all the images store to your iphone anyways?  and does anyone know if there is a way to just record the events to your pc and NOT to your iphone too?
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: Stefan March 27, 2010, 11:03:50 AM
The Motion Events are actually only stored on the computer running the iCamSource. They are streamed to your iPhone running iCam when you view them.
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: RudyW September 03, 2010, 06:49:40 PM
After some experimentation, I got the iCam motion events folder file into dropbox, but couldn't open it - allegedly unsupported file format.  Then, I put the motion events folder into the photo folder in Dropbox and voila - success.  Photos are saved and viewable.

PC Path:  (User) - My Documents - My Dropbox - Photos
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: takisot September 26, 2010, 10:28:09 AM
After some experimentation, I got the iCam motion events folder file into dropbox, but couldn't open it - allegedly unsupported file format.  Then, I put the motion events folder into the photo folder in Dropbox and voila - success.  Photos are saved and viewable.

PC Path:  (User) - My Documents - My Dropbox - Photos

Great! The same applies to Mac.  Go to Icam-Motion Detection-Motion Events Folder-Change and browse until you find dropbox folder-pictures which you should select.
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: dfrisby September 28, 2010, 07:16:15 AM
Very nice - you have an extra 250Mb from me!!!
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: maxglide September 29, 2010, 12:55:31 AM
Hi
Can anybody help me out with a problem? I'm having the same issues using iCam and drop box.
The alias is unreable in Dropbox on my mac laptop, iPad and iPhone and comes up as an Unix Executable file.
I'm creating an an alias( 732aec2a83f77ba20ac717de2d6f69122fe6ef94 alias) and putting it into the photos folder in Dropbox. The jpeg images come up fine viewing them in Dropbox on my home computer. What is the obvious thing I'm missing?

Thanks!
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: neils September 29, 2010, 09:52:17 AM
delete the word "alias" at the end of the Dropbox folder name.
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: Zarkov September 29, 2010, 11:44:18 AM
There's some weird stuff going on.

I'm not sure why maxglide is seeing a Unix executable, but while checking my implementation, I found that while the [gigantic hash sequence] address of my folder on the Mac holding iSight images has stayed the same, the one for an external Linksys camera had somehow changed.  I made a new alias and put it in Dropbox.  It didn't work this time (!), though the folder alias and Dropbox pictures sync (even to my iPhone) for my iSight camera continues to work.  (By work, I mean it will transfer pictures successfully to my iPhone and the Dropbox.com website.)  Instead, what I see on my phone and in Dropbox.com is a generic file 507.1 KB in size.

The problem seems to be due to changes in the Extended Attributes and Resource Forks of OSX, as described here http://www.pxc.me.uk/misc/dropbox_mac_use.html (http://www.pxc.me.uk/misc/dropbox_mac_use.html).  A possible solution using Symlinks is shown here http://wiki.dropbox.com/TipsAndTricks/SyncOtherFolders (http://wiki.dropbox.com/TipsAndTricks/SyncOtherFolders), but I have not tried it yet.  Evidently different versions of OSX.n have different alias properties.

I know of another way to accomplish the backups using Hazel http://www.noodlesoft.com/ (http://www.noodlesoft.com/), and will start a new thread on this approach shortly.
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: Stefan September 30, 2010, 07:06:53 AM
I'm not sure why maxglide is seeing a Unix executable, but while checking my implementation, I found that while the [gigantic hash sequence] address of my folder on the Mac holding iSight images has stayed the same, the one for an external Linksys camera had somehow changed.

Just an FYI, for IP cameras the folder hash is derived from the MJPEG or JPEG URL, so if the URL is different (perhaps your camera's IP address had changed?) then the folder hash would also be different.
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: visprar September 30, 2010, 07:33:35 PM
works like a charm.
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: maxglide October 05, 2010, 02:20:18 AM
Thanks

I dropped the "alias" from the file name and still have the same problem. The file type is unreadable in Dropbox?????
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: insectophile November 11, 2010, 04:00:01 PM
Make an alias of that folder by selecting it and control-clicking it and selecting "Make Alias" (if you're using a PC, it'll be a right-click).  Drop that folder in the Dropbox.  You can change the name to something like "iCam files" if you wish, but do not change the name of the original file - the  one with the  long string of apparently random alphanumeric characters.  

When I right click in Windows XP there is no option to "Make Alias". What is "Make Alias" and where can I find it?
Thanks.

*UPDATE* I now realize that "Make Alias" is the Mac equivalent of "Create Shortcut" in Windows. But I don't see why creating a shortcut is necessary. I simply have iCam record to the MyDropbox folder.
: Re: Safe, fast backup of MJPEG streams via Dropbox!
: OUAnthony November 11, 2010, 05:42:37 PM
Make Alias is similar to, but not exactly the same thing as creating a shortcut in Windows...it seems like the alias is a shortcut for the OS to use as the setting for where to save files or whatever. In Windows, a shortcut is for the user to quickly access a file/folder/program. Other programs do not get directory information from shortcuts. At least that's my understanding of the difference. I'm not a Mac owner, so I could be wrong.