NVR: Drive Full, not recycling

Relates to: Gigastrand and Next Level NVR Software

We have seen where the drive appears to fill up but there is no apparent reason for the drive being full. Three of the reasons we have seen so far are caused by 4 different but related issues.

  1. Apache errors – for some unknown reason, the Apache log file (located in /var/log/apache2/) sometimes grows to an incredible size. Deleting the log file resolves this issue.
  2. Virtual Ramdisk error – The Gigastrand NVR has a virtual ramdisk where it caches images. Sometimes (especially if the motion daemon is fiddled with) the ramdisk will start writing to the user folder. Deleting the files and and NVR restart will resolve that issue as well.
  3. Storage Limit – If you have a full complement of cameras, the default storage size of 20Gb will fill up very fast (less than 12 hours in some cases). This is too fast for the machine to effectively clean up. This issue manifests itself in the same way as the other 2 issues, but the system is essentially working.

To fix this issue, edit the /etc/kmotion/kmotion_rc file and change the images_dbase_limit_gb to something higher than 20Gb but less than your total available storage. Do an NVR Restart to make the changes go into effect.

Give Gigastrand OS about 64Gb in your storage calculations. Subtract that from your total drive space so that it does not interfere with your video storage.

4. Firefox – If you use live view on the NVR regularly, Firefox will save all the images it downloads in /home/user/.cache/mozilla/firefox/[profile].default/cache2/entries/. Clear this out first. Then, open Frefox and go to menu>Preferences>Privacy. Under History click Never Remember History. Close Firefox and restart the computer.

Gigabytes NVR Supported IP Cameras

WorksWorks with ConfigNot Working

This list contains a list of IP cameras that have been tested with the Gigabytes NVR. Most cameras that support MJPEG or have a snapshot URL should work with motion-based NVR software (like Gigabytes NVR and MotionEye) but, occasionally, the camera contains some quirk that makes it incompatible or requires special / additional configuration to make it work.

Agasio M1051
URL/videostream.cgiPort 81
UseradminPass
Notes
Dlink DCS‑930L, 932L, 934L
URL/video.cgiPort80
UseradminPassadmin
NotesWill DHCP on wired connection first. Can configure wireless from there (where available).
Dlink DCS‑935L
URL /image/jpeg.cgiPort80
User adminPass
NotesThis uses the still image URL.
Tenvis IP602W IP391W
URL /vjpeg.v?user=operator&pwd=
/vjpeg.v
Port7777
Useradmin
operator
Pass admin
Notes Gigabytes configures the port to 80
IP Webcam Android App
URL /videoPort 8080
UserPass
Notes This is an Android app that turns a phone into a webcam.
IP Webcam | IP Webcam Pro
TP-Link TL-SC3130G
URL/jpg/image.jpgPort
UserPass
Notes
Linksys WVC54GCA, WVC80N
Sensormatic/ADT OC810
Level One FCS-0040, WCS-0020
URL/img/video.mjpegPort
UserPass
Notes
Amcrest  IP2M-844E
URLMJPEG: /cgi-bin/video.cgi
HD: /cgi-bin/snapshot.cgi
Port80
37777
User adminPassadmin
Notes1. Set Substream to MJPEG
2. Set Main stream to 720p
Foscam FI9851P, FI9853EP, FI9804P, FI9821W
URLSnapshot (HD): /cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=admin&pwd=

MJPEG Init: /cgi-bin/CGIProxy.fcgi?cmd=setSubStreamFormat
&format=1&usr=admin&pwd=

MJPEG Stream: /cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=admin&pwd=

Port88
888
UseradminPass
NotesSee also: Foscam SetupUse Snapshot URL for HD. Init URL enables MJPEG stream but may not work on cameras with newer firmware. Pan/tilt controls (where applicable) should be operated from camera back-end. User and password must be transmitted in the stream URL (ex. &usr=admin&pwd=1234)
Dahua DH-IPC-DW13A0SN
URL/axis-cgi/mjpg/video.cgiPort80,37777
User adminPass12345
NotesYou will need to configure the sub stream for MJPEG and 640×480 before this will work. See also Amcrest IP2M-844E.
Sricam AP003
URL /videostream.cgi?user=admin&pwd=Port81
UseradminPass
NotesUser and password must be transmitted in the stream URL.
Uniden AppCam21
URL /videostream.cgi?stream=0Port 80
UseradminPass123456
NotesMotion errors: Unrecognized content type Error reading first header – re-trying Wireless SSID: Serial#  Password: 12345678
Tenvis IP391W-HD
URLCurrently testing the following URLs:
/web/cgi-bin/hi3510/snap.cgi?&-getstream&-snapone
/videostream.asf?user=[USERNAME]&pwd=[PASSWORD]
/tmpfs/auto.jpg
/snapshot.jpg?account=[USERNAME]&password=[PASSWORD]
Port80
User adminPassadmin
NotesUse firefox for video: download browser-plugin-vlc from Apper. You may need to disable the Mplayer/gecko plugin so it does not conflict. One of the above URLs is reported to work but we have not tested to verify.

Configuring Foscam Cameras in Linux

Foscam cameras come in a wide variety for sizes and styles and have a number of features, however, they are not very Linux friendly. Just to access the back end to change camera settings, a Windows executable is required. This is the case on some other cameras as well.

The good news is that the Foscam cameras can be configured to stream video to the Gigabytes NVR without having to access the back-end. Using the default username and password, you can reserve the IP address it pulls down in the router. Then, follow the instructions below. Source: http://foscam.us/forum/how-to-fetch-snapshots-and-mjpeg-stream-on-hd-cameras-t4328.html

Fetching JPEG snapshots by URL (HD Video)
http://ip address:port/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=admin&pwd=

Fetching MJPEG stream by URL (SD Video)
There are two steps needed to fetch the MJPEG stream.
Step 1: Set the stream to MJPEG.
http://ip address:port/cgi-bin/CGIProxy.fcgi?cmd=setSubStreamFormat&format=1&usr=admin&pwd=
Here “1” sets an MJPEG stream, if we don’t want to set the MJPEG stream, we would set the number to “0” which sets an H.264 stream.
When inputting this URL and pushing “Enter” in your browser, it will return the following result:
<CGI_Result>
<result>0</result>
</CGI_Result>

Step 2: After setting the MJPEG stream, it can be fetched using an HTTP URL.
http://ip address:port/cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=admin&pwd=
Simply replace the IP address, port, username, and password into the above URL to access your camera’s MJPEG stream.

Accessing Foscam Back-end Natively in Linux
If you absolutely have to access the camera back-end, it can be done with a Virtual box running Windows, however, there is a less complicated way to do this.
Using Crossover, install Firefox 20. You can use this Windows version of Firefox to download and install the web components executable. This has been tested to work, though you will not be able to view video directly from the camera. You can get around this by using the MJPEG video URL in a native browser.

Video Security Server Software

Linux NVR Software
NVRNVR Software (current version)
Gigastrand NVRGigastrand NVR Software (deprecated)
MotionEye Installer
MotionEyeMotionEye Installer
Zoneminder Installer
ZoneminderZoneminder automated install file (BETA)
Other Linux Software
ReindexerReindexes video files to repair the video database. Includes both an automatic and manual shell script.
WARNING: EXPERIMENTAL. May result in Data loss.
WallpaperGigabytes NVR Wallpaper
Windows Unisight DVR/HVR/NVR
StandardStandard DVR Server for older DVR systems (v1.12.0725)

Professional

Professional HVR Server Software Bundle for Hybrid and Network Video Recorders (v10R21.0105) (Current version)

Professional

Professional HVR Server Software (v2.15.1216) (deprecated)

Professional

Professional HVR Server Software (v2.12.0725) (deprecated)

Enterprise

Enterprise HVR Server Software (v3.15.1216) (deprecated)
EnterpriseEnterprise HVR Server Software (v3.12.0725) (deprecated)
Other Software
Amcrest IPIP tool for Amcrest cameras for Windows (works in Crossover Linux)
Foscam IPIP and camera search tool for Foscam cameras for Windows (works in crossover for Linux)
Amcrest ProAmcrest Pro View software. Client / server for Windows
Amcrest Blue IrisAmcrest Blue Iris DVR Software
Ivideon Downloads
ServerIvideon Server Install for Linux
ScriptCustom Install Script for Gigabytes NVRs
Ivideon FixFiles to fix Ivideon to earlier version.
Ivideon Client
LinuxIvideon Client Linux
WindowsIvideon Client Windows
Mac Ivideon Client Mac
AndroidIvideon Client Android
iPhoneIvideon Client iOS
Other
WallpaperGigabytes NVR Wallpaper
QuickstartUnisight Quickstart by Gigabytes