Firefly开源社区

官方默认程序camera_capture_test.cc运行失败求助

408

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
408
发表于 2021-7-22 16:23:33     
本帖最后由 ubuntu 于 2021-7-22 16:25 编辑

参考官方文档Rockchip_Instruction_Linux_Application_ISP20_CN.pdf 2.1节。
成功build 如下程序push 后
external/rkmedia/examples/unitTest/stream/camera_capture_test.cc
执行如下程序失败, video19 在我设备上是isppscale0, 执行过程如下, 会产生一个size为0的out.yuv
  1. <div class="blockcode"><blockquote>[root@RV1126_RV1109:/oem/usr/bin]# camera_cap_test -i /dev/video19 -o /tmp/outpu
  2. t.yuv -w 1920 -h 1080 -f image:yuyv422
  3. origin media get entity by name: rkcif-lvds-subdev is null
  4. origin media get entity by name: rkcif-lite-lvds-subdev is null
  5. origin media get entity by name: rkisp-mpfbc-subdev is null
  6. origin media get entity by name: rkisp_dmapath is null
  7. [wotianjiade] origin media get entity by name: rockchip-mipi-dphy-rx is null
  8. Rga built version:1.04 9286b22+2021-07-21 09:58:28
  9. input path: /dev/video19
  10. output file path: /tmp/output.yuv
  11. input format: image:yuyv422
  12. output format:
  13. width, height: 1920, 1080

  14. Stream:
  15. alsa_capture_stream alsa_playback_stream drm_output_stream file_read_stream file_write_stream v4l2_capture_stream

  16. [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media0
  17. [wotianjiade] origin media get entity by name: rkcif-lvds-subdev is null
  18. [wotianjiade] origin media get entity by name: rkcif-lite-lvds-subdev is null
  19. [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media1
  20. [wotianjiade] origin media get entity by name: rkisp-mpfbc-subdev is null
  21. [wotianjiade] origin media get entity by name: rkisp_dmapath is null
  22. [wotianjiade] origin media get entity by name: rockchip-mipi-dphy-rx is null
  23. [RKMEDIA][SYS][Info]:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev4
  24. [RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media2
  25. [RKMEDIA][SYS][Info]:RKAIQ: model(rkispp0): ispp_info(0): ispp-subdev entity name: /dev/v4l-subdev0
  26. [RKMEDIA][SYS][Info]:#V4l2Stream: camraID:0, Device:/dev/video19
  27. [RKMEDIA][SYS][Info]:#V4l2Stream: camera id:0, VideoNode:/dev/video19
  28. Using mplane plugin for capture
  29. [RKMEDIA][SYS][Info]:#V4L2Ctx: open /dev/video19, fd 5
  30. [RKMEDIA][SYS][Info]:Opened DRM device /dev/dri/card0: driver rockchip version 2.0.0.
复制代码


回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11135

优秀版主

发表于 2021-7-22 19:45:18     
cd /oem;./RkLunch-stop.sh 之后再运行看看效果
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表