Open source video surveillance server Shinobi

Insert image description here

What is Shinobi?

Shinobi is an open source solution Node.JSwritten in . CCTVDesigned with a multi-account system WebSocket Streamsand direct saving to MP4. ShinobiProvides a Webuser interface based on which allows users to view and manage surveillance videos through a browser, Shinobisupports multiple brands of cameras and network video streams, and provides a wide range of customization options.

Install

Install using Docker on Synology.

Mirror download

Docker HubThe version I posted was from two years ago.

The current image is released in gitlab registry. There is one in total 6. tagsLao Su chose it latest, which corresponds to CPUthe version. If your device has nvidiaa graphics card, you can consider choosing nvidiathe version. This version supportsGPU (NVIDIA CUDA)

Insert image description here

Comparing the old and new versions, there is still a big size difference.

Insert image description here

SSHAfter logging in to Synology using the client, execute the following command to pull the image

# 拉取镜像
docker pull registry.gitlab.com/shinobi-systems/shinobi:latest

If it can’t be pulled, the dockerproxy website: https://dockerproxy.com/ seems to be unable to help this time.

Command line installation

If you are familiar with the command line, it may be docker clifaster to use

# 新建文件夹 shinobi 和 子目录
mkdir -p /volume1/docker/shinobi/{
    
    config,customAutoLoad,database,plugins,videos}

# 新建临时文件存储文件系统
mkdir -p /dev/shm/Shinobi/streams

# 进入 shinobi 目录
cd /volume1/docker/shinobi

# 启动容器
docker run -d \
   --name=shinobi \
   --shm-size=2048m \
   -p 8686:8080 \
   -v $(pwd)/config:/config \
   -v $(pwd)/customAutoLoad:/home/Shinobi/libs/customAutoLoad \
   -v $(pwd)/database:/var/lib/mysql \
   -v $(pwd)/plugins:/home/Shinobi/plugins \
   -v $(pwd)/videos:/home/Shinobi/videos \
   -v /etc/TZ:/etc/TZ:ro \
   -v /etc/localtime:/etc/localtime:ro \
   -v /dev/shm/Shinobi/streams:/dev/shm/streams \
   registry.gitlab.com/shinobi-systems/shinobi:latest

You can also use to docker-composeinstall and save the following content as docker-compose.ymla file

version: '3'

services:
  shinobi:
    image: registry.gitlab.com/shinobi-systems/shinobi:latest
    container_name: shinobi
    shm_size: 2048m
    ports:
      - 8686:8080
    volumes:
      - ./config:/config
      - ./customAutoLoad:/home/Shinobi/libs/customAutoLoad
      - ./database:/var/lib/mysql
      - ./plugins:/home/Shinobi/plugins
      - ./videos:/home/Shinobi/videos
      - /etc/TZ:/etc/TZ:ro
      - /etc/localtime:/etc/localtime:ro
      - /dev/shm/Shinobi/streams:/dev/shm/streams

Then execute the following command

# 新建文件夹 shinobi 和 子目录
mkdir -p /volume1/docker/shinobi/{
    
    config,customAutoLoad,database,plugins,videos}

# 新建临时文件存储文件系统
mkdir -p /dev/shm/Shinobi/streams

# 进入 shinobi 目录
cd /volume1/docker/shinobi

# 将 docker-compose.yml 放入当前目录

# 一键启动
docker-compose up -d

run

Enter in the browser http://群晖IP:8686/superand you will see the administrator login interface.

Insert image description here

Default administrator username: [email protected]Password:admin

Insert image description here

login successful

Insert image description here

Create new user

First remember, for security reasons, please reset [email protected]the password of your account

Insert image description here

Create a new user

Just set the email and password, and other items can be set as needed

Max Storage AmountIndicates the maximum available storage, for example, it can be set to 10000, indicating10G

Insert image description here

Set Chinese

Enter it in the browser http://群晖IP:8686and log in using the account you just created.

Insert image description here

After successful login

Find in the left menu Account Settings--> Preferances-->Dashboard Language

Insert image description here

Scroll down to find it zh, click Savethe button in the lower right corner to save, and then refresh the page.

However, Lao Su felt that the level of translation was probably automatically translated by software, which made it a bit incomprehensible, so the following screenshots were taken from the English interface.

Insert image description here

Add camera

Find in the left menu Monitor SettingsStart adding a camera

Insert image description here

RTSPFill in the mainstream address of the camera

If available, fill in the camera substream RTSPaddress

Insert image description here

Others are the default values ​​used first, save

Insert image description here

use

Return to the left menu Monitors, the following numbers have 0changed from1

Insert image description here

VideosThere will be a video recording after a while

You can also set up area detection

The video is saved on Synology. Now even if SDthe card hangs, you don’t have to worry about no video.

Insert image description here

It has a lot of functions, take your time and explore it, but the memory usage is still a bit high.

Insert image description here

Reference documentation

Shinobi Systems / Shinobi · GitLab
location: https://gitlab.com/Shinobi-Systems/Shinobi

Shinobi - Simple CCTV and NVR Solution - Home
location: https://shinobi.video/

Docker · dev · Shinobi Systems / Shinobi · GitLab
site: https://gitlab.com/Shinobi-Systems/Shinobi/-/tree/dev/Docker

ShinobiDocs
location: https://docs.shinobi.video/

linux - When should I use /dev/shm/ and when should I use /tmp/? - Super User
地址:https://superuser.com/questions/45342/when-should-i-use-dev-shm-and-when-should-i-use-tmp

Guess you like

Origin blog.csdn.net/wbsu2004/article/details/132845218