5.0 KiB
5.0 KiB
id, title, url, favicon, tags, createdAt, updatedAt, contentType, version, publishedTime
| id | title | url | favicon | tags | createdAt | updatedAt | contentType | version | publishedTime |
|---|---|---|---|---|---|---|---|---|---|
| a42566e46c7cc90a | AHD摄像头 — LPA3588 v1.3.3 documentation | http://wiki.neardi.com/wiki/LPA3588/zh_CN/docs/module/ahd_camera.html | http://wiki.neardi.com/favicon.ico | 2026-03-27T03:34:01.857Z | 2026-03-27T03:34:18.324Z | markdown | 1 | 2026-03-27T03:34:01.842Z |
AHD摄像头
支持8路航插接口AHD摄像头输入点击购买,每路支持720/1080p@25/30fps分辨率。
电源适配器
AHD摄像头连接图片
更新固件
20230314版本之前默认不带AHD*8功能,通过uname -a查询版本;
若不符合,烧录 最新标准固件 烧录方法参阅 《使用Type-C线升级固件》一章。
AHD摄像头对应设备节点
| AHD | 设备节点 |
|---|---|
| AHD1 | /dev/video11 |
| AHD2 | /dev/video12 |
| AHD3 | /dev/video13 |
| AHD4 | /dev/video14 |
| AHD5 | /dev/video3 |
| AHD6 | /dev/video2 |
| AHD7 | /dev/video1 |
| AHD8 | /dev/video0 |
修改测试脚本
修改/rockchip-test/camera/camera_rkisp_test.sh 打开camera_rkisp_test.sh,然后去掉里面的最后一行后加入:
DISPLAY=:0.0 gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=640,height=480, framerate=30/1 ! fpsdisplaysink&
gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw,format=NV12,width=640,height=480, framerate=30/1 ! fpsdisplaysink &
gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-raw,format=NV12,width=640,height=480, framerate=30/1 ! fpsdisplaysink &
gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=NV12,width=640,height=480, framerate=30/1 ! fpsdisplaysink &
gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=640,height=480, framerate=30/1 ! fpsdisplaysink &
gst-launch-1.0 v4l2src device=/dev/video12 ! video/x-raw,format=NV12,width=640,height=480, framerate=30/1 ! fpsdisplaysink &
gst-launch-1.0 v4l2src device=/dev/video13 ! video/x-raw,format=NV12,width=640,height=480, framerate=30/1 ! fpsdisplaysink &
gst-launch-1.0 v4l2src device=/dev/video14 ! video/x-raw,format=NV12,width=640,height=480, framerate=30/1 ! fpsdisplaysink
若单独测试一路AHD,务必加上sudo执行:
sudo gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=640,height=480, framerate=30/1 ! fpsdisplaysink
验证测试脚本
sudo /rockchip-test/camera/camera_rkisp_test.sh
执行成功结果:
neardi@LPA3588:~$ sudo /rockchip-test/camera/camera_rkisp_test.sh
Start RKISP Camera Preview!
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Setting pipeline to PAUSED ...
...
Redistribute latency...
0:22:57.3 / 99:99:99.
FAQ
AHD摄像头pin脚如何定义的?
AHD摄像头为什么不出图?
简单排查
-
摄像头确保是
720/1080p@25/30fps分辨率。 -
8路摄像头使用同一分辨率和帧率;不要混用,例如AHD1接720p,AHD2接1080p。
-
不能热插拔。
-
若固件是自行编译的,确保SDK升级到最新的,
V4.0及以上。 -
检查电源,使用
DC 9-36V电源。 -
测试Neardi配套的摄像头,再对比自行购买的摄像头。
抓图排查
使用v4l2-ctl工具抓图测试
# AHD1抓图
v4l2-ctl -d /dev/video11 --set-fmt-video=width=1920,height=1080,pixelformat=NV12 --stream-mmap=3 --stream-skip=3 --stream-to=/tmp/ahd.out --stream-count=1 --stream-poll
抓图正常返回结果,否则为异常:
<<<<



