I went through imx-capture-mode from 0 to 5 as listed in properties. I got the 
same error message. Only issue is that the capture mode info shows
different resolution than the properties:

INFO         imxv4l2videosrc 
v4l2src.c:225:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> capture mode 0: 
640x480
INFO         imxv4l2videosrc 
v4l2src.c:225:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> capture mode 1: 
720x480
INFO         imxv4l2videosrc 
v4l2src.c:225:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> capture mode 2: 
1280x720
INFO         imxv4l2videosrc 
v4l2src.c:225:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> capture mode 3: 
1920x1080
INFO         imxv4l2videosrc 
v4l2src.c:225:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> capture mode 4: 
2592x1944
INFO         imxv4l2videosrc 
v4l2src.c:225:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> capture mode 5: 
0x0

Properties:
  imx-capture-mode    : Capture mode of camera, varies with each v4l2 driver,
                                for example ov5460:
                                ov5640_mode_VGA_640_480 = 0,
                                ov5640_mode_QVGA_320_240 = 1,
                                ov5640_mode_NTSC_720_480 = 2,
                                ov5640_mode_PAL_720_576 = 3,
                                ov5640_mode_720P_1280_720 = 4,
                                ov5640_mode_1080P_1920_1080 = 5


AriS



And what happens if you try other capture modes? (use the imx-capture-mode 
property)

On 2016-11-03 13:31, Ari Sinisalo wrote:

I am using NXP Sabre i.MX7dual.

It should work fine with the ov5640. What board is this?

On 2016-11-03 13:14, Ari Sinisalo wrote:
I have tried to use imxv4l2videosrc but it fails constantly. Following is what 
I get with fakesink.

GST_DEBUG=2,*imx*:9 gst-launch-1.0 imxv4l2videosrc device=/dev/video1 ! fakesink
0:00:00.068249500   557   0xb37a20 INFO         imxv4l2videosrc 
v4l2src.c:595:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps filter (NULL)
0:00:00.068449500   557   0xb37a20 INFO         imxv4l2videosrc 
v4l2src.c:605:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps video/x-raw, 
width=(int)[ 16, 2147483647 ], height=(int)[ 16, 2147483647 ], 
interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 100/1 ], 
pixel-aspect-ratio=(fraction)[ 0/1, 100/1 ]
0:00:00.068673500   557   0xb37a20 INFO         imxv4l2videosrc 
v4l2src.c:595:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps filter (NULL)
0:00:00.068747875   557   0xb37a20 INFO         imxv4l2videosrc 
v4l2src.c:605:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps video/x-raw, 
width=(int)[ 16, 2147483647 ], height=(int)[ 16, 2147483647 ], 
interlace-mode=(string)progressive, framerate=(fraction)[ 0/1, 100/1 ], 
pixel-aspect-ratio=(fraction)[ 0/1, 100/1 ]
Setting pipeline to PAUSED ...
0:00:00.071060625   557   0xb37a20 LOG          imxv4l2videosrc 
v4l2src.c:279:gst_imx_v4l2src_start:<imxv4l2videosrc0> start
0:00:00.071425250   557   0xb37a20 WARN         imxv4l2videosrc 
v4l2src.c:123:gst_imx_v4l2src_is_tvin:<imxv4l2videosrc0> VIDIOC_QUERYSTD 
failed: Inappropriate ioctl for device
0:00:00.071497625   557   0xb37a20 WARN         imxv4l2videosrc 
v4l2src.c:127:gst_imx_v4l2src_is_tvin:<imxv4l2videosrc0> VIDIOC_G_STD failed: 
Inappropriate ioctl for device
0:00:00.071557250   557   0xb37a20 DEBUG        imxv4l2videosrc 
v4l2src.c:211:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> pixelformat = 
1448695129  field = 1
0:00:00.071610625   557   0xb37a20 INFO         imxv4l2videosrc 
v4l2src.c:225:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> capture mode 0: 
640x480
0:00:00.071665750   557   0xb37a20 ERROR        imxv4l2videosrc 
v4l2src.c:230:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> VIDIOC_S_INPUT 
failed: Invalid argument
0:00:00.071763500   557   0xb37a20 ERROR        imxv4l2videosrc 
v4l2src.c:284:gst_imx_v4l2src_start:<imxv4l2videosrc0> capture_setup failed
0:00:00.071808000   557   0xb37a20 WARN                 basesrc 
gstbasesrc.c:3717:gst_base_src_activate_push:<imxv4l2videosrc0> Failed to start 
in push mode
0:00:00.071853375   557   0xb37a20 WARN                GST_PADS 
gstpad.c:1098:gst_pad_set_active:<imxv4l2videosrc0:src> Failed to activate pad
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...


Should imxv4l2videosrc work with i.MX7 and OV5640?


I can get camera capture working with freescale plugin. These work fine:
   gst-launch-1.0 imxv4l2src device=/dev/video1 ! fakesink
   gst-launch-1.0 imxv4l2src device=/dev/video1 ! imxv4l2sink
   gst-launch-1.0 imxv4l2src device=/dev/video1 ! imxpxpvideosink



br AriS





________________________________

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/







-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to