{"id":447,"date":"2016-09-01T15:32:01","date_gmt":"2016-09-01T15:32:01","guid":{"rendered":"http:\/\/james-batchelor.com\/?p=447"},"modified":"2016-09-04T15:42:06","modified_gmt":"2016-09-04T15:42:06","slug":"easy-cctv-solution-using-ip-cameras","status":"publish","type":"post","link":"https:\/\/james-batchelor.com\/index.php\/2016\/09\/01\/easy-cctv-solution-using-ip-cameras\/","title":{"rendered":"Easy CCTV Solution using IP Cameras"},"content":{"rendered":"<p>For a while I have been looking for simple CCTV solution, where video is captured on a long loop, so when the storage is full the earliest dated footage is deleted to make way for new. And of course, footage is available for immediate review.<\/p>\n<p>Many newer IP cameras, including my Trendnet TV-IP572W comes equipped with a microSD slot for recording on a rotating basis. However, this has two main caveats, firstly the investment in a microSD card to be used solely for this purpose and of a high enough capacity to record enough footage, especially with the introduction of HD capture. Secondly is accessing the footage, as it is effectively held on the IP camera it is the gateway to the data. In my experience this process is slow, with having to download each video file manually and slow transfer speeds.<\/p>\n<p>Imagine wanting to view an event that could have happened over a span of a few hours, and with video captured in segments of 5 minutes at most, the whole process can become tedious very quickly.<\/p>\n<p>Therefore, I came up with another solution, one that uses my server\u2019s hard disks for video storage to save on money while allowing larger video retention than a micro SD card. Also the ability to automatically delete older files to make way for new. This method uses Samba settings of an IP camera to save video to a Windows Server, and on the server itself, employing Disk Quota management to effectively trick the camera into thinking it only has a certain amount of disk space, to allow the cyclic video retention and prevent the footage taking up a whole drive on the server.<\/p>\n<p><!--more--><\/p>\n<p>The benefit of employing Disk Quota management is that many cameras can record to the same volume or drive without fighting over space, plus with careful space management the days\u2019 retention per camera can be manipulated. For instance an outdoor facing camera can be allocated more data and therefore more footage to search for suspicious activity, while an indoor camera can be set to record just a day\u2019s footage in case of break ins.<\/p>\n<p>Here\u2019s how&#8230;<\/p>\n<p>The heart of this system is to assign a user account per camera; this gives the ability to manipulate data capacity for each feed.<\/p>\n<h3>On the server<\/h3>\n<p>Open up <em>Computer Management<\/em>, on newer systems this is found by right clicking the Windows icon.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-449\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs01-242x300.png\" alt=\"ecs01\" width=\"242\" height=\"300\" \/><\/p>\n<p>In System Tools, Local Users and Groups, right click <em>Users<\/em> and select <em>New user<\/em>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-450\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs02.png\" alt=\"ecs02\" width=\"213\" height=\"165\" \/><\/p>\n<p>Enter the details in the new user field, ensuring to check <em>User cannot change password<\/em> and <em>Password never expires<\/em>. Then click <em>Create<\/em>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-451\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs03-300x300.png\" alt=\"ecs03\" width=\"300\" height=\"300\" srcset=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs03-300x300.png 300w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs03-150x150.png 150w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs03.png 392w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/p>\n<p>Next, on the drive of the video storage, right click and choose <em>Properties<\/em>, then choose the <em>Quota<\/em> tab.<\/p>\n<p>Enable quota management by clicking the <em>Enable quota management<\/em> checkbox, and check the <em>Deny disk space to users exceeding limit<\/em>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-452\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs04-213x300.png\" alt=\"ecs04\" width=\"213\" height=\"300\" srcset=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs04-213x300.png 213w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs04.png 375w\" sizes=\"auto, (max-width: 213px) 85vw, 213px\" \/><\/p>\n<p>Then click on <em>Quota Entries<\/em>, then the new entry button <img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-457 alignnone\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs09.png\" alt=\"ecs09\" width=\"19\" height=\"19\" \/>.<\/p>\n<p>Time for the drawn out Windows user selection, click <em>Advanced<\/em>, on the next window click <em>Find now<\/em>, then choose the newly created cctv account, then <em>OK<\/em> and <em>OK<\/em> to bring up the Add New Quota Entry.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-453\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs05-300x221.png\" alt=\"ecs05\" width=\"300\" height=\"221\" srcset=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs05-300x221.png 300w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs05.png 332w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/p>\n<p>Set the disk limit for this user, this is the maximum the camera will store on the drive, you can specify a warning level but most IP Camera will ignore this setting. On clicking <em>OK<\/em> the user will appear in the Quota Entries Windows, this window can then be closed.<\/p>\n<p>Click <em>OK<\/em> on the drive properties window and acknowledge the warning, Disk Quota will be active.<\/p>\n<h3>On the Camera<\/h3>\n<p>Setting the camera up can vary drastically on the model, in the setup menu the recording menu needs to be found.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-456\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs08-300x250.png\" alt=\"ecs08\" width=\"300\" height=\"250\" srcset=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs08-300x250.png 300w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs08-768x639.png 768w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs08.png 832w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/p>\n<p>In the example of the Trendnet TV-IP572W, in the setup menu, choose <em>Action<\/em> then click the <em>Recording<\/em> checkbox to open the settings dialog.<\/p>\n<p>Dependant on the camera settings, look for an option to save to a remote machine\/server, or in this case a Samba share.<\/p>\n<p>Use the credentials added to the Quota Management, and if available choose the <em>Cyclic \/ Loop<\/em> option so the camera manages deletion of the oldest files.<\/p>\n<h3>Review<\/h3>\n<p>Finally it\u2019s time to wait for the quota to fill, and then check to see if the older data is being deleted automatically. For a more in depth review open the Quota Entries window, the camera will use the maximum available so will always be triggering the warning status, but this means that the maximum amount of data is available for review.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-458\" src=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs10-300x87.png\" alt=\"ecs10\" width=\"300\" height=\"87\" srcset=\"https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs10-300x87.png 300w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs10-768x223.png 768w, https:\/\/james-batchelor.com\/wp-content\/uploads\/2016\/09\/ecs10.png 933w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a while I have been looking for simple CCTV solution, where video is captured on a long loop, so when the storage is full the earliest dated footage is deleted to make way for new. And of course, footage is available for immediate review. Many newer IP cameras, including my Trendnet TV-IP572W comes equipped &hellip; <a href=\"https:\/\/james-batchelor.com\/index.php\/2016\/09\/01\/easy-cctv-solution-using-ip-cameras\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Easy CCTV Solution using IP Cameras&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[163,165,160,161,164,53,168,166,167],"class_list":["post-447","post","type-post","status-publish","format-standard","hentry","category-servers","tag-cctv","tag-cyclic","tag-ip-cam","tag-ip-camera","tag-loop","tag-network","tag-samba","tag-trendnet","tag-tv-ip572w"],"_links":{"self":[{"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/posts\/447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/comments?post=447"}],"version-history":[{"count":1,"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/posts\/447\/revisions"}],"predecessor-version":[{"id":459,"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/posts\/447\/revisions\/459"}],"wp:attachment":[{"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/media?parent=447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/categories?post=447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/james-batchelor.com\/index.php\/wp-json\/wp\/v2\/tags?post=447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}