AnsweredAssumed Answered

gstreamer and ov5640 mipi camera

Question asked by Kamil Horák on Mar 16, 2016
Latest reply on Mar 16, 2016 by igorpadykov

I am trying to stream from the ov5640 mipi module but there is always error in the gstreamer ("Pipeline doesn't want to pause."

Reduced to the simplest pipeline, it is:

root@imx6qdlsolo:/root# gst-launch-1.0 imxv4l2src ! imxv4l2sink

====== IMXV4L2SRC: 4.0.8 build on Dec  4 2015 22:06:47. ======

====== IMXV4L2SINK: 4.0.8 build on Dec  4 2015 22:06:47. ======

Setting pipeline to PAUSED ...

display(/dev/fb0) resolution is (1024x768).

ERROR: Pipeline doesn't want to pause.

Setting pipeline to NULL ...

Freeing pipeline ...

 

 

The camera module as such seems to be working OK, at least I can get raw YUV buffer and convert it to an image:
/unit_tests/mxc_v4l2_capture.out -iw 640 -ih 480 -ow 640 -oh 480 -m 0 -i 1 -r 0 -c 1 -fr 30 -d /dev/video1 /root/test.yuv
then using imagemagick (on another machine but could also be done on the sabresd board):

convert -size 640x480 -depth 8 -colorspace RGB  test.yuv test.jpg

 

The system is as follows:

root@imx6qdlsolo:/root# lsmod

Module                  Size  Used by

mxc_v4l2_capture       25080  1

ipu_bg_overlay_sdc      5397  1 mxc_v4l2_capture

ipu_still               2339  1 mxc_v4l2_capture

ipu_prp_enc             5903  1 mxc_v4l2_capture

ipu_csi_enc             3686  1 mxc_v4l2_capture

ipu_fg_overlay_sdc      6142  1 mxc_v4l2_capture

ov5640_camera_mipi_int    23483  0

v4l2_int_device         2930  2 ov5640_camera_mipi_int,mxc_v4l2_capture

mxc_dcic                6569  0

evbug                   1875  0

 

root@imx6qdlsolo:/root# uname -a

Linux imx6qdlsolo 3.14.52-1.1.0_ga+g5f6f0a5 #1 SMP PREEMPT Fri Dec 4 21:37:19 CST 2015 armv7l GNU/Linux

root@imx6qdlsolo:/root# lsmod

Module                  Size  Used by

mxc_v4l2_capture       25080  1

ipu_bg_overlay_sdc      5397  1 mxc_v4l2_capture

ipu_still               2339  1 mxc_v4l2_capture

ipu_prp_enc             5903  1 mxc_v4l2_capture

ipu_csi_enc             3686  1 mxc_v4l2_capture

ipu_fg_overlay_sdc      6142  1 mxc_v4l2_capture

ov5640_camera_mipi_int    23483  0

v4l2_int_device         2930  2 ov5640_camera_mipi_int,mxc_v4l2_capture

mxc_dcic                6569  0

evbug                   1875  0

 

root@imx6qdlsolo:/root# gst-launch-1.0 --version

gst-launch-1.0 version 1.4.5

GStreamer 1.4.5

Unknown package origin

 

Any clue? What could have gone wrong?

Outcomes