Toybrick

标题: RK3399pro使用opencv无法打开视频 [打印本页]

作者: CQQQQQQQQQQ    时间: 2021-4-13 09:22
标题: RK3399pro使用opencv无法打开视频
      在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.
复制代码
      请问各位也遇到这样的问题了吗?





欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3