高通Ride软件开发包使用指南(7)
- 6.5 构建 x86 Ubuntu SDK
- 6.6端到端可视化
- 6.7 x86 Ubuntu上的功能验证
- 6.7.1简单比特率验证
- 6.7.2在x86笔记本上用 8xCams HEVC格式 录制 FPS
- 6.8记录仪
6.5 构建 x86 Ubuntu SDK
- 构建 x86 ubuntu
~/src/qride/stack-sdk$ ./extra/run-build.sh x86_64-ubuntu2004 - 复制以前生成的系统。json文件导入x86 Ubuntu docker目录(请参见第6.4节)。
~/src/qride/stack-sdk$ sudo cp system.json run-x86_64-
ubuntu2004/opt/qride/conf
6.6端到端可视化
要在Ubuntu系统中执行可视化,请输入以下命令
~/src/qride/stack-sdk$ ./extra/run-local-target.sh x86_64-ubuntu2004
Started x86_64-ubuntu2004:latest
$ /opt/qride/bin/qride-stack --target X0 --start
Loading /opt/qride/conf/system.json for target X0
Starting node N1
6.7 x86 Ubuntu上的功能验证
6.7.1简单比特率验证
$ ./extra/run-local-target x86_64-ubuntu2004
### inside the docker container ###
$ cd /opt/qride/log
$ rm -rf recordings*
$ /opt/qride/bin/qride-stack --target X0 --start; sleep 60;
/opt/qride/bin/qride-stack --target X0 --stop
Loading /opt/qride/conf/system.json for target X0
Starting node N1
$ du -sh recordings*
855M recordings
$ echo '855 * 8 / 60.0 / 8.0' | bc
14 #### 14Mbps per Camera
6.7.2在x86笔记本上用 8xCams HEVC格式 录制 FPS
RAW格式的FPS都在29-30
/opt/qride/log$ tail -f /opt/qride/log/N1.txt | awk '/vdds-push
\/timesync\/1hz/ { print $1, "------"; for (i in c) { print "fps: ", i,
c[i]; } delete c; } /vdds-push \/sensors\/camera\/CAM.*\/hevc/ { c[$6] +=
1; }'
00002362204.195248088 ------
fps: /sensors/camera/CAM1/hevc 29
fps: /sensors/camera/CAM0/hevc 30
fps: /sensors/camera/CAM6/hevc 29
fps: /sensors/camera/CAM5/hevc 29
fps: /sensors/camera/CAM7/hevc 29
fps: /sensors/camera/CAM4/hevc 29
fps: /sensors/camera/CAM3/hevc 30
fps: /sensors/camera/CAM2/hevc 29
00002362205.195246618 ------
fps: /sensors/camera/CAM1/hevc 30
fps: /sensors/camera/CAM0/hevc 29
fps: /sensors/camera/CAM6/hevc 30
fps: /sensors/camera/CAM5/hevc 29
fps: /sensors/camera/CAM7/hevc 29
fps: /sensors/camera/CAM4/hevc 29
fps: /sensors/camera/CAM3/hevc 29
fps: /sensors/camera/CAM2/hevc 29
6.8记录仪
录像机功能允许将平台摄像机视频录制到文件中。只有摄像头记录馈送。不记录检测边界框。
必须配置HEVC编码器。例如:
{ "template": "driver/camera/hevc", "name": "VENC0", "node": "N0",
"camera": "CAM0", "mbps": "14" }
什么时候用:
■ “摄像机”标识配置中定义的平台摄像机之一
■ “node”标识与“target/makena”关联的“node/one”
更改编码器“mbps”不会影响帧速率或分辨率。主要影响将在对记录的视频进行后处理。大的“mbps”最终可能会导致数据包丢失。
还必须配置记录器。例如:
{ "template": "recorder/camera", "name": "VREC0", "node": "N2",
"camera": "CAM0" }
录制保存在SDK文件夹下…/log/Recordings/。
每个相机的文件以1GB的增量保存。这些文件将在1GB或者x86节点已停止或终止。
Recorder保存的原始基本流可能与某些流行的例如VLC。
要查看视频播放,请使用mplayer:
$ sudo apt install mplayer
$ mplayer ../log/recordings/CAM0/latest/camera_data.h265.000000