AnsweredAssumed Answered

IMX6UL : CSI - OV5640 Driver

Question asked by rickman Rick on Oct 9, 2018

Hello , 

 

We are using ov5640 driver, from the 4.9.88_ga_2.0 release, however this driver with community capture plugin. 

 

 

gst-launch-1.0 imxv4l2videosrc device=/dev/video1  imx-capture-mode=0 ! imxpxpvideosink , 

 

with mode = 0, 1, 2, 3, 4 up to 720p works fine, however when we tried to capture higher resolution, the driver rejects and S_FMT generates invalid argument error. 

 

Same driver  with resolution >  720P the driver ioctl generates error.
Even setting manual framerate 15 for 1080p it doesn't work.

[    9.302216] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   11.684284] Micrel KSZ8081 or KSZ8091 20b4000.ethernet-1:01: attached PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=20b4000.ethernet-1:01, irq=-1)
[   11.719322] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   41.457653] unknown mbus:0x0
[ 2000.761068] video1: VIDIOC_QUERYCAP
[ 2000.761160] video1: VIDIOC_QUERYSTD: error -515
[ 2000.761590] video1: VIDIOC_G_STD: error -515
[ 2000.761957] video1: VIDIOC_G_FMT
[ 2000.762033] video1: VIDIOC_ENUM_FRAMESIZES
[ 2000.762364] video1: VIDIOC_S_INPUT
[ 2000.762695] video1: VIDIOC_S_PARM: error -22
root@imx6ul:~# gst-launch-1.0 imxv4l2videosrc device=/dev/video1  imx-capture-mode=5 ! 'video/x-raw,format=YUVY,width=1920,height=1080,framerate=(fraction)15/1" ! imxpxpvideosink
> ^C
root@imx6ul~# gst-launch-1.0 imxv4l2videosrc device=/dev/video1  imx-capture-mode=5 ! 'video/x-raw,format=YUVY,width=1920,height=1080,framerate=(fraction)15/1' ! imxpxpvideosink
0:00:00.001640000   789  0x1426800 INFO                GST_INIT gst.c:507:init_pre: Initializing GStreamer Core Library version 1.12.4
0:00:00.002694000   789  0x1426800 INFO                GST_INIT gst.c:508:init_pre: Using library installed in /usr/lib
0:00:00.002983333   789  0x1426800 INFO                GST_INIT gst.c:528:init_pre: Linux imx6ul-var-dart 4.9.88-10179-g3a71a59 #4 SMP PREEMPT Mon Oct 8 12:05:10 PDT 2018 armv7l
0:00:00.009288000   789  0x1426800 INFO                GST_INIT gstmessage.c:127:_priv_gst_message_initialize: init messages
0:00:00.021794333   789  0x1426800 INFO                GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.026961000   789  0x1426800 INFO      GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.029636000   789  0x1426800 INFO      GST_PLUGIN_LOADING gstplugin.c:225:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.029844333   789  0x1426800 INFO      GST_PLUGIN_LOADING gstplugin.c:227:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.030162333   789  0x1426800 INFO            GST_REGISTRY gstregistry.c:1721:ensure_current_registry: reading registry cache: /home/root/.cache/gstreamer-1.0/registry.arm.bin
0:00:00.174959666   789  0x1426800 INFO            GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /home/root/.cache/gstreamer-1.0/registry.arm.bin in 0.144421 seconds
0:00:00.175480666   789  0x1426800 INFO            GST_REGISTRY gstregistry.c:1577:scan_and_update_registry: Validating plugins from registry cache: /home/root/.cache/gstreamer-1.0/registry.arm.bin
0:00:00.205183666   789  0x1426800 INFO            GST_REGISTRY gstregistry.c:1679:scan_and_update_registry: Registry cache has not changed
0:00:00.205341000   789  0x1426800 INFO            GST_REGISTRY gstregistry.c:1756:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.205441666   789  0x1426800 INFO                GST_INIT gst.c:727:init_post: GLib runtime version: 2.54.3
0:00:00.205542333   789  0x1426800 INFO                GST_INIT gst.c:729:init_post: GLib headers version: 2.54.3
0:00:00.205629333   789  0x1426800 INFO                GST_INIT gst.c:730:init_post: initialized GStreamer successfully
0:00:00.205991333   789  0x1426800 INFO            GST_PIPELINE gstparse.c:334:gst_parse_launch_full: parsing pipeline description 'imxv4l2videosrc device=/dev/video1 imx-capture-mode=5 ! video/x-raw,format=YUVY,width=1920,height=1080,framerate=(fraction)15/1 ! imxpxpvideosink '
0:00:00.222143000   789  0x1426800 INFO      GST_PLUGIN_LOADING gstplugin.c:843:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstimxv4l2video.so" loaded
0:00:00.222418666   789  0x1426800 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "imxv4l2videosrc"
0:00:00.225466000   789  0x1426800 INFO        GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:<GstBaseSrc@0x151e0d8> adding pad 'src'
0:00:00.232334666   789  0x1426800 INFO      GST_PLUGIN_LOADING gstplugin.c:843:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstimxpxp.so" loaded
0:00:00.232519333   789  0x1426800 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "imxpxpvideosink"
0:00:00.234237000   789  0x1426800 INFO        GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:<GstBaseSink@0x1522fc8> adding pad 'sink'
0:00:00.234707666   789  0x1426800 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "pipeline"
0:00:00.235598000   789  0x1426800 INFO            GST_PIPELINE grammar.y:652:gst_parse_perform_link: linking some pad of GstImxV4l2VideoSrc named imxv4l2videosrc0 to some pad of GstImxPxPVideoSink named imxpxpvideosink0 (0/0) with caps "video/x-raw, format=(string)YUVY, width=(int)1920, height=(int)1080, framerate=(fraction)15/1"
0:00:00.241163000   789  0x1426800 INFO      GST_PLUGIN_LOADING gstplugin.c:843:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstcoreelements.so" loaded
0:00:00.241357333   789  0x1426800 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "capsfilter"
0:00:00.242433666   789  0x1426800 INFO        GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:<GstBaseTransform@0x15281b0> adding pad 'sink'
0:00:00.242733000   789  0x1426800 INFO        GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:<GstBaseTransform@0x15281b0> adding pad 'src'
0:00:00.242949000   789  0x1426800 INFO              GST_STATES gstbin.c:2080:gst_bin_get_state_func:<pipeline0> getting state
0:00:00.243233666   789  0x1426800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<capsfilter0> completed state change to NULL
0:00:00.243437000   789  0x1426800 INFO               GST_EVENT gstevent.c:1512:gst_event_new_reconfigure: creating reconfigure event
0:00:00.243579333   789  0x1426800 INFO        GST_ELEMENT_PADS gstutils.c:1709:gst_element_link_pads_full: trying to link element imxv4l2videosrc0:(any) to element capsfilter0:sink
0:00:00.243725000   789  0x1426800 INFO        GST_ELEMENT_PADS gstelement.c:918:gst_element_get_static_pad: found pad capsfilter0:sink
0:00:00.575412333   789  0x1426800 INFO                GST_PADS gstutils.c:1523:prepare_link_maybe_ghosting: imxv4l2videosrc0 and capsfilter0 in same bin, no need for ghost pads
0:00:00.575976666   789  0x1426800 INFO                GST_PADS gstpad.c:2356:gst_pad_link_prepare: trying to link imxv4l2videosrc0:src and capsfilter0:sink
0:00:00.576377000   789  0x1426800 INFO         imxv4l2videosrc v4l2src.c:647:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps filter (NULL)
0:00:00.577346666   789  0x1426800 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.578118333   789  0x1426800 INFO                GST_PADS gstpad.c:4167:gst_pad_peer_query:<capsfilter0:src> pad has no peer
0:00:00.578561000   789  0x1426800 INFO                GST_PADS gstpad.c:2412:gst_pad_link_prepare: caps are incompatible
0:00:00.578792666   789  0x1426800 INFO                GST_PADS gstpad.c:2507:gst_pad_link_full: link between imxv4l2videosrc0:src and capsfilter0:sink failed: no common format
0:00:00.579330333   789  0x1426800 INFO                GST_PADS gstutils.c:1009:gst_pad_check_link: trying to link imxv4l2videosrc0:src and capsfilter0:sink
0:00:00.579723333   789  0x1426800 INFO                GST_PADS gstpad.c:4167:gst_pad_peer_query:<capsfilter0:src> pad has no peer
0:00:00.580077000   789  0x1426800 INFO         imxv4l2videosrc v4l2src.c:647:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps filter (NULL)
0:00:00.580828000   789  0x1426800 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.581573000   789  0x1426800 INFO                GST_PADS gstpad.c:4167:gst_pad_peer_query:<capsfilter0:src> pad has no peer
0:00:00.582211666   789  0x1426800 INFO        GST_ELEMENT_PADS gstelement.c:918:gst_element_get_static_pad: found pad imxv4l2videosrc0:src
0:00:00.582635000   789  0x1426800 INFO                GST_PADS gstutils.c:1523:prepare_link_maybe_ghosting: imxv4l2videosrc0 and capsfilter0 in same bin, no need for ghost pads
0:00:00.583039333   789  0x1426800 INFO                GST_PADS gstpad.c:2356:gst_pad_link_prepare: trying to link imxv4l2videosrc0:src and capsfilter0:sink
0:00:00.583412333   789  0x1426800 INFO         imxv4l2videosrc v4l2src.c:647:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps filter (NULL)
0:00:00.584159333   789  0x1426800 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.917575000   789  0x1426800 INFO                GST_PADS gstpad.c:4167:gst_pad_peer_query:<capsfilter0:src> pad has no peer
0:00:00.918037333   789  0x1426800 INFO                GST_PADS gstpad.c:2412:gst_pad_link_prepare: caps are incompatible
0:00:00.918272333   789  0x1426800 INFO                GST_PADS gstpad.c:2507:gst_pad_link_full: link between imxv4l2videosrc0:src and capsfilter0:sink failed: no common format
0:00:00.918762000   789  0x1426800 INFO        GST_ELEMENT_PADS gstutils.c:1709:gst_element_link_pads_full: trying to link element capsfilter0:src to element imxpxpvideosink0:(any)
0:00:00.919081666   789  0x1426800 INFO        GST_ELEMENT_PADS gstelement.c:918:gst_element_get_static_pad: found pad capsfilter0:src
0:00:00.919372000   789  0x1426800 INFO                GST_PADS gstutils.c:1009:gst_pad_check_link: trying to link capsfilter0:src and imxpxpvideosink0:sink
0:00:00.919820333   789  0x1426800 INFO                GST_PADS gstpad.c:4167:gst_pad_peer_query:<capsfilter0:sink> pad has no peer
0:00:00.920330666   789  0x1426800 INFO                GST_PADS gstpad.c:4167:gst_pad_peer_query:<capsfilter0:sink> pad has no peer
0:00:00.921036333   789  0x1426800 INFO        GST_ELEMENT_PADS gstutils.c:1201:gst_element_get_compatible_pad:<imxpxpvideosink0> Could not find a compatible pad to link to capsfilter0:src
0:00:00.921346666   789  0x1426800 INFO                 default gstutils.c:2083:gst_element_link_pads_filtered: Could not link pads: imxv4l2videosrc0:(null) - capsfilter:sink
0:00:00.921685333   789  0x1426800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<capsfilter0> completed state change to NULL
0:00:00.922033333   789  0x1426800 INFO           GST_PARENTAGE gstbin.c:1792:gst_bin_remove_func:<pipeline0> removed child "capsfilter0"
0:00:00.922519000   789  0x1426800 INFO         GST_REFCOUNTING gstelement.c:3042:gst_element_dispose:<capsfilter0> 0x15281b0 dispose
0:00:00.922785666   789  0x1426800 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<capsfilter0> removing pad 'sink'
0:00:00.923217333   789  0x1426800 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<capsfilter0> removing pad 'src'
0:00:00.923580000   789  0x1426800 INFO         GST_REFCOUNTING gstelement.c:3088:gst_element_dispose:<capsfilter0> 0x15281b0 parent class dispose
0:00:00.923865666   789  0x1426800 INFO         GST_REFCOUNTING gstelement.c:3119:gst_element_finalize:<capsfilter0> 0x15281b0 finalize
0:00:00.924114000   789  0x1426800 INFO         GST_REFCOUNTING gstelement.c:3125:gst_element_finalize:<capsfilter0> 0x15281b0 finalize parent
0:00:00.924604333   789  0x1426800 INFO         imxv4l2videosrc v4l2src.c:647:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps filter (NULL)
0:00:00.925376333   789  0x1426800 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:01.259109667   789  0x1426800 ERROR           GST_PIPELINE grammar.y:730:gst_parse_perform_link: could not link imxv4l2videosrc0 to imxpxpvideosink0, neither element can handle caps video/x-raw, format=(string)YUVY, width=(int)1920, height=(int)1080, framerate=(fraction)15/1
WARNING: erroneous pipeline: could not link imxv4l2videosrc0 to imxpxpvideosink0, neither element can handle caps video/x-raw, format=(string)YUVY, width=(int)1920, height=(int)1080, framerate=(fraction)15/1
root@imx6ul-var-dart:~# gst-launch-1.0 imxv4l2videosrc device=/dev/video1  imx-capture-mode=5 ! 'video/x-raw,format=UYVY,width=1920,height=1080,framerate=(fraction)15/1' ! imxpxpvideosink
0:00:00.001596000   790   0x60d800 INFO                GST_INIT gst.c:507:init_pre: Initializing GStreamer Core Library version 1.12.4
0:00:00.002673667   790   0x60d800 INFO                GST_INIT gst.c:508:init_pre: Using library installed in /usr/lib
0:00:00.003585000   790   0x60d800 INFO                GST_INIT gst.c:528:init_pre: Linux imx6ul-var-dart 4.9.88-10179-g3a71a59 #4 SMP PREEMPT Mon Oct 8 12:05:10 PDT 2018 armv7l
0:00:00.009787334   790   0x60d800 INFO                GST_INIT gstmessage.c:127:_priv_gst_message_initialize: init messages
0:00:00.018522000   790   0x60d800 INFO                GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.021245334   790   0x60d800 INFO      GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.023173334   790   0x60d800 INFO      GST_PLUGIN_LOADING gstplugin.c:225:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.023378000   790   0x60d800 INFO      GST_PLUGIN_LOADING gstplugin.c:227:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.023686334   790   0x60d800 INFO            GST_REGISTRY gstregistry.c:1721:ensure_current_registry: reading registry cache: /home/root/.cache/gstreamer-1.0/registry.arm.bin
0:00:00.166644667   790   0x60d800 INFO            GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /home/root/.cache/gstreamer-1.0/registry.arm.bin in 0.142630 seconds
0:00:00.167168667   790   0x60d800 INFO            GST_REGISTRY gstregistry.c:1577:scan_and_update_registry: Validating plugins from registry cache: /home/root/.cache/gstreamer-1.0/registry.arm.bin
0:00:00.197008334   790   0x60d800 INFO            GST_REGISTRY gstregistry.c:1679:scan_and_update_registry: Registry cache has not changed
0:00:00.197165667   790   0x60d800 INFO            GST_REGISTRY gstregistry.c:1756:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.197263334   790   0x60d800 INFO                GST_INIT gst.c:727:init_post: GLib runtime version: 2.54.3
0:00:00.197361000   790   0x60d800 INFO                GST_INIT gst.c:729:init_post: GLib headers version: 2.54.3
0:00:00.197499667   790   0x60d800 INFO                GST_INIT gst.c:730:init_post: initialized GStreamer successfully
0:00:00.197818000   790   0x60d800 INFO            GST_PIPELINE gstparse.c:334:gst_parse_launch_full: parsing pipeline description 'imxv4l2videosrc device=/dev/video1 imx-capture-mode=5 ! video/x-raw,format=UYVY,width=1920,height=1080,framerate=(fraction)15/1 ! imxpxpvideosink '
0:00:00.213685000   790   0x60d800 INFO      GST_PLUGIN_LOADING gstplugin.c:843:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstimxv4l2video.so" loaded
0:00:00.213927000   790   0x60d800 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "imxv4l2videosrc"
0:00:00.216978334   790   0x60d800 INFO        GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:<GstBaseSrc@0x7040d8> adding pad 'src'
0:00:00.223625000   790   0x60d800 INFO      GST_PLUGIN_LOADING gstplugin.c:843:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstimxpxp.so" loaded
0:00:00.223809000   790   0x60d800 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "imxpxpvideosink"
0:00:00.225812000   790   0x60d800 INFO        GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:<GstBaseSink@0x70a048> adding pad 'sink'
0:00:00.226304667   790   0x60d800 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "pipeline"
0:00:00.227205667   790   0x60d800 INFO            GST_PIPELINE grammar.y:652:gst_parse_perform_link: linking some pad of GstImxV4l2VideoSrc named imxv4l2videosrc0 to some pad of GstImxPxPVideoSink named imxpxpvideosink0 (0/0) with caps "video/x-raw, format=(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)15/1"
0:00:00.232321000   790   0x60d800 INFO      GST_PLUGIN_LOADING gstplugin.c:843:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstcoreelements.so" loaded
0:00:00.232508667   790   0x60d800 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element "capsfilter"
0:00:00.233717667   790   0x60d800 INFO        GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:<GstBaseTransform@0x70e1b0> adding pad 'sink'
0:00:00.234014667   790   0x60d800 INFO        GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:<GstBaseTransform@0x70e1b0> adding pad 'src'
0:00:00.234230000   790   0x60d800 INFO              GST_STATES gstbin.c:2080:gst_bin_get_state_func:<pipeline0> getting state
0:00:00.234521334   790   0x60d800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<capsfilter0> completed state change to NULL
0:00:00.234727667   790   0x60d800 INFO               GST_EVENT gstevent.c:1512:gst_event_new_reconfigure: creating reconfigure event
0:00:00.234869000   790   0x60d800 INFO        GST_ELEMENT_PADS gstutils.c:1709:gst_element_link_pads_full: trying to link element imxv4l2videosrc0:(any) to element capsfilter0:sink
0:00:00.235062667   790   0x60d800 INFO        GST_ELEMENT_PADS gstelement.c:918:gst_element_get_static_pad: found pad capsfilter0:sink
0:00:00.567091334   790   0x60d800 INFO                GST_PADS gstutils.c:1523:prepare_link_maybe_ghosting: imxv4l2videosrc0 and capsfilter0 in same bin, no need for ghost pads
0:00:00.567640334   790   0x60d800 INFO                GST_PADS gstpad.c:2356:gst_pad_link_prepare: trying to link imxv4l2videosrc0:src and capsfilter0:sink
0:00:00.568037667   790   0x60d800 INFO         imxv4l2videosrc v4l2src.c:647:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps filter (NULL)
0:00:00.568835667   790   0x60d800 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.569514667   790   0x60d800 INFO                GST_PADS gstpad.c:4167:gst_pad_peer_query:<capsfilter0:src> pad has no peer
0:00:00.570061334   790   0x60d800 INFO                GST_PADS gstpad.c:2564:gst_pad_link_full: linked imxv4l2videosrc0:src and capsfilter0:sink, successful
0:00:00.570386334   790   0x60d800 INFO               GST_EVENT gstevent.c:1512:gst_event_new_reconfigure: creating reconfigure event
0:00:00.570615000   790   0x60d800 INFO               GST_EVENT gstpad.c:5722:gst_pad_send_event_unchecked:<imxv4l2videosrc0:src> Received event on flushing pad. Discarding
0:00:00.571001000   790   0x60d800 INFO        GST_ELEMENT_PADS gstutils.c:1709:gst_element_link_pads_full: trying to link element capsfilter0:src to element imxpxpvideosink0:(any)
0:00:00.571310334   790   0x60d800 INFO        GST_ELEMENT_PADS gstelement.c:918:gst_element_get_static_pad: found pad capsfilter0:src
0:00:00.571599334   790   0x60d800 INFO                GST_PADS gstutils.c:1009:gst_pad_check_link: trying to link capsfilter0:src and imxpxpvideosink0:sink
0:00:00.571989334   790   0x60d800 INFO         imxv4l2videosrc v4l2src.c:647:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps filter (NULL)
0:00:00.572743334   790   0x60d800 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.574026000   790   0x60d800 INFO                GST_PADS gstutils.c:1523:prepare_link_maybe_ghosting: capsfilter0 and imxpxpvideosink0 in same bin, no need for ghost pads
0:00:00.574453000   790   0x60d800 INFO                GST_PADS gstpad.c:2356:gst_pad_link_prepare: trying to link capsfilter0:src and imxpxpvideosink0:sink
0:00:00.574859667   790   0x60d800 INFO         imxv4l2videosrc v4l2src.c:647:gst_imx_v4l2src_get_caps:<imxv4l2videosrc0> get caps filter (NULL)
0:00:00.575612667   790   0x60d800 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.909349667   790   0x60d800 INFO                GST_PADS gstpad.c:2564:gst_pad_link_full: linked capsfilter0:src and imxpxpvideosink0:sink, successful
0:00:00.909728000   790   0x60d800 INFO               GST_EVENT gstevent.c:1512:gst_event_new_reconfigure: creating reconfigure event
0:00:00.909965334   790   0x60d800 INFO               GST_EVENT gstpad.c:5722:gst_pad_send_event_unchecked:<capsfilter0:src> Received event on flushing pad. Discarding
Setting pipeline to PAUSED ...
0:00:00.919241667   790   0x60d800 INFO              GST_STATES gstbin.c:2497:gst_bin_element_set_state:<imxpxpvideosink0> current NULL pending VOID_PENDING, desired next READY
0:00:00.919726000   790   0x60d800 INFO     imxblittervideosink video_sink.c:1013:gst_imx_blitter_video_sink_open_framebuffer_device:<imxpxpvideosink0> opening framebuffer /dev/fb0
0:00:00.920125000   790   0x60d800 INFO     imxblittervideosink video_sink.c:1358:gst_imx_blitter_video_sink_get_format_from_fb:<imxpxpvideosink0> framebuffer uses 16 bpp (sizes: r 5 g 6 b 5 a 0  offsets: r 11 g 5 b 0 a 0) => format RGB16
0:00:00.921263000   790   0x60d800 INFO     imxblittervideosink video_sink.c:1122:gst_imx_blitter_video_sink_open_framebuffer_device:<imxpxpvideosink0> framebuffer FD is 5
0:00:00.922247334   790   0x60d800 INFO     imxphysmemallocator phys_mem_allocator.c:84:gst_imx_phys_mem_allocator_init:<GstImxPhysMemAllocator@0x614ee0> initializing physical memory allocator
0:00:00.922841334   790   0x60d800 INFO            imxpxpdevice device.c:51:gst_imx_pxp_open: PxP device opened
0:00:00.924690000   790   0x60d800 INFO         imxpxpallocator allocator.c:80:gst_imx_pxp_alloc_phys_mem:<imxpxpallocator0> allocated 256 bytes of physical memory, paddr 0x9cee3000
0:00:00.925037334   790   0x60d800 INFO     imxphysmemallocator phys_mem_allocator.c:174:gst_imx_phys_mem_allocator_alloc:<imxpxpallocator0> allocated memory block 0x708298 at phys addr 0x9cee3000 with 256 bytes
0:00:00.925537334   790   0x60d800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<imxpxpvideosink0> completed state change to READY
0:00:00.925803000   790   0x60d800 INFO              GST_STATES gstelement.c:2372:_priv_gst_element_state_changed:<imxpxpvideosink0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.926315000   790   0x60d800 INFO              GST_STATES gstbin.c:2945:gst_bin_change_state_func:<pipeline0> child 'imxpxpvideosink0' changed state to 2(READY) successfully
0:00:00.926738334   790   0x60d800 INFO              GST_STATES gstbin.c:2497:gst_bin_element_set_state:<capsfilter0> current NULL pending VOID_PENDING, desired next READY
0:00:00.927066667   790   0x60d800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<capsfilter0> completed state change to READY
0:00:00.927295000   790   0x60d800 INFO              GST_STATES gstelement.c:2372:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.927653334   790   0x60d800 INFO              GST_STATES gstbin.c:2945:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 2(READY) successfully
0:00:00.928108000   790   0x60d800 INFO              GST_STATES gstbin.c:2497:gst_bin_element_set_state:<imxv4l2videosrc0> current NULL pending VOID_PENDING, desired next READY
0:00:01.261596667   790   0x60d800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<imxv4l2videosrc0> completed state change to READY
0:00:01.261919000   790   0x60d800 INFO              GST_STATES gstelement.c:2372:_priv_gst_element_state_changed:<imxv4l2videosrc0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:01.262314667   790   0x60d800 INFO              GST_STATES gstbin.c:2945:gst_bin_change_state_func:<pipeline0> child 'imxv4l2videosrc0' changed state to 2(READY) successfully
0:00:01.262707667   790   0x60d800 INFO              GST_STATES gstelement.c:2442:gst_element_continue_state:<pipeline0> committing state from NULL to READY, pending PAUSED, next PAUSED
0:00:01.263202667   790   0x60d800 INFO              GST_STATES gstelement.c:2372:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed NULL to READY (PAUSED pending)
0:00:01.264257334   790   0x60d800 INFO              GST_STATES gstelement.c:2449:gst_element_continue_state:<pipeline0> continue state change READY to PAUSED, final PAUSED
0:00:01.264843000   790   0x60d800 INFO              GST_STATES gstbin.c:2497:gst_bin_element_set_state:<imxpxpvideosink0> current READY pending VOID_PENDING, desired next PAUSED
0:00:01.265360000   790   0x60d800 INFO              GST_STATES gstbin.c:2951:gst_bin_change_state_func:<pipeline0> child 'imxpxpvideosink0' is changing state asynchronously to PAUSED
0:00:01.265742667   790   0x60d800 INFO              GST_STATES gstbin.c:2497:gst_bin_element_set_state:<capsfilter0> current READY pending VOID_PENDING, desired next PAUSED
0:00:01.266162334   790   0x60d800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<capsfilter0> completed state change to PAUSED
0:00:01.266407334   790   0x60d800 INFO              GST_STATES gstelement.c:2372:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:01.266771000   790   0x60d800 INFO              GST_STATES gstbin.c:2945:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 3(PAUSED) successfully
0:00:01.267177334   790   0x60d800 INFO              GST_STATES gstbin.c:2497:gst_bin_element_set_state:<imxv4l2videosrc0> current READY pending VOID_PENDING, desired next PAUSED
0:00:01.267987334   790   0x60d800 WARN         imxv4l2videosrc v4l2src.c:124:gst_imx_v4l2src_is_tvin:<imxv4l2videosrc0> VIDIOC_QUERYSTD failed: Inappropriate ioctl for device
0:00:01.268398667   790   0x60d800 WARN         imxv4l2videosrc v4l2src.c:128:gst_imx_v4l2src_is_tvin:<imxv4l2videosrc0> VIDIOC_G_STD failed: Inappropriate ioctl for device
0:00:01.268800667   790   0x60d800 INFO         imxv4l2videosrc v4l2src.c:227:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> capture mode 5: 1920x1080
0:00:01.269223334   790   0x60d800 ERROR        imxv4l2videosrc v4l2src.c:239:gst_imx_v4l2src_capture_setup:<imxv4l2videosrc0> VIDIOC_S_PARM failed: Invalid argument
0:00:01.269559000   790   0x60d800 ERROR        imxv4l2videosrc v4l2src.c:331:gst_imx_v4l2src_start:<imxv4l2videosrc0> capture_setup failed
0:00:01.603283667   790   0x60d800 WARN                 basesrc gstbasesrc.c:3345:gst_base_src_start:<imxv4l2videosrc0> error: Failed to start
0:00:01.603807000   790   0x60d800 INFO        GST_ERROR_SYSTEM gstelement.c:1938:gst_element_message_full_with_details:<imxv4l2videosrc0> posting message: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
0:00:01.604402334   790   0x60d800 INFO        GST_ERROR_SYSTEM gstelement.c:1965:gst_element_message_full_with_details:<imxv4l2videosrc0> posted error message: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
0:00:01.604755000   790   0x60d800 WARN                 basesrc gstbasesrc.c:3718:gst_base_src_activate_push:<imxv4l2videosrc0> Failed to start in push mode
0:00:01.604950000   790   0x60d800 INFO                GST_PADS gstpad.c:1276:activate_mode_internal:<imxv4l2videosrc0:src> failed to activate in push mode
0:00:01.605219334   790   0x60d800 WARN                GST_PADS gstpad.c:1141:gst_pad_set_active:<imxv4l2videosrc0:src> Failed to activate pad
0:00:01.605457000   790   0x60d800 INFO              GST_STATES gstelement.c:2752:gst_element_change_state:<imxv4l2videosrc0> have FAILURE change_state return
0:00:01.605670000   790   0x60d800 INFO              GST_STATES gstelement.c:2342:gst_element_abort_state:<imxv4l2videosrc0> aborting state from READY to PAUSED
0:00:01.606005334   790   0x60d800 INFO              GST_STATES gstbin.c:2961:gst_bin_change_state_func:<pipeline0> child 'imxv4l2videosrc0' failed to go to state 3(PAUSED)
0:00:01.606782667   790   0x60d800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<imxpxpvideosink0> completed state change to READY
0:00:01.607057334   790   0x60d800 INFO              GST_STATES gstelement.c:2372:_priv_gst_element_state_changed:<imxpxpvideosink0> notifying about state-changed READY to READY (VOID_PENDING pending)
0:00:01.607639334   790   0x60d800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<capsfilter0> completed state change to READY
0:00:01.607892334   790   0x60d800 INFO              GST_STATES gstelement.c:2372:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:00:01.608305667   790   0x60d800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<imxv4l2videosrc0> completed state change to READY
0:00:01.608688334   790   0x60d800 INFO              GST_STATES gstelement.c:2752:gst_element_change_state:<pipeline0> have FAILURE change_state return
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:
../../../../gstreamer-1.12.4/libs/gst/base/gstbasesrc.c(3345): gst_base_src_start (): /GstPipeline:pipeline0/GstImxV4l2VideoSrc:imxv4l2videosrc0:
Failed to start
Setting pipeline to NULL ...
0:00:01.615360000   790   0x60d800 INFO              GST_STATES gstbin.c:2497:gst_bin_element_set_state:<imxpxpvideosink0> current READY pending VOID_PENDING, desired next NULL
0:00:01.615849667   790   0x60d800 INFO     imxblittervideosink video_sink.c:1161:gst_imx_blitter_video_sink_close_framebuffer_device:<imxpxpvideosink0> closing framebuffer /dev/fb0 with FD 5
0:00:01.947908000   790   0x60d800 INFO         imxpxpallocator allocator.c:97:gst_imx_pxp_free_phys_mem:<imxpxpallocator0> freed 256 bytes of physical memory, paddr 0x9cee3000
0:00:01.948269667   790   0x60d800 INFO     imxphysmemallocator phys_mem_allocator.c:190:gst_imx_phys_mem_allocator_free:<imxpxpallocator0> freed block 0x708298 at phys addr 0x9cee3000 with size: 256
0:00:01.948608334   790   0x60d800 INFO     imxphysmemallocator phys_mem_allocator.c:97:gst_imx_phys_mem_allocator_finalize:<imxpxpallocator0> shutting down physical memory allocator
0:00:01.948968667   790   0x60d800 INFO            imxpxpdevice device.c:72:gst_imx_pxp_close: PxP device closed
0:00:01.949222667   790   0x60d800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<imxpxpvideosink0> completed state change to NULL
0:00:01.949479000   790   0x60d800 INFO              GST_STATES gstelement.c:2372:_priv_gst_element_state_changed:<imxpxpvideosink0> notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:01.949892667   790   0x60d800 INFO              GST_STATES gstbin.c:2945:gst_bin_change_state_func:<pipeline0> child 'imxpxpvideosink0' changed state to 1(NULL) successfully
0:00:01.950369334   790   0x60d800 INFO              GST_STATES gstbin.c:2497:gst_bin_element_set_state:<capsfilter0> current READY pending VOID_PENDING, desired next NULL
0:00:01.950787334   790   0x60d800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<capsfilter0> completed state change to NULL
0:00:01.951044667   790   0x60d800 INFO              GST_STATES gstelement.c:2372:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:01.951408667   790   0x60d800 INFO              GST_STATES gstbin.c:2945:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 1(NULL) successfully
0:00:01.951744667   790   0x60d800 INFO              GST_STATES gstbin.c:2497:gst_bin_element_set_state:<imxv4l2videosrc0> current READY pending VOID_PENDING, desired next NULL
0:00:01.952109667   790   0x60d800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<imxv4l2videosrc0> completed state change to NULL
0:00:01.952356334   790   0x60d800 INFO              GST_STATES gstelement.c:2372:_priv_gst_element_state_changed:<imxv4l2videosrc0> notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:01.952709667   790   0x60d800 INFO              GST_STATES gstbin.c:2945:gst_bin_change_state_func:<pipeline0> child 'imxv4l2videosrc0' changed state to 1(NULL) successfully
0:00:01.953849000   790   0x60d800 INFO              GST_STATES gstelement.c:2467:gst_element_continue_state:<pipeline0> completed state change to NULL
0:00:01.954148334   790   0x60d800 INFO              GST_STATES gstelement.c:2372:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed READY to NULL (VOID_PENDING pending)
Freeing pipeline ...
0:00:01.954870667   790   0x60d800 INFO        GST_ELEMENT_PADS gstpad.c:2112:gst_pad_unlink: unlinking imxv4l2videosrc0:src(0x7060e8) and capsfilter0:sink(0x7063a8)
0:00:02.286764000   790   0x60d800 INFO        GST_ELEMENT_PADS gstpad.c:2166:gst_pad_unlink: unlinked imxv4l2videosrc0:src and capsfilter0:sink
0:00:02.287317667   790   0x60d800 INFO        GST_ELEMENT_PADS gstpad.c:2112:gst_pad_unlink: unlinking capsfilter0:src(0x706508) and imxpxpvideosink0:sink(0x706248)
0:00:02.287776334   790   0x60d800 INFO        GST_ELEMENT_PADS gstpad.c:2166:gst_pad_unlink: unlinked capsfilter0:src and imxpxpvideosink0:sink
0:00:02.288201334   790   0x60d800 INFO           GST_PARENTAGE gstbin.c:1792:gst_bin_remove_func:<pipeline0> removed child "capsfilter0"
0:00:02.288644667   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3042:gst_element_dispose:<capsfilter0> 0x70e1b0 dispose
0:00:02.288910334   790   0x60d800 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<capsfilter0> removing pad 'sink'
0:00:02.289422334   790   0x60d800 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<capsfilter0> removing pad 'src'
0:00:02.289779667   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3088:gst_element_dispose:<capsfilter0> 0x70e1b0 parent class dispose
0:00:02.290059000   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3119:gst_element_finalize:<capsfilter0> 0x70e1b0 finalize
0:00:02.290293334   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3125:gst_element_finalize:<capsfilter0> 0x70e1b0 finalize parent
0:00:02.290634334   790   0x60d800 INFO           GST_PARENTAGE gstbin.c:1792:gst_bin_remove_func:<pipeline0> removed child "imxpxpvideosink0"
0:00:02.291035334   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3042:gst_element_dispose:<imxpxpvideosink0> 0x70a048 dispose
0:00:02.291303334   790   0x60d800 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<imxpxpvideosink0> removing pad 'sink'
0:00:02.291628334   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3088:gst_element_dispose:<imxpxpvideosink0> 0x70a048 parent class dispose
0:00:02.291901000   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3119:gst_element_finalize:<imxpxpvideosink0> 0x70a048 finalize
0:00:02.292220000   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3125:gst_element_finalize:<imxpxpvideosink0> 0x70a048 finalize parent
0:00:02.292592667   790   0x60d800 INFO           GST_PARENTAGE gstbin.c:1792:gst_bin_remove_func:<pipeline0> removed child "imxv4l2videosrc0"
0:00:02.293197334   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3042:gst_element_dispose:<imxv4l2videosrc0> 0x7040d8 dispose
0:00:02.293493000   790   0x60d800 INFO        GST_ELEMENT_PADS gstelement.c:787:gst_element_remove_pad:<imxv4l2videosrc0> removing pad 'src'
0:00:02.293829667   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3088:gst_element_dispose:<imxv4l2videosrc0> 0x7040d8 parent class dispose
0:00:02.294124000   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3119:gst_element_finalize:<imxv4l2videosrc0> 0x7040d8 finalize
0:00:02.625609001   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3125:gst_element_finalize:<imxv4l2videosrc0> 0x7040d8 finalize parent
0:00:02.625986334   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3042:gst_element_dispose:<pipeline0> 0x70b080 dispose
0:00:02.626571001   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3088:gst_element_dispose:<pipeline0> 0x70b080 parent class dispose
0:00:02.626887667   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3119:gst_element_finalize:<pipeline0> 0x70b080 finalize
0:00:02.627145667   790   0x60d800 INFO         GST_REFCOUNTING gstelement.c:3125:gst_element_finalize:<pipeline0> 0x70b080 finalize parent
0:00:02.627411001   790   0x60d800 INFO                GST_INIT gst.c:998:gst_deinit: deinitializing GStreamer
0:00:02.675780667   790   0x60d800 INFO                GST_INIT gst.c:1140:gst_deinit: deinitialized GStreamer

 

 

Was the driver tested with IMX6ul?  ov5640_v2.c\capture\mxc\platform\media\drivers - linux-imx - i.MX Linux kernel  for higher resolution ? 

 

Thanks,

-Rick

Outcomes