Freescale / gstreamer-imx

GStreamer 1.0 plugins for i.MX platforms
Other
182 stars 127 forks source link

imxv4l2videosrc: imx6ul: Inappropriate ioctl for device #278

Closed bbilas closed 3 years ago

bbilas commented 3 years ago

Hello everyone, I'm trying to use gstreamer to take a jpeg snapshot from the ov5640 camera connected to the iMX6UL board but I'm getting the following errors:

# GST_DEBUG="*:3" gst-launch-1.0 imxv4l2videosrc device=/dev/video0  imx-capture-mode=0 num-buffers=1 ! 'video/x-raw,format=UYVY' ! jpegenc ! filesink location=/tmp/test.jpg
Setting pipeline to PAUSED ...
0:00:00.268727541   364   0xa22280 WARN         imxv4l2videosrc v4l2src.c:124:gst_imx_v4l2src_is_tvin: VIDIOC_QUERYSTD failed: Inappropriate ioctl for device
0:00:00.269266750   364   0xa22280 WARN         imxv4l2videosrc v4l2src.c:128:gst_imx_v4l2src_is_tvin: VIDIOC_G_STD failed: Inappropriate ioctl for device
0:00:00.269527708   364   0xa22280 WARN         imxv4l2videosrc v4l2src.c:140:gst_imx_v4l2src_is_tvin: VIDIOC_S_STD failed: Inappropriate ioctl for device
0:00:00.269820083   364   0xa22280 ERROR        imxv4l2videosrc v4l2src.c:232:gst_imx_v4l2src_capture_setup: VIDIOC_S_INPUT failed: Invalid argument
0:00:00.270688583   364   0xa22280 ERROR        imxv4l2videosrc v4l2src.c:334:gst_imx_v4l2src_start: capture_setup failed
0:00:00.270964500   364   0xa22280 WARN                 basesrc gstbasesrc.c:3468:gst_base_src_start: error: Failed to start
0:00:00.271482625   364   0xa22280 WARN                 basesrc gstbasesrc.c:3824:gst_base_src_activate_push: Failed to start in push mode
0:00:00.271710125   364   0xa22280 WARN                GST_PADS gstpad.c:1142:gst_pad_set_active: Failed to activate pad
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstImxV4l2VideoSrc:imxv4l2videosrc0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3468): gst_base_src_start (): /GstPipeline:pipeline0/GstImxV4l2VideoSrc:imxv4l2videosrc0:
Failed to start
Setting pipeline to NULL ...
Freeing pipeline ...

I've checked the connections using oscilloscope and everything looks good.

Couple of informations:

# gst-inspect-1.0  | grep "imx"
imxv4l2video:  imxv4l2videosrc: V4L2 CSI Video Source
imxv4l2video:  imxv4l2videosink: V4L2 CSI Video Sink
imxipu:  imxipuvideotransform: Freescale IPU video transform
imxipu:  imxipuvideosink: Freescale IPU video sink
imxipu:  imxipucompositor: Freescale IPU video compositor
imxpxp:  imxpxpvideosink: Freescale PxP video sink
imxpxp:  imxpxpvideotransform: Freescale PxP video transform
# 
Factory Details:
  Rank                     primary (256)
  Long-name                V4L2 CSI Video Source
  Klass                    Source/Video
  Description              Capture video streams using V4L2 CSI interface
  Author                   Philip Craig 

Plugin Details:
  Name                     imxv4l2video
  Description              GStreamer i.MX Video4Linux2 elements
  Filename                 /usr/lib/gstreamer-1.0/libgstimxv4l2video.so
  Version                  0.13.1
  License                  LGPL
  Source module            gstreamer-imx
  Binary package           Unknown package release
  Origin URL               Unknown package origin

GObject
 +----GInitiallyUnowned
       +----GstObject
             +----GstElement
                   +----GstBaseSrc
                         +----GstPushSrc
                               +----GstImxV4l2VideoSrc

Implemented Interfaces:
  GstURIHandler
  GstPhotography

Pad Templates:
  SRC template: 'src'
    Availability: Always
    Capabilities:
      video/x-raw

Element has no clocking capabilities.

URI handling capabilities:
  Element can act as source.
  Supported URI protocols:
    imxv4l2

Pads:
  SRC: 'src'
    Pad Template: 'src'

Element Properties:
  analog-gain         : Analog gain applied to the sensor
                        flags: readable, writable
                        Float. Range:               1 -    3.402823e+38 Default:               1 
  aperture            : Aperture defines the size of lens opening  (0 = auto)
                        flags: readable, writable
                        Unsigned Integer. Range: 0 - 255 Default: 0 
  blocksize           : Size in bytes to read per buffer (-1 = default)
                        flags: readable, writable
                        Unsigned Integer. Range: 0 - 4294967295 Default: 4096 
  capabilities        : Tells the photo capabilities of the device
                        flags: readable
                        Unsigned Long. Range: 0 - 4294967295 Default: 0 
  color-temperature   : Color temperature in Kelvin units for manual white balance
                        flags: readable, writable
                        Unsigned Integer. Range: 0 - 4294967295 Default: 0 
  color-tone-mode     : Color tone setting changes color shading in the photo
                        flags: readable, writable
                        Enum "GstPhotographyColorToneMode" Default: 0, "normal"
                           (0): normal           - GST_PHOTOGRAPHY_COLOR_TONE_MODE_NORMAL
                           (1): sepia            - GST_PHOTOGRAPHY_COLOR_TONE_MODE_SEPIA
                           (2): negative         - GST_PHOTOGRAPHY_COLOR_TONE_MODE_NEGATIVE
                           (3): grayscale        - GST_PHOTOGRAPHY_COLOR_TONE_MODE_GRAYSCALE
                           (4): natural          - GST_PHOTOGRAPHY_COLOR_TONE_MODE_NATURAL
                           (5): vivid            - GST_PHOTOGRAPHY_COLOR_TONE_MODE_VIVID
                           (6): colorswap        - GST_PHOTOGRAPHY_COLOR_TONE_MODE_COLORSWAP
                           (7): solarize         - GST_PHOTOGRAPHY_COLOR_TONE_MODE_SOLARIZE
                           (8): out-of-focus     - GST_PHOTOGRAPHY_COLOR_TONE_MODE_OUT_OF_FOCUS
                           (9): sky-blue         - GST_PHOTOGRAPHY_COLOR_TONE_MODE_SKY_BLUE
                           (10): grass-green      - GST_PHOTOGRAPHY_COLOR_TONE_MODE_GRASS_GREEN
                           (11): skin-whiten      - GST_PHOTOGRAPHY_COLOR_TONE_MODE_SKIN_WHITEN
                           (12): posterize        - GST_PHOTOGRAPHY_COLOR_TONE_MODE_POSTERIZE
                           (13): whiteboard       - GST_PHOTOGRAPHY_COLOR_TONE_MODE_WHITEBOARD
                           (14): blackboard       - GST_PHOTOGRAPHY_COLOR_TONE_MODE_BLACKBOARD
                           (15): aqua             - GST_PHOTOGRAPHY_COLOR_TONE_MODE_AQUA
  crop-meta-height    : HEIGHT value for crop metadata
                        flags: readable, writable
                        Integer. Range: 0 - 2147483647 Default: 0 
  crop-meta-width     : WIDTH value for crop metadata
                        flags: readable, writable
                        Integer. Range: 0 - 2147483647 Default: 0 
  crop-meta-x         : X value for crop metadata
                        flags: readable, writable
                        Integer. Range: 0 - 2147483647 Default: 0 
  crop-meta-y         : Y value for crop metadata
                        flags: readable, writable
                        Integer. Range: 0 - 2147483647 Default: 0 
  device              : Device location
                        flags: readable, writable
                        String. Default: "/dev/video0"
  do-timestamp        : Apply current stream time to buffers
                        flags: readable, writable
                        Boolean. Default: false
  ev-compensation     : EV compensation affects the brightness of the image
                        flags: readable, writable
                        Float. Range:            -2.5 -             2.5 Default:               0 
  exposure-time       : Exposure time defines how long the shutter will stay open (0 = auto)
                        flags: readable, writable
                        Unsigned Integer. Range: 0 - 4294967295 Default: 0 
  flash-mode          : Flash mode defines how the flash light should be used
                        flags: readable, writable
                        Enum "GstPhotographyFlashMode" Default: 0, "auto"
                           (0): auto             - GST_PHOTOGRAPHY_FLASH_MODE_AUTO
                           (1): off              - GST_PHOTOGRAPHY_FLASH_MODE_OFF
                           (2): on               - GST_PHOTOGRAPHY_FLASH_MODE_ON
                           (3): fill-in          - GST_PHOTOGRAPHY_FLASH_MODE_FILL_IN
                           (4): red-eye          - GST_PHOTOGRAPHY_FLASH_MODE_RED_EYE
  flicker-mode        : Flicker reduction mode defines a line frequency for flickering prevention
                        flags: readable, writable
                        Enum "GstPhotographyFlickerReductionMode" Default: 0, "off"
                           (0): off              - GST_PHOTOGRAPHY_FLICKER_REDUCTION_OFF
                           (1): 50hz             - GST_PHOTOGRAPHY_FLICKER_REDUCTION_50HZ
                           (2): 60hz             - GST_PHOTOGRAPHY_FLICKER_REDUCTION_60HZ
                           (3): auto             - GST_PHOTOGRAPHY_FLICKER_REDUCTION_AUTO
  focus-mode          : Focus mode defines the range of focal lengths to use in autofocus search
                        flags: readable, writable
                        Enum "GstPhotographyFocusMode" Default: 0, "auto"
                           (0): auto             - GST_PHOTOGRAPHY_FOCUS_MODE_AUTO
                           (1): macro            - GST_PHOTOGRAPHY_FOCUS_MODE_MACRO
                           (2): portrait         - GST_PHOTOGRAPHY_FOCUS_MODE_PORTRAIT
                           (3): infinity         - GST_PHOTOGRAPHY_FOCUS_MODE_INFINITY
                           (4): hyperfocal       - GST_PHOTOGRAPHY_FOCUS_MODE_HYPERFOCAL
                           (5): extended         - GST_PHOTOGRAPHY_FOCUS_MODE_EXTENDED
                           (6): continuous-normal - GST_PHOTOGRAPHY_FOCUS_MODE_CONTINUOUS_NORMAL
                           (7): continuous-extended - GST_PHOTOGRAPHY_FOCUS_MODE_CONTINUOUS_EXTENDED
                           (8): manual           - GST_PHOTOGRAPHY_FOCUS_MODE_MANUAL
  fps                 : Framerate at which the input stream is to be captured
                        flags: readable, writable
                        Fraction. Range: 0/1 - 2147483647/1 Default: 30/1 
  fps-n               : (Obsolete; use fps property instead) Numerator of the framerate at which the input stream is d
                        flags: readable, writable
                        Integer. Range: 0 - 2147483647 Default: 30 
  image-capture-supported-caps: Caps describing supported image capture formats
                        flags: readable
                        Caps (NULL)
  image-preview-supported-caps: Caps describing supported image preview formats
                        flags: readable
                        Caps (NULL)
  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
                        flags: readable, writable
                        Integer. Range: 0 - 2147483647 Default: 0 
  input               : Video input selected with VIDIOC_S_INPUT
                        flags: readable, writable
                        Integer. Range: 0 - 2147483647 Default: 1 
  iso-speed           : ISO speed defines the light sensitivity (0 = auto)
                        flags: readable, writable
                        Unsigned Integer. Range: 0 - 6400 Default: 0 
  lens-focus          : Focus point in diopter units
                        flags: readable, writable
                        Float. Range:               0 -    3.402823e+38 Default:               0 
  max-exposure-time   : Maximum exposure time for automatic exposure mode
                        flags: readable, writable
                        Unsigned Integer. Range: 0 - 4294967295 Default: 0 
  min-exposure-time   : Minimum exposure time for automatic exposure mode
                        flags: readable, writable
                        Unsigned Integer. Range: 0 - 4294967295 Default: 0 
  name                : The name of the object
                        flags: readable, writable
                        String. Default: "imxv4l2videosrc0"
  noise-reduction     : Which noise reduction modes are enabled (0 = disabled)
                        flags: readable, writable
                        Flags "GstPhotographyNoiseReduction" Default: 0x00000000, "(none)"
                           (0x00000001): bayer            - GST_PHOTOGRAPHY_NOISE_REDUCTION_BAYER
                           (0x00000002): ycc              - GST_PHOTOGRAPHY_NOISE_REDUCTION_YCC
                           (0x00000004): temporal         - GST_PHOTOGRAPHY_NOISE_REDUCTION_TEMPORAL
                           (0x00000008): fixed            - GST_PHOTOGRAPHY_NOISE_REDUCTION_FIXED
                           (0x00000010): extra            - GST_PHOTOGRAPHY_NOISE_REDUCTION_EXTRA
  num-additional-buffers: Number of additional V4L2 buffers to allocate in the buffer pool (only used if the allocati)
                        flags: readable, writable
                        Unsigned Integer. Range: 1 - 4294967295 Default: 1 
  num-buffers         : Number of buffers to output before sending EOS (-1 = unlimited)
                        flags: readable, writable
                        Integer. Range: -1 - 2147483647 Default: -1 
  parent              : The parent of the object
                        flags: readable, writable
                        Object of type "GstObject"
  queue-size          : Number of V4L2 buffers to request
                        flags: readable, writable
                        Integer. Range: 0 - 2147483647 Default: 6 
  scene-mode          : Scene mode works as a preset for different photo shooting mode settings
                        flags: readable, writable
                        Enum "GstPhotographySceneMode" Default: 33748256, ""
                           (0): manual           - GST_PHOTOGRAPHY_SCENE_MODE_MANUAL
                           (1): closeup          - GST_PHOTOGRAPHY_SCENE_MODE_CLOSEUP
                           (2): portrait         - GST_PHOTOGRAPHY_SCENE_MODE_PORTRAIT
                           (3): landscape        - GST_PHOTOGRAPHY_SCENE_MODE_LANDSCAPE
                           (4): sport            - GST_PHOTOGRAPHY_SCENE_MODE_SPORT
                           (5): night            - GST_PHOTOGRAPHY_SCENE_MODE_NIGHT
                           (6): auto             - GST_PHOTOGRAPHY_SCENE_MODE_AUTO
                           (7): action           - GST_PHOTOGRAPHY_SCENE_MODE_ACTION
                           (8): night-portrait   - GST_PHOTOGRAPHY_SCENE_MODE_NIGHT_PORTRAIT
                           (9): theatre          - GST_PHOTOGRAPHY_SCENE_MODE_THEATRE
                           (10): beach            - GST_PHOTOGRAPHY_SCENE_MODE_BEACH
                           (11): snow             - GST_PHOTOGRAPHY_SCENE_MODE_SNOW
                           (12): sunset           - GST_PHOTOGRAPHY_SCENE_MODE_SUNSET
                           (13): steady-photo     - GST_PHOTOGRAPHY_SCENE_MODE_STEADY_PHOTO
                           (14): fireworks        - GST_PHOTOGRAPHY_SCENE_MODE_FIREWORKS
                           (15): party            - GST_PHOTOGRAPHY_SCENE_MODE_PARTY
                           (16): candlelight      - GST_PHOTOGRAPHY_SCENE_MODE_CANDLELIGHT
                           (17): barcode          - GST_PHOTOGRAPHY_SCENE_MODE_BARCODE
  typefind            : Run typefind before negotiating (deprecated, non-functional)
                        flags: readable, writable, deprecated
                        Boolean. Default: false
  white-balance-mode  : White balance affects the color temperature of the photo
                        flags: readable, writable
                        Enum "GstPhotographyWhiteBalanceMode" Default: 0, "auto"
                           (0): auto             - GST_PHOTOGRAPHY_WB_MODE_AUTO
                           (1): daylight         - GST_PHOTOGRAPHY_WB_MODE_DAYLIGHT
                           (2): cloudy           - GST_PHOTOGRAPHY_WB_MODE_CLOUDY
                           (3): sunset           - GST_PHOTOGRAPHY_WB_MODE_SUNSET
                           (4): tungsten         - GST_PHOTOGRAPHY_WB_MODE_TUNGSTEN
                           (5): fluorescent      - GST_PHOTOGRAPHY_WB_MODE_FLUORESCENT
                           (6): manual           - GST_PHOTOGRAPHY_WB_MODE_MANUAL
                           (7): warm-fluorescent - GST_PHOTOGRAPHY_WB_MODE_WARM_FLUORESCENT
                           (8): shade            - GST_PHOTOGRAPHY_WB_MODE_SHADE
  white-point         : Describe color white as raw values
                        flags: readable, writable
                        Array of GValues of type "guint"
  zoom                : How much the resulted image will be zoomed
                        flags: readable, writable
                        Float. Range:               1 -              10 Default:               1 
# v4l2-ctl --list-devices
i.MX6S_CSI (platform:21c4000.csi):
        /dev/video0
# v4l2-compliance -d /dev/video0
v4l2-compliance SHA: not available
, 32 bits, 32-bit time_t

Compliance test for mx6s-csi device /dev/video0:

Driver Info:
        Driver name      : mx6s-csi
        Card type        : i.MX6S_CSI
        Bus info         : platform:21c4000.csi
        Driver version   : 5.4.24
        Capabilities     : 0x84200001
                Video Capture
                Streaming
                Extended Pix Format
[  185.931732] unknown pixelformat:'    '
                Device Capabilities
        Device Ca[  185.936027] 8<--- cut here ---
ps      : 0x04200001
                Video Capture
                Streaming
                Extended P[  185.945577] Unable to handle kernel NULL pointer dereference at virtual address 00000024
ix Format

Required ioctls:
        t[  185.957800] pgd = 20f1d922
[  185.962465] [00000024] *pgd=8ab44835, *pte=00000000, *ppte=00000000

Allow for multiple opens:
        te[  185.971492] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[  185.978606] Modules linked in:
[  185.981711] CPU: 0 PID: 320 Comm: v4l2-compliance Not tainted 5.4.24 #4
[  185.988354] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[  185.994583] PC is at mx6s_vidioc_enum_framesizes+0x54/0x164
[  186.000197] LR is at format_by_fourcc+0x58/0x68
[  186.004758] pc : []    lr : []    psr: 60070013
[  186.011055] sp : cab13d90  ip : 00000000  fp : c0ecae9c
[  186.016309] r10: 00000000  r9 : ca5ef2f8  r8 : c08f5b20
[  186.021564] r7 : 00000003  r6 : 00000000  r5 : c1cc85c0  r4 : cab13e64
[  186.028118] r3 : 20202020  r2 : 00000000  r1 : cffc0534  r0 : 00000000
[  186.034676] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  186.041840] Control: 10c5387d  Table: 8adf806a  DAC: 00000051
[  186.047618] Process v4l2-compliance (pid: 320, stack limit = 0x80209bd9)
[  186.054351] Stack: (0xcab13d90 to 0xcab14000)
[  186.058744] 3d80:                                     ca5ef32c 00000000 00000000 00000000
[  186.066957] 3da0: 00000000 00000000 00000000 00000000 00000001 00000000 00000000 00000000
[  186.075172] 3dc0: 00000000 00000000 00000000 00000000 00000000 c1508b08 ca5ef800 c02c564a
[  186.083385] 3de0: 00000000 c08f9e08 00000040 c01b65f4 ca5ef040 00000000 cab13e64 00000128
[  186.091600] 3e00: c0ec4130 cab13e64 ffffffea c01b1e68 ca8cdb00 c1508b08 cab046cc c1508b08
[  186.099812] 3e20: 00000001 c02c564a 00000000 00000000 00000003 c08f9bf0 cab13e64 00000000
[  186.108027] 3e40: 0000002c c08fa28c 00000000 00000000 be84738c cae22140 00000000 c0195818
[  186.116240] 3e60: 00000000 00000000 20202020 00000000 00000000 00000000 00000000 00000000
[  186.124453] 3e80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  186.132667] 3ea0: 00000000 0000000f 00000051 c062d934 0000000f caaf8280 be847404 0000000f
[  186.140881] 3ec0: cab92780 01739098 c062bb54 00000000 00000000 00000004 be847404 c02a4034
[  186.149095] 3ee0: 00000000 c1508b08 cadfafa0 be84738c ca50e0b0 cae22140 be84738c cae22140
[  186.157309] 3f00: cab12000 00000036 00070498 c02bc2dc 00000001 00000000 00000000 00000000
[  186.165523] 3f20: 00000000 00000000 00000000 c1508b08 ca8cdb00 ca096e20 cab92780 00000002
[  186.173736] 3f40: cab92788 0000000f 00000000 00000004 be847404 c02a7034 00000000 00000000
[  186.181949] 3f60: cab92780 c1508b08 01739098 cae22140 00000003 c02c564a be84738c cae22140
[  186.190164] 3f80: cab12000 00000036 00070498 c02bc96c 000186ec 00000000 be848408 00000036
[  186.198377] 3fa0: c01011c4 c0101000 000186ec 00000000 00000003 c02c564a be84738c 00000001
[  186.206592] 3fc0: 000186ec 00000000 be848408 00000036 0005566f 00000000 be8486a4 00070498
[  186.214805] 3fe0: 000700e4 be84731c 00018718 b6c0093c 20070010 00000003 00000000 00000000
[  186.223038] [] (mx6s_vidioc_enum_framesizes) from [] (__video_do_ioctl+0x218/0x450)
[  186.232474] [] (__video_do_ioctl) from [] (video_usercopy+0x23c/0x8bc)
[  186.240784] [] (video_usercopy) from [] (do_vfs_ioctl+0x41c/0xa78)
[  186.248751] [] (do_vfs_ioctl) from [] (ksys_ioctl+0x34/0x60)
[  186.256194] [] (ksys_ioctl) from [] (ret_fast_syscall+0x0/0x28)
[  186.263878] Exception stack(0xcab13fa8 to 0xcab13ff0)
[  186.268965] 3fa0:                   000186ec 00000000 00000003 c02c564a be84738c 00000001
[  186.277178] 3fc0: 000186ec 00000000 be848408 00000036 0005566f 00000000 be8486a4 00070498
[  186.285385] 3fe0: 000700e4 be84731c 00018718 b6c0093c
[  186.290477] Code: e58d2004 e58d3020 ebffff83 e5943004 (e5902024) 
st second /dev/video0 open: OK
        test VIDIOC_QUERYCAP: OK
                fail:[  186.303246] ---[ end trace fef675318d058283 ]---
 v4l2-compliance.cpp(739): prio != match
        test VIDIOC_G/S_PRIORITY: FAIL
        test for unlimited opens: OK

        test invalid ioctls: OK
Debug ioctls:
        test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
        test VIDIOC_LOG_STATUS: OK (Not Supported)

Input ioctls:
        test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
        test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
        test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
        test VIDIOC_ENUMAUDIO: OK (Not Supported)
                fail: v4l2-test-input-output.cpp(385): std == 0
                fail: v4l2-test-input-output.cpp(455): invalid attributes for input 0
        test VIDIOC_G/S/ENUMINPUT: FAIL
        test VIDIOC_G/S_AUDIO: OK (Not Supported)
        Inputs: 0 Audio Inputs: 0 Tuners: 0

Output ioctls:
        test VIDIOC_G/S_MODULATOR: OK (Not Supported)
        test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
        test VIDIOC_ENUMAUDOUT: OK (Not Supported)
        test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
        test VIDIOC_G/S_AUDOUT: OK (Not Supported)
        Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
        test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
        test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
        test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
        test VIDIOC_G/S_EDID: OK (Not Supported)

Control ioctls:
        test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported)
        test VIDIOC_QUERYCTRL: OK (Not Supported)
        test VIDIOC_G/S_CTRL: OK (Not Supported)
        test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported)
        test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported)
        test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
        Standard Controls: 0 Private Controls: 0

Format ioctls:

GStreamer 1.16.2 gstreamer-imx 0.13.1

bbilas commented 3 years ago

The main problem was in the i.MX6S_CSI driver within the NXP linux kernel fork that was really buggy. In addition, there was missing support of YUYV pixel format in gstreamer-imx plugin that was being used by my camera sensor [1].