Toybrick

RK3399pro使用opencv无法打开视频

CQQQQQQQQQQ

注册会员

积分
66
发表于 2021-4-13 09:22:44    查看: 282|回复: 0 | [复制链接]    打印 | 显示全部楼层
      在RK3399pro 上面编译安装opencv3.4.7和FFmpeg4.1,在调用VideoCapture函数打开本地视频文件时,一直报错,报错信息如下:
  1. librga:RGA_GET_VERSION:3.02,3.020000
  2. ctx=0x5574a74e90,ctx->rgaFd=3
  3. Rga built version:version:+2017-09-28 10:12:42
  4. This system has 6 processor(s).
  5. Bind NPU process(1) to CPU 5
  6. Bind VideoCapture process to CPU 2
  7. Bind NPU process(0) to CPU 4
  8. Bind Display process to CPU 3
  9. [mpeg4_v4l2m2m @ 0x7f90002750] Could not find a valid device
  10. [mpeg4_v4l2m2m @ 0x7f90002750] can't configure decoder
  11. [ WARN:0] OpenCV | GStreamer warning: GStreamer: pipeline have not been created
  12. [ERROR:0] VIDEOIO(createGStreamerCapture(filename)): raised OpenCV exception:

  13. OpenCV(3.4.7) /home/firefly/Downloads/opencv-3.4.7/modules/videoio/src/cap_gstreamer.cpp:160: error: (-215:Assertion failed) ptr in function 'get'


  14. VIDIOC_REQBUFS: Inappropriate ioctl for device
  15. Fail to open test1_405.mp4
  16. D RKNNAPI: ==============================================
  17. D RKNNAPI: RKNN VERSION:
  18. D RKNNAPI:   API: 1.4.0 (bbe0dfc build: 2020-09-14 14:06:05)
  19. D RKNNAPI:   DRV: 1.6.0 (159d2d3 build: 2021-01-12 15:23:09)
  20. D RKNNAPI: ==============================================
  21. D RKNNAPI: ==============================================
  22. D RKNNAPI: RKNN VERSION:
  23. D RKNNAPI:   API: 1.4.0 (bbe0dfc build: 2020-09-14 14:06:05)
  24. D RKNNAPI:   DRV: 1.6.0 (159d2d3 build: 2021-01-12 15:23:09)
  25. D RKNNAPI: ==============================================
  26. The initialization of NPU Process 0 has been completed.
  27. The initialization of NPU Process 1 has been completed.
复制代码
      请问各位也遇到这样的问题了吗?
回复

使用道具 举报

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

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表