[meta-freescale] imxv4l2videosrc does not work with i.MX7

Joonas Tanskanen joonas.tanskanen at sasken.com
Wed Dec 7 00:45:29 PST 2016


Hi


I am trying to get imxv4l2videosrc to work on i.MX7 with ov5640. Anyone having success with this setup?


I get this kind or error log:

gst-launch-1.0 --gst-debug=imxv4l2videosrc:9 imxv4l2videosrc device=/dev/video1 input=0 num-buffers=1 !  jpegenc ! filesink location=sample.jpeg
0:00:00.229632500   634  0x18e4fa0 INFO         imxv4l2videosrc v4l2src.c:647:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps filter (NULL)
0:00:00.232154375   634  0x18e4fa0 INFO         imxv4l2videosrc v4l2src.c:660:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps video/x-raw, format=(string){ UYVY, I420 }, width=(int)[ 16, 2147483647 ], height=(int)[ 16, 2147483647 ], interlace-mode=(string){ progressive, interleaved }, framerate=(fraction)[ 0/1, 100/1 ], pixel-aspect-ratio=(fraction)[ 0/1, 100/1 ]
0:00:00.235692875   634  0x18e4fa0 INFO         imxv4l2videosrc v4l2src.c:647:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps filter (NULL)
0:00:00.236333250   634  0x18e4fa0 INFO         imxv4l2videosrc v4l2src.c:660:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps video/x-raw, format=(string){ UYVY, I420 }, width=(int)[ 16, 2147483647 ], height=(int)[ 16, 2147483647 ], interlace-mode=(string){ progressive, interleaved }, framerate=(fraction)[ 0/1, 100/1 ], pixel-aspect-ratio=(fraction)[ 0/1, 100/1 ]
Setting pipeline to PAUSED ...
0:00:00.254897125   634  0x18e4fa0 LOG          imxv4l2videosrc v4l2src.c:328:gst_imx_v4l2src_start:<imxv4l2videosrc0> start
0:00:00.258545750   634  0x18e4fa0 WARN         imxv4l2videosrc v4l2src.c:123:gst_imx_v4l2src_is_tvin:<imxv4l2videosrc0> VIDIOC_QUERYSTD failed: Inappropriate ioctl for device
0:00:00.258667875   634  0x18e4fa0 WARN         imxv4l2videosrc v4l2src.c:127:gst_imx_v4l2src_is_tvin:<imxv4l2videosrc0> VIDIOC_G_STD failed: Inappropriate ioctl for device
0:00:00.258730250   634  0x18e4fa0 DEBUG        imxv4l2videosrc v4l2src.c:212:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> pixelformat = 1448695129  field = 1
0:00:00.258809125   634  0x18e4fa0 INFO         imxv4l2videosrc v4l2src.c:226:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> capture mode 0: 640x480
nknown pixelformat:'YU12'
m  0x18e4fa0 INFO    x6s-csi 30710000.csi: Fourcc format (0x32315559) invalid.
00m     imxv4l2videosrc v4l2src.c:647:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps filter (NULL)
0:00:00.922943625   634  0x18e4fa0 INFO         imxv4l2videosrc v4l2src.c:660:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps video/x-raw, format=(string){ UYVY, I420 }, width=(int)[ 16, 2147483647 ], height=(int)[ 16, 2147483647 ], interlace-mode=(string){ progressive, interleaved }, framerate=(fraction)[ 0/1, 100/1 ], pixel-aspect-ratio=(fraction)[ 0/1, 100/1 ]
0:00:00.923550625   634  0x18e4fa0 DEBUG        imxv4l2videosrc v4l2src.c:267:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> allowed src caps: video/x-raw, width=(int)[ 16, 65535 ], height=(int)[ 16, 65535 ], framerate=(fraction)[ 0/1, 100/1 ], pixel-aspect-ratio=(fraction)[ 0/1, 100/1 ], format=(string){ I420, UYVY }, interlace-mode=(string){ progressive, interleaved } -> allowed formats: video/x-raw, width=(int)[ 16, 65535 ], height=(int)[ 16, 65535 ], framerate=(fraction)[ 0/1, 100/1 ], pixel-aspect-ratio=(fraction)[ 0/1, 100/1 ], format=(string){ I420, UYVY }, interlace-mode=(string){ progressive, interleaved }
0:00:00.923819500   634  0x18e4fa0 DEBUG        imxv4l2videosrc v4l2src.c:293:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> using "I420" pixel format
0:00:00.936639875   634  0x18e4fa0 ERROR        imxv4l2videosrc v4l2src.c:311:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> VIDIOC_S_FMT failed: Invalid argument
0:00:00.936793000   634  0x18e4fa0 ERROR        imxv4l2videosrc v4l2src.c:333:gst_imx_v4l2src_start:<imxv4l2videosrc0> capture_setup failed
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...


dmesg shows:
[ 2695.995537] format_by_fourcc:'YU12'
[ 2695.995543] unknown pixelformat:'YU12'
[ 2695.999754] mx6s-csi 30710000.csi: Fourcc format (0x32315559) invalid.
[ 2696.008402] mx6s-csi 30710000.csi: csi v4l2 busfreq high release.


Looks like imxv4l2videosrc tries to use "I420" pixel format but that is not supported by mx6s-csi driver? Something wrong with caps negotiation?

imxv4l2src works fine.



Br,
Joonas T


________________________________

SASKEN BUSINESS DISCLAIMER: This message may contain confidential, proprietary or legally privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.
Read Disclaimer at http://www.sasken.com/mail-disclaimer/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20161207/5759ae3d/attachment.html>


More information about the meta-freescale mailing list