What is Shinobi?
Shinobi
is an open source solutionNode.JS
written in .CCTV
Designed with a multi-account systemWebSocket Streams
and direct saving toMP4
.Shinobi
Provides aWeb
user interface based on which allows users to view and manage surveillance videos through a browser,Shinobi
supports 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 Hub
The version I posted was from two years ago.
The current image is released in gitlab registry
. There is one in total 6
. tags
Lao Su chose it latest
, which corresponds to CPU
the version. If your device has nvidia
a graphics card, you can consider choosing nvidia
the version. This version supportsGPU (NVIDIA CUDA)
Comparing the old and new versions, there is still a big size difference.
SSH
After 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 docker
proxy 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 cli
faster 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-compose
install and save the following content as docker-compose.yml
a 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/super
and you will see the administrator login interface.
Default administrator username:
[email protected]
Password:admin
login successful
Create new user
First remember, for security reasons, please reset [email protected]
the password of your account
Create a new user
Just set the email and password, and other items can be set as needed
Max Storage Amount
Indicates the maximum available storage, for example, it can be set to10000
, indicating10G
Set Chinese
Enter it in the browser http://群晖IP:8686
and log in using the account you just created.
After successful login
Find in the left menu Account Settings
--> Preferances
-->Dashboard Language
Scroll down to find it zh
, click Save
the 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.
Add camera
Find in the left menu Monitor Settings
Start adding a camera
RTSP
Fill in the mainstream address of the camera
If available, fill in the camera substream RTSP
address
Others are the default values used first, save
use
Return to the left menu Monitors
, the following numbers have 0
changed from1
Videos
There will be a video recording after a while
You can also set up area detection
The video is saved on Synology. Now even if SD
the card hangs, you don’t have to worry about no video.
It has a lot of functions, take your time and explore it, but the memory usage is still a bit high.
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