Hikvision Raspberry PI as Viewer

We love exploring new things at GeekyAnts & an innovation always leads a solution. One of the experiments which actually solved our problem with Raspberry PI & a bit of scripting.

We just got our security cameras installed in our office (GeekyAnts) and we wanted an additional viewer on our reception desk with limited number of camera display. The solution from the vendor was quite complex and required wiring from the Hikvision DVR to Reception desk. And we wanted some quick solution for it

Unfortunately, I wasn’t able to find anything quick to do the things. So we built our custom solution with Raspberry pi 3.

Here is my solution for creating extended Hikvision Viewer over IP network. You will need the following things:

  • Raspberry PI 3 running OS raspbian
  • Monitor Full HD with HDMI
  • You will need your IP Address of your Hikvision DVR and the username & password.
  • Do make sure that your Hikvision and Raspberry PI are on the same network and you know the IP :D

You will need to install the following softwares (make sure your OS is updated to latest)

  • omxplayer — which you can install by running sudo apt-get install omxplayer
  • omxplayer is the video player which uses GPU

Next, lets start configuring the raspberry pi system

  • sudo raspi-config

As omxplayer is going to use lots of GPU, lets increase the GPU Ram to 256Mb

Advance Option -> Memory Split -> Change the Value to 256 -> Save and Reboot

Next, lets make the display always active. by default the display turns off after 10 mins incase of no interaction on the console.

edit the file /etc/kbd/config by using sudo nano /etc/kbd/config

change the value of BLANK_TIME to 0, as shown in the above example.

To start the video you can just write

with the above command you should be able to start your live video from channel 1 camera.

#ref: http://www.cctvforum.com/viewtopic.php?t=37239

Main stream:

Sub stream:

Next, I wanted to display my 3 cameras on the screen

  • Main Passage Camera (that is on channel 4)
  • Another Floor Passage View (that is on channel 3)
  • Parking Area (that is on channel 1)

here is my script which does the job for me! It runs every min via cronjob to make sure all the streams are running and incase if its close / crashed by any reason it auto restarts.

Save it as start-stream.sh and All done :-)

Below is the screenshot of the output from our viewer!



Founder of GeekyAnts

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store