AnsweredAssumed Answered

ov5642 camera + gstreamer = VIDIOC_DQBUF error

Question asked by Ivan Nikolaenko on Aug 11, 2015
Latest reply on Jun 12, 2016 by Sydney Morin

Hi all,

 

I am trying to connect ov5642 camera to i.MX6Q-based custom board (3.14.28 kernel).

I successfully boot kernel with camera ov5642 is found message,

but when I try gst-launch-1.0 imxv4l2videosrc device=/dev/video0 ! imxipuvideotransform ! imxipuvideosink I get:

Setting pipeline to PAUSED ...

Pipeline is live and does not need PREROLL ...

Setting pipeline to PLAYING ...

New clock: GstSystemClock

ERROR: from element /GstPipeline:pipeline0/GstImxV4l2VideoSrc:imxv4l2videosrc0: Internal data flow error.

Additional debug info:

/home/i_nikolaenko/devel/freescale/fsl-community-bsp/build-rootfs/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0/1.4.5-r0/gstreamer-1.4.5/libs/gst/base/gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstImxV4l2VideoSrc:imxv4l2videosrc0:

streaming task paused, reason error (-5)

Execution ended after 0:00:10.037558668

Setting pipeline to PAUSED ...

Setting pipeline to READY ...

Setting pipeline to NULL ...

Freeing pipeline ...

 

GST_DEBUG=2,*imx*:9 gst-launch-1.0  imxv4l2videosrc device=/dev/video0 ! imxipuvideotransform ! imxipuvideosink shows next error message:

New clock: GstSystemClock

0:00:01.620390667   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:292:gst_imx_v4l2_buffer_pool_start:<imxv4l2bufferpool0> start

0:00:01.620532667   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:148:gst_imx_v4l2_buffer_pool_alloc_buffer:<imxv4l2bufferpool0> alloc 0 0xbff650

0:00:01.620788000   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:276:gst_imx_v4l2_buffer_pool_release_buffer:<imxv4l2bufferpool0> qbuf 0 0xbff650

0:00:01.620883000   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:148:gst_imx_v4l2_buffer_pool_alloc_buffer:<imxv4l2bufferpool0> alloc 1 0xbff6f0

0:00:01.620995000   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:276:gst_imx_v4l2_buffer_pool_release_buffer:<imxv4l2bufferpool0> qbuf 1 0xbff6f0

0:00:01.621070000   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:148:gst_imx_v4l2_buffer_pool_alloc_buffer:<imxv4l2bufferpool0> alloc 2 0x76008828

0:00:01.621168667   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:276:gst_imx_v4l2_buffer_pool_release_buffer:<imxv4l2bufferpool0> qbuf 2 0x76008828

0:00:01.621250000   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:148:gst_imx_v4l2_buffer_pool_alloc_buffer:<imxv4l2bufferpool0> alloc 3 0x760088c8

0:00:01.621362333   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:276:gst_imx_v4l2_buffer_pool_release_buffer:<imxv4l2bufferpool0> qbuf 3 0x760088c8

0:00:01.621439667   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:148:gst_imx_v4l2_buffer_pool_alloc_buffer:<imxv4l2bufferpool0> alloc 4 0x76008968

0:00:01.621540667   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:276:gst_imx_v4l2_buffer_pool_release_buffer:<imxv4l2bufferpool0> qbuf 4 0x76008968

0:00:01.621617333   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:148:gst_imx_v4l2_buffer_pool_alloc_buffer:<imxv4l2bufferpool0> alloc 5 0x76008a08

0:00:01.621723000   715   0xbf70f0 DEBUG      imxv4l2bufferpool v4l2_buffer_pool.c:276:gst_imx_v4l2_buffer_pool_release_buffer:<imxv4l2bufferpool0> qbuf 5 0x76008a08

0:00:11.626324334   715   0xbf70f0 ERROR      imxv4l2bufferpool v4l2_buffer_pool.c:238:gst_imx_v4l2_buffer_pool_acquire_buffer:<imxv4l2bufferpool0> VIDIOC_DQBUF failed: Timer expired

0:00:11.626649668   715   0xbf70f0 WARN                 basesrc gstbasesrc.c:2933:gst_base_src_loop:<imxv4l2videosrc0> error: Internal data flow error.

0:00:11.626860001   715   0xbf70f0 WARN                 basesrc gstbasesrc.c:2933:gst_base_src_loop:<imxv4l2videosrc0> error: streaming task paused, reason error (-5)

ERROR: from element /GstPipeline:pipeline0/GstImxV4l2VideoSrc:imxv4l2videosrc0: Internal data flow error.

 

Please help me to find the way to solve this problem!

Outcomes