1.9 KiB
1.9 KiB
Vehicle Video Service
This repository builds and packages the vehicle video service as one deployable stack:
vehicle_video_service: camera capture, RTMP push, MQTT status and record query handling.- SRS live instance: low-latency live playback over RTMP to WebRTC/WHEP.
- SRS record instance: DVR segment recording and HTTP file serving.
- systemd units for all three services.
Build
./scripts/build_video.sh
If you need to rebuild SRS from the bundled source:
./scripts/build_srs.sh
SRS is built out-of-tree into:
build/srs/objs/srs
Package
./scripts/package_release.sh
Or build everything and package it in one command:
./scripts/build_all.sh
The output is:
dist/vehicle-video-service-aarch64.tar.gz
Install On Target
tar -xzf vehicle-video-service-aarch64.tar.gz
cd vehicle-video-service-aarch64
sudo ./install.sh
Defaults:
- Install dir:
/opt/vehicle-video-service - Record dir:
/media/record - Runtime user:
$SUDO_USER
You can override them:
sudo INSTALL_DIR=/opt/vehicle-video-service SERVICE_USER=aiec ./install.sh
Services
systemctl status vehicle-video-srs-live.service
systemctl status vehicle-video-srs-record.service
systemctl status vehicle-video-service.service
The application reads config.json next to the executable at:
/opt/vehicle-video-service/bin/config.json
Web Configuration
The service includes a small built-in configuration page:
http://<device-ip>:18080
Default login:
admin / admin123
The page can edit camera channels, live/record switches, SRS ports, record path, MQTT settings, and the management page port. Saving writes config.json and regenerates SRS live.conf / record.conf under the configured SRS root. Restart the related services after saving for runtime changes to take effect.