It's not working : mxc_v4l2_capture -> gstreamer imxv4l2src

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

It's not working : mxc_v4l2_capture -> gstreamer imxv4l2src

1,162 Views
vzdornovna88
Contributor I

imx6.yocto.jethro(kernel 4.1.15) : tvp_5150 -> (CSI-0,IPU-0) -> mxc_v4l2_capture -> /dev/video0 ->

# gst-launch-1.0 --gst-debug=*:1 -v imxv4l2src device=/dev/video0 ! imxv4l2sink


====== IMXV4L2SRC: 4.0.9 build on May 16 2017 09:56:50. ======
====== IMXV4L2SINK: 4.0.9 build on May 16 2017 09:56:50. ======


Setting pipeline to PAUSED ...
display(/dev/fb0) resolution is (640x480).


Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...


New clock: GstSystemClock
/GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)720\,\ height\=\(int\)525\,\ framerate\=\(fraction\)30/1\,\ interlace-mode\=\(string\)interleaved"


/GstPipeline:pipeline0/GstImxV4l2Sink:imxv4l2sink0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)720\,\ height\=\(int\)525\,\ framerate\=\(fraction\)30/1\,\ interlace-mode\=\(string\)interleaved"


0:00:00.122364667 5317 0x20956f0 ERROR imxv4l2sink gstimxv4l2sink.c:498:gst_imx_v4l2sink_setup_buffer_pool:<imxv4l2sink0> set buffer pool failed.

0:00:00.222433667 5317 0x20956f0 ERROR bufferpool gstbufferpool.c:525:gst_buffer_pool_set_active:<videobufferpool0> pool was not configured


0:00:00.222589000 5317 0x20956f0 ERROR imxv4l2sink gstimxv4l2sink.c:762:gst_imx_v4l2sink_show_frame:<imxv4l2sink0> active pool(0x75d05200) failed.


ERROR: from element /GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0: Internal data flow error.


Additional debug info:
/home/panovau/yocto_work/var-som-mx6-yocto-fido/build_x11/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.6.0-r0/gstreamer-1.6.0/libs/gst/base/gstbasesrc.c(2943): gst_base_src_loop (): /GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0:
streaming task paused, reason error (-5)
Execution ended after 0:00:00.104379334
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Total showed frames (0), playing for (0:00:00.105220000), fps (0.000).
Freeing pipeline ...

0 Kudos
5 Replies

882 Views
joanxie
NXP TechSupport
NXP TechSupport

could you test tvin by the imx unit test? use the mxc_v4l2_tvin.out, for more detailed information, pls refer to the document as below
https://community.nxp.com/docs/DOC-332679 

0 Kudos

882 Views
mihail75r
Contributor I

# /unit_tests/mxc_v4l2_tvin.out -ow 640 -oh 480 -m 1
TV decoder chip is adv_tvp5150_decoder
driver=mxc_vout, card=DISP3 FG, bus=, version=0x0004010f, capabilities=0x84200002
fmt RGB565: fourcc = 0x50424752
fmt BGR24: fourcc = 0x33524742
fmt RGB24: fourcc = 0x33424752
fmt RGB32: fourcc = 0x34424752
fmt BGR32: fourcc = 0x34524742
fmt NV12: fourcc = 0x3231564e
fmt UYVY: fourcc = 0x59565955
fmt YUYV: fourcc = 0x56595559
fmt YUV422 planar: fourcc = 0x50323234
fmt YUV444: fourcc = 0x34343459
fmt YUV420: fourcc = 0x32315559
fmt YVU420: fourcc = 0x32315659
fmt TILED NV12P: fourcc = 0x50564e54
fmt TILED NV12F: fourcc = 0x46564e54
fmt YUV444 planar: fourcc = 0x50343434
start time = 1551804913 s, 177339 us

(Nik Vzdornov and I we are from the same company.)

0 Kudos

882 Views
joanxie
NXP TechSupport
NXP TechSupport

do you get any error ? nothing output to the display? what's the status?

0 Kudos

882 Views
mihail75r
Contributor I

# /unit_tests/mxc_v4l2_tvin.out -ow 640 -oh 480 -m 1

No error. There is an output to the display. Ok.

But "gst-launch-1.0 --gst-debug=*:1 -v imxv4l2src device=/dev/video0 ! imxv4l2sink" it's not working.

0 Kudos

882 Views
joanxie
NXP TechSupport
NXP TechSupport

the command you use is not for tvin, since you use tv5150, I suggest that you can use unit test, this is for tvin, if you must use gstreamer, maybe you can try to use the command as below:

1)Deinterlacing with i.MX with IPU
gst-launch-1.0 playbin uri=file://$FILE video-sink="imxvideoconvert_ipu deinterlace=3 !
ximagesink display=:0 sync=false"

2) gst-launch tvsrc ! video/x-raw, format=xx ! imxvideoconvert_ipu ! video/x-raw, format=xx ! imxv4l2sink

0 Kudos