• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    图像硬件转换

    Scheduled Pinned Locked Moved Pi 4B
    2 Posts 2 Posters 342 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wangyx
      last edited by

      如题,在gstreamer场景中使用videoconvert转换图像效率太低,希望使用rga转换,但是使用RGA功能时会报以下的错误,是否驱动或者用户空间库需要对齐下

      $ gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw, width=1280,height=720,framerate=15/1,format=NV12 ! videoconvert ! video/x-raw, format=RGB ! mpph264enc ! filesink location=out1.h264
      Setting pipeline to PAUSED ...
      Using mplane plugin for capture
      libv4l2: error getting pixformat: Invalid argument
      Pipeline is live and does not need PREROLL ...
      Setting pipeline to PLAYING ...
      New clock: GstSystemClock
      rga_api version 1.10.0_[2]
       RgaBlit(1451) RGA_BLIT fail: Invalid argument
       RgaBlit(1452) RGA_BLIT fail: Invalid argument
      handl-fd-vir-phy-hnd-format[0, 26, (nil), (nil), 0, 0]
      rect[0, 0, 1280, 720, 3840, 720, 512, 0]
      f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
      handl-fd-vir-phy-hnd-format[0, 30, (nil), (nil), 0, 0]
      rect[0, 0, 1280, 720, 1280, 720, 2560, 0]
      f-blend-size-rotation-col-log-mmu[0, 0, 0, 0, 0, 0, 1]
      This output the user parameters when rga call blit fail
      ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
      Additional debug info:
      gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
      streaming stopped, reason not-negotiated (-4)
      Execution ended after 0:00:00.149564903
      Setting pipeline to NULL ...
      Freeing pipeline ...
      
      G 1 Reply Last reply Reply Quote 0
      • G
        george @wangyx
        last edited by

        @wangyx
        参考如下文档有格式和对齐要求:
        https://github.com/airockchip/librga

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post