Firefly开源社区

[技术讨论] 使用qt的qcamera采集rk_hdmirx输入的视频流报错

25

积分

0

威望

0

贡献

技术小白

积分
25
发表于 2023-10-8 17:10:50     
  • 固件类型: 自行编译的固件
  • SDK包名称: rk3588_linux_release_20230114_v1.0.6c
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: 使用buildroot编译,qt运行环境wayland
  • Log日志: log.zip
问题描述及复现步骤:
本帖最后由 drinker 于 2023-10-8 17:10 编辑

通过hdmi输入接口的设备为/dev/video40,信息如下
  1. root@rk3588:/# v4l2-ctl -d /dev/video40  -V -D
  2. Driver Info:
  3.         Driver name      : rk_hdmirx
  4.         Card type        : rk_hdmirx
  5.         Bus info         : fdee0000.hdmirx-controller
  6.         Driver version   : 5.10.160
  7.         Capabilities     : 0x84201000
  8.                 Video Capture Multiplanar
  9.                 Streaming
  10.                 Extended Pix Format
  11.                 Device Capabilities
  12.         Device Caps      : 0x04201000
  13.                 Video Capture Multiplanar
  14.                 Streaming
  15.                 Extended Pix Format
  16. Format Video Capture Multiplanar:
  17.         Width/Height      : 1920/1080
  18.         Pixel Format      : 'BGR3' (24-bit BGR 8-8-8)
  19.         Field             : None
  20.         Number of planes  : 1
  21.         Flags             : premultiplied-alpha, 0x000000fe
  22.         Colorspace        : sRGB
  23.         Transfer Function : Unknown (0x000000b8)
  24.         YCbCr/HSV Encoding: Unknown (0x000000ff)
  25.         Quantization      : Full Range
  26.         Plane 0           :
  27.            Bytes per Line : 5760
  28.            Size Image     : 6220800
复制代码

使用gstreamer可以正常采集并通过hdmi输出到显示器,命令如下:
  1. gst-launch-1.0 v4l2src device=/dev/video40 ! video/x-raw, width=1920, height=1080,framerate=60/1 ! queue max-size-bytes=0 ! kmssink connector-id=205 plane-id=54 fullscreen=1
复制代码

使用qt的 qcamera和QCameraViewfinder采集视频并显示报以下错误:

  1. root@rk3588:/opt/padview/bin# ./padview
  2. QStandardPaths: runtime directory '/var/run' is not a directory, but a symbolic link to a directory permissions 0755 owned by UID 0 GID 0
  3. arm_release_ver: g13p0-01eac0, rk_so_ver: 3
  4. 0:00:00.016594085  3305   0x7f7c004d60 WARN                 default descriptions.c:825:format_info_get_desc: Missing mpegversion field in mpeg video caps video/mpeg, systemstream=(boolean)false
  5. CaptureMode Supported CaptureVideo.
  6. Using mplane plugin for capture
  7. 0:00:03.233958575  3305   0x7f7c004d60 WARN                    v4l2 gstv4l2object.c:3159:gst_v4l2_object_get_nearest_size:<camera_source:src> Unable to try format: Invalid argument
  8. 0:00:03.234863908  3305   0x7f7c004d60 WARN                    v4l2 gstv4l2object.c:3031:gst_v4l2_object_probe_caps_for_format:<camera_source:src> Could not probe minimum capture size for pixelformat NV12
  9. 0:00:03.236401284  3305   0x7f7c004d60 WARN                    v4l2 gstv4l2object.c:3159:gst_v4l2_object_get_nearest_size:<camera_source:src> Unable to try format: Invalid argument
  10. 0:00:03.237765409  3305   0x7f7c004d60 WARN                    v4l2 gstv4l2object.c:3037:gst_v4l2_object_probe_caps_for_format:<camera_source:src> Could not probe maximum capture size for pixelformat NV12
  11. 0:00:03.239355284  3305   0x7f7c004d60 WARN                    v4l2 gstv4l2object.c:3159:gst_v4l2_object_get_nearest_size:<camera_source:src> Unable to try format: Invalid argument
  12. 0:00:03.240678867  3305   0x7f7c004d60 WARN                    v4l2 gstv4l2object.c:3031:gst_v4l2_object_probe_caps_for_format:<camera_source:src> Could not probe minimum capture size for pixelformat NV16
  13. 0:00:03.242223534  3305   0x7f7c004d60 WARN                    v4l2 gstv4l2object.c:3159:gst_v4l2_object_get_nearest_size:<camera_source:src> Unable to try format: Invalid argument
  14. 0:00:03.243586493  3305   0x7f7c004d60 WARN                    v4l2 gstv4l2object.c:3037:gst_v4l2_object_probe_caps_for_format:<camera_source:src> Could not probe maximum capture size for pixelformat NV16
  15. 0:00:03.245185701  3305   0x7f7c004d60 WARN                    v4l2 gstv4l2object.c:3159:gst_v4l2_object_get_nearest_size:<camera_source:src> Unable to try format: Invalid argument
  16. 0:00:03.246496743  3305   0x7f7c004d60 WARN                    v4l2 gstv4l2object.c:3031:gst_v4l2_object_probe_caps_for_format:<camera_source:src> Could not probe minimum capture size for pixelformat NV24
  17. 0:00:03.248046368  3305   0x7f7c004d60 WARN                    v4l2 gstv4l2object.c:3159:gst_v4l2_object_get_nearest_size:<camera_source:src> Unable to try format: Invalid argument
  18. 0:00:03.249413243  3305   0x7f7c004d60 WARN                    v4l2 gstv4l2object.c:3037:gst_v4l2_object_probe_caps_for_format:<camera_source:src> Could not probe maximum capture size for pixelformat NV24
  19. Using mplane plugin for capture
  20. Unable to query the parameter info: QCameraImageProcessingControl::WhiteBalancePreset : "Invalid argument"
  21. Unable to query the parameter info: QCameraImageProcessingControl::ColorTemperature : "Invalid argument"
  22. Unable to query the parameter info: QCameraImageProcessingControl::ContrastAdjustment : "Invalid argument"
  23. Unable to query the parameter info: QCameraImageProcessingControl::SaturationAdjustment : "Invalid argument"
  24. Unable to query the parameter info: QCameraImageProcessingControl::BrightnessAdjustment : "Invalid argument"
  25. Unable to query the parameter info: QCameraImageProcessingControl::SharpeningAdjustment : "Invalid argument"
  26. 0:00:03.285435080  3305   0x7f7c004d60 WARN            videoencoder gstvideoencoder.c:1797:gst_video_encoder_change_state:<mppvp8enc1> error: Failed to start encoder
  27. CameraBin error: "Could not initialize supporting library."
复制代码
通过各种网络查询大概是说没有找到正确的gstreamer插件,需要配置GST_PLUGIN_PATH环境变量,尝试了也没有解决,请问需要怎么处理呢,谢谢!




image.png

log.zip

36.87 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

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

本版积分规则

Copyright © 2014-2022 中山市天启智能科技有限公司 粤ICP备14022046号
快速回复 返回顶部 返回列表