1. Visiting from the US? Why not try DIYnot.US instead? Click here to continue to DIYnot.US.
    Dismiss Notice

Hikvision bullet cams : managing drive space

Discussion in 'Alarms, CCTV & Telephones' started by jacko555, 25 Oct 2020.

  1. jacko555

    jacko555

    Joined:
    5 Feb 2005
    Messages:
    238
    Thanks Received:
    30
    Country:
    United Kingdom
    Hi,
    How do you manage video space when the drive gets full on a Hikvision cam?

    In the camera setup screen, I can send a HDD full admin event, however, there's not a option (that I can see) to overwrite the oldest recording.

    Surely this is a common problem, but I cant find anything in the manuals for the cameras about how to deal with this.

    For background: most of this kit was free / already owned. I think my outlay so far is £50 and having fun tinkering. I know I could just buy some NVR / NAS software but that's not the point of the excercise...

    I have a fanless NUC and loaded Ubuntu server on it. I have setup 5x additional partitions on the SSD (one for each cam) and shared them as NFS shares (Carmera1, Camera2 etc)

    Each Camera has mounted a NFS share from the Server, formatted it and it working successfully. I've set then up to record when certain events are triggered (e.g. intrusion detection, face detection)

    I can also view these captured event videos and live streams with the IVMS Android app.

    Back to what to do when a drive gets full...

    When I format and mount the drive in the camera admin, and look at the disc content, it creates a data directory, and pre-creates a number of mp4 video files (all 0kb).

    It appears that as events are recorded, the video files increase is size, until reaching 250m, then moves to the next one.

    As a test, I've setup one cam to constantly record so I can explore what to do when its HDD gets full.

    Screenshot_20201025-080819_JuiceSSH.jpg

    Does anyone have any suggestions or experience about how to manage this?

    I suspect manually deleting the MP4 files may result in the camera getting confused.

    I could try setting the 001 files to 0kb and hope that the camera logic will use that, but I doubt it.

    I suspect I may need to crack open tge Hikvision SDK and write something to reformat the drive when it gets full, but, that feels fairly sledgehammer approach.

    Im sure NVRs have an "overwrite oldest file" option...

    Can anyone help?
     
  2. Sponsored Links
  3. lostinthelight

    lostinthelight

    Joined:
    11 Feb 2016
    Messages:
    2,309
    Thanks Received:
    415
    Location:
    monmouthshire
    Country:
    United Kingdom
    C8B09F45-5DED-4AAC-93CB-9FAC3E2EA986.jpeg Try SadpTools I think there is such an option there
     
    Last edited: 25 Oct 2020
    • Thanks Thanks x 1
  4. jacko555

    jacko555

    Joined:
    5 Feb 2005
    Messages:
    238
    Thanks Received:
    30
    Country:
    United Kingdom
    Perfect, thank you.
     
Loading...

Share This Page