【分享】解决gst-launch-1.0错误“ERROR: Failed to allocate required memory.”

2020-07-16 11:26:19 浏览数 (1)

执行gst-launch-1.0时,得到错误“ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.”。

最后发现HDMI输入设备没有连接。 在之前,没有注意到“xmedia-ctl -p -d /dev/media1”的输出中,hdmi_rx_ss没有连接。

没有HDMI输入设备的设备信息:

代码语言:javascript复制
root@vcu_llp2_xv20:~# xmedia-ctl -p -d /dev/media1
Media controller API version 4.19.0
... ...
Device topology
... ...
- entity 8: a0000000.v_hdmi_rx_ss (1 pad, 1 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev2
        pad0: Source
                [fmt:RBG888_1X24/1280x720 field:none colorspace:srgb]
                [dv.caps:BT.656/1120 min:0x0@25000000 max:4096x2160@297000000 stds:CEA-861,DMT,CVT,GTF caps:progressive,reduced-blanking,custom]
                [dv.query:no-link]
                -> "a0040000.v_proc_ss":0 [ENABLED]

有HDMI输入设备的设备信息:

代码语言:javascript复制
root@vcu_llp2_xv20:~# xmedia-ctl -p -d /dev/media1
Media controller API version 4.19.0
... ...
Device topology
... ...
- entity 8: a0000000.v_hdmi_rx_ss (1 pad, 1 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev2
        pad0: Source
                [fmt:RBG888_1X24/1920x1080 field:none colorspace:srgb]
                [dv.caps:BT.656/1120 min:0x0@25000000 max:4096x2160@297000000 stds:CEA-861,DMT,CVT,GTF caps:progressive,reduced-blanking,custom]
                [dv.detect:BT.656/1120 1920x1080p60 (2200x1125) stds:CEA-861 flags:CE-video]
                -> "a0040000.v_proc_ss":0 [ENABLED]

0 人点赞