温馨提示,mvideo 需要购买获取安装包才能安装使用联系购买:17797173942(微信)
mvideo 是通过c++ 开发所以比较特殊,需要用ubuntu 20.04 版本,并且是x86架构cpu。
如果你另外买了磁盘,需要将磁盘挂载上去,如果没有另外买磁盘略过
挂载目录为 /home/mvideo 目录,如果没有创建
mkdir /home/mvideo
fdisk -l 查找新磁盘的设备名称
fdisk -l
格式化磁盘(例如,使用ext4文件系统)
mkfs.ext4 /dev/vdb
挂载磁盘:
mount /dev/vdb /home/mvideo
自动挂载(可选,确保每次启动系统时自动挂载)
echo '/dev/vdb /home/mvideo ext4 defaults 0 2' >> /etc/fstab
重启服务器
reboot
安装梓豪方便上传文件和执行shell 方便,如果不习惯可以不装
wget https://homecommunity.oss-cn-beijing.aliyuncs.com/install.sh -O zihaoinstall.sh && sh zihaoinstall.sh
上传HC团队提供的mvideo.tar 文件,将文件上传至/home/mvideo 下,解压
cd /home/mvideo
tar -xvf mvideo.tar
mv bin mvideo
位置文件在/home/mvideo/mvideo/conf 下 config.json
{
"serverIp":"120.226.17.186", # 服务器外网IP
"serverPort":9090,
"rtpPort":20001,
"wsPort":9002,
"gb28181Port":5060,
"playVideoTheadCount":100,
"interSipId":"34020000002000000001",
"interSipRealm":"3402000000",
"interSipPass":"123456",
"interSipPort":15060,
"interRtpIp":"101.226.17.186", # 摄像头推流地址
"interRtpPort":20002,
"interRtcpSwitch":"OFF",
"netName":"eth0",# ifconfig 获取的网卡名称
"format":"ws",
"aiIp":"10.0.0.172", # AI平台IP
"aiPort":5050,
"filePath":"/home/mvideo/www/file", # 文件存放路径
"thresholdValue":30
}
需要修改的是serviceIp interRtpIp netName filePath aiIp
apt-get update && apt-get install -y libx11-6 libvdpau-dev libva-drm2 libva-dev
chmod u+x *.sh
cd /home/mvideo/mvideo
sh MDaemon
查看进程是否存在
ps -ef | grep MV
cd /home/mvideo/mvideo
tail -100f mvideo.log