i.MX8QM - Unable to use imxvideoconvert_g2d

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX8QM - Unable to use imxvideoconvert_g2d

1,505件の閲覧回数
AndreSilva
Contributor II

Hi NXP Support,

 

I am trying to perform a colorspace conversion using hardware acceleration, with the imxvideoconvert_g2d, here is log:

 

GST_DEBUG=2 taskset 0x10 gst-launch-1.0 -v v4l2src device=/dev/video0 io-mode=dmabuf ! video/x-raw,width=1920,height=1080,framerate=30/1,format=UYVY ! imxvideoconvert_g2d ! v4l2h264enc ! h264parse ! matroskamux ! filesink location=gst.mkv


Setting pipeline to PAUSED ...
0:00:00.382742759 1792 0xaaab0483eac0 WARN v4l2 gstv4l2object.c:2031:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.382809632 1792 0xaaab0483eac0 WARN v4l2 gstv4l2object.c:2031:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from http://git.linuxtv.org/v4l-utils.git

0:00:00.382971378 1792 0xaaab0483eac0 WARN v4l2 gstv4l2object.c:4400:gst_v4l2_object_probe_caps:<v4l2h264enc0:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Invalid argument
0:00:00.383419993 1792 0xaaab0483eac0 WARN v4l2 v4l2_calls.c:547:gst_v4l2_subscribe_event:<v4l2src0> Cannot subscribe V4L2_EVENT_SOURCE_CHANGE or V4L2_EVENT_EOS event for device '/dev/video0'.
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, format=(string)UYVY, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, format=(string)UYVY, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1
0:00:00.387208901 1792 0xaaab048256d0 WARN basetransform gstbasetransform.c:1362:gst_base_transform_setcaps:<imxvideoconvert_g2d0> transform could not transform video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, format=(string)UYVY, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1 in anything we support
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, format=(string)UYVY, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1
0:00:00.387575267 1792 0xaaab048256d0 WARN basetransform gstbasetransform.c:1362:gst_base_transform_setcaps:<imxvideoconvert_g2d0> transform could not transform video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, format=(string)UYVY, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1 in anything we support
0:00:00.387614391 1792 0xaaab048256d0 WARN GST_PADS gstpad.c:4231:gst_pad_peer_query:<capsfilter0:src> could not send sticky events
0:00:00.396566050 1792 0xaaab048256d0 WARN v4l2bufferpool gstv4l2bufferpool.c:813:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src> Uncertain or not enough buffers, enabling copy threshold
0:00:00.421386826 1792 0xaaab048256d0 WARN v4l2allocator gstv4l2allocator.c:1369:gst_v4l2_allocator_dqbuf:<v4l2src0:pool:src:allocator> V4L2 provided buffer has bytesused 0 which is too small to include data_offset 0
0:00:00.421752317 1792 0xaaab048256d0 WARN v4l2bufferpool gstv4l2bufferpool.c:1322:gst_v4l2_buffer_pool_dqbuf:<v4l2src0:pool:src> Driver should never set v4l2_buffer.field to ANY
0:00:00.421802816 1792 0xaaab048256d0 WARN v4l2src gstv4l2src.c:914:gst_v4l2src_create:<v4l2src0> Timestamp does not correlate with any clock, ignoring driver timestamps
0:00:00.422154557 1792 0xaaab048256d0 WARN basetransform gstbasetransform.c:1362:gst_base_transform_setcaps:<imxvideoconvert_g2d0> transform could not transform video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, format=(string)UYVY, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1 in anything we support
0:00:00.422393177 1792 0xaaab048256d0 WARN basetransform gstbasetransform.c:1362:gst_base_transform_setcaps:<imxvideoconvert_g2d0> transform could not transform video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, format=(string)UYVY, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1 in anything we support
0:00:00.422471300 1792 0xaaab048256d0 WARN basesrc gstbasesrc.c:3072:gst_base_src_loop:<v4l2src0> error: Internal data stream error.
0:00:00.422508299 1792 0xaaab048256d0 WARN basesrc gstbasesrc.c:3072:gst_base_src_loop:<v4l2src0> error: streaming stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../git/libs/gst/base/gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.037814462
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
root@apalis-imx8:~#

 

is there any know issue or something I am missing in my pipeline ?

 

thanks,

Andre

ラベル(1)
0 件の賞賛
返信
1 返信

1,481件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

how about adding "output-io-mode=dmabuf-import" after v4l2h264enc ?

0 件の賞賛
返信