docs: update guide.md with local test paths
- Carry over uncommitted changes from original repo - Update old references: rk3588-agent → safesight-agent
This commit is contained in:
parent
c26531b4f3
commit
760eb35697
@ -19,7 +19,7 @@ ffmpeg -f dshow -list_options true -i video="你的摄像头名称"
|
||||
ffmpeg -f dshow -list_options true -i video="HD Webcam eMeet C960"
|
||||
|
||||
- 本地运行RTSP服务器
|
||||
mediamtx.exe
|
||||
C:\Software\mediamtx\mediamtx.exe
|
||||
|
||||
- 推流到RTSP服务器(设置摄像头的分辨率为720P)
|
||||
ffmpeg -f dshow -rtbufsize 100M -video_size 1280x720 -framerate 30 -vcodec mjpeg -i video="4K AutoFocus Webcam" -c:v libx264 -preset ultrafast -pix_fmt yuv420p -f rtsp rtsp://localhost:8554/cam
|
||||
@ -34,6 +34,8 @@ ffmpeg -stream_loop -1 -re -i "boots.mp4" -c:v libx264 -preset fast -tune zerola
|
||||
|
||||
ffmpeg -re -stream_loop -1 -i reg_001_单人_侧面_黑色鞋_1.mp4 -c copy -rtsp_transport tcp -f rtsp rtsp://10.0.0.49:8554/cam
|
||||
|
||||
C:\Users\Tellme\Pictures\人脸库> ffmpeg -re -stream_loop -1 -i reg_008_unk_011_多人_正面_黑色鞋_白色鞋_1.mp4 -c copy -rtsp_transport tcp -f rtsp rtsp://10.0.0.49:8554/cam
|
||||
|
||||
- 本地验证RTSP拉流正确
|
||||
ffplay rtsp://localhost:8554/cam
|
||||
|
||||
@ -48,17 +50,19 @@ http://10.0.0.50:9000/hls_player.html
|
||||
rtsp://10.0.0.50:8555/live/cam1
|
||||
|
||||
- 编译agent
|
||||
go build -o rk3588-agent_linux_arm64 ./cmd/rk3588-agent
|
||||
go build -o safesight-agent_linux_arm64 ./cmd/safesight-agent
|
||||
|
||||
|
||||
- 运行模拟告警服务
|
||||
python .\mock_alarm_server.py
|
||||
C:\Users\Tellme\apps\safesight-edge\python .\mock_alarm_server.py
|
||||
或
|
||||
uv run --with flask scripts/mock_alarm_server.py
|
||||
|
||||
- 运行minio
|
||||
C:\Users\Tellme\minio\minio.exe server C:\Users\Tellme\minio\myminio --address ":9000" --console-address ":9001"
|
||||
|
||||
用户名密码是:admin/password
|
||||
|
||||
然后在 RK3588 上测试 token 接口:
|
||||
curl -X POST http://10.0.0.49:8080/api/getToken
|
||||
|
||||
@ -66,7 +70,7 @@ curl -X POST http://10.0.0.49:8080/api/getToken
|
||||
go run .\cmd\managerd\main.go .\managerd.json
|
||||
|
||||
# 综合监控(运行脚本)
|
||||
~/apps/OrangePi3588Media/scripts/ops.sh hw
|
||||
~/apps/safesight-edge/scripts/ops.sh hw
|
||||
|
||||
|
||||
- 标准单路全流程测试:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user