图像硬件转换
-
如题,在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 ...
-
@wangyx
参考如下文档有格式和对齐要求:
https://github.com/airockchip/librga