|
|
hace 1 semana | |
|---|---|---|
| deploy | hace 1 semana | |
| docs | hace 1 semana | |
| linux | hace 1 semana | |
| .gitignore | hace 1 semana | |
| CMakeLists.txt | hace 1 semana | |
| README.md | hace 1 semana | |
| auto_reboot.sh | hace 1 semana | |
| build.sh | hace 1 semana | |
| capture_fb.c | hace 1 semana | |
| channels.conf | hace 1 semana | |
| channels_flow_example.conf | hace 1 semana | |
| channels_local.conf | hace 1 semana | |
| composer.c | hace 1 semana | |
| composer.h | hace 1 semana | |
| decoder.c | hace 1 semana | |
| decoder.h | hace 1 semana | |
| detector.c | hace 1 semana | |
| detector.h | hace 1 semana | |
| display.c | hace 1 semana | |
| display.h | hace 1 semana | |
| dma_util.c | hace 1 semana | |
| dma_util.h | hace 1 semana | |
| flog.c | hace 1 semana | |
| flog.h | hace 1 semana | |
| fltk.png | hace 1 semana | |
| hikvision.c | hace 1 semana | |
| hikvision.h | hace 1 semana | |
| install.sh | hace 1 semana | |
| install_local_test.sh | hace 1 semana | |
| main.c | hace 1 semana | |
| plc.c | hace 1 semana | |
| plc.h | hace 1 semana | |
| plc_server.py | hace 1 semana | |
| plc_server.sh | hace 1 semana | |
| plc_sim.c | hace 1 semana | |
| rknn_api.h | hace 1 semana | |
| start.sh | hace 1 semana | |
| test_detector_bench.c | hace 1 semana | |
| test_dma_heap.c | hace 1 semana | |
| test_drm_display.c | hace 1 semana | |
| test_mpp.c | hace 1 semana | |
| test_plc.c | hace 1 semana | |
| test_rga.c | hace 1 semana | |
| test_rga_color.c | hace 1 semana | |
| title.c | hace 1 semana | |
| title.h | hace 1 semana | |
| uninstall.sh | hace 1 semana | |
| web_server.c | hace 1 semana | |
| web_server.h | hace 1 semana |
多路 RTSP 视频流多画面合成显示系统,运行于 RK3568 (Rockchip SoC)。
# 快捷编译(推荐)
./build.sh
# 或手动
cmake -B build .
cmake --build build -j$(nproc)
依赖:GStreamer 1.0(含 allocators)、librga、libdrm、rockchip_mpp、
freetype2、libpng、libjpeg、libcurl、pthread。
rknnrt 仅 test_detector_bench 基准测试需要。
# PLC 联调模式(同时启动 plc_server.py + plc_sim + auto_reboot)
sudo ./plc_server.sh
# 仅启动主程序
./start.sh
# 或手动指定
./build/rtsp_multi_view -c channels.conf
Ctrl+C 退出。
主要配置段:
[output] # 输出分辨率
[camera_list] # 海康相机批量配置(自动生成 RTSP URL)
[isapi_write] # 可选:写回相机编码参数
[layout] # 默认布局网格
[layoutN] # 各布局的摄像机排列
[title] # 标题栏
[plc] # PLC 连接参数
[plc_rules] # PLC 位号 -> 布局映射规则
[auto_reboot] # 自动重启调度
[auto_reboot]
enable = 0 # 0=禁用(默认) 1=启用
period = daily # daily=每天 weekly=每周
time = 03:00 # HH:MM 24小时制
weekday = monday # weekly 时有效: monday~sunday
需要 sshpass(脚本会自动安装)。
# 默认部署到 192.168.1.243(root/123456)
./deploy/deploy.sh
# 指定目标机
./deploy/deploy.sh -i 192.168.1.100 -u root -p mypass
# 编译后部署
./deploy/deploy.sh -c
# 只打包不部署
./deploy/deploy.sh -n
脚本自动完成:编译 → 打包 → scp 传输 → 远程执行 install.sh,无需手动干预。
# 1. 本机打包(产物在 deploy/ 目录)
./deploy/pack.sh
# 2. 传到目标机
scp deploy/rtsp_multi_view_aarch64_*.tar.gz root@192.168.1.243:/tmp/
# 3. 远程安装
ssh root@192.168.1.243
cd /tmp && tar xzf rtsp_multi_view_aarch64_*.tar.gz
cd rtsp_multi_view_deploy && ./install.sh
sudo ./install.sh # 安装(开机自启)
sudo ./uninstall.sh # 卸载
systemctl start rtsp_multi_view # 启动主程序
systemctl start auto-reboot # 启动自动重启调度
systemctl status rtsp_multi_view # 查看状态
journalctl -u rtsp_multi_view -f # 查看日志