All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: Schrempf Frieder <frieder.schrempf@kontron.de>,
	Steve Longerbeam <slongerbeam@gmail.com>,
	Tim Harvey <tharvey@gateworks.com>,
	Philipp Zabel <p.zabel@pengutronix.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>,
	linux-media <linux-media@vger.kernel.org>,
	Nicolas Dufresne <nicolas@ndufresne.ca>
Subject: Unable to capture adv7280-m on i.MX6Q
Date: Mon, 17 May 2021 17:58:19 -0300	[thread overview]
Message-ID: <CAOMZO5A0nV2bubWt3EzkaWVBoD96YNTYB10y-qB79mX2pTBu0w@mail.gmail.com> (raw)

Hi,

I am trying to capture from an adv7280-m (via MIPI-CSI2 interface) on
an imx6q board.

Here is the configuration:

media-ctl -e "adv7180 2-0020"
/dev/v4l-subdev13

media-ctl -e "ipu1_ic_prpvf capture"
/dev/video2

v4l2-ctl --device /dev/v4l-subdev13 --set-standard PAL
media-ctl -l "'adv7180 2-0020':0 -> 'imx6-mipi-csi2':0[1]"
media-ctl -l "'imx6-mipi-csi2':2 -> 'ipu1_csi1':0[1]"
media-ctl -l "'ipu1_csi1':1 -> 'ipu1_vdic':0[1]";
media-ctl -l "'ipu1_vdic':2 -> 'ipu1_ic_prp':0[1]"
media-ctl -l "'ipu1_ic_prp':2 -> 'ipu1_ic_prpvf':0[1]"
media-ctl -l "'ipu1_ic_prpvf':1 -> 'ipu1_ic_prpvf capture':0[1]"
media-ctl -V "'adv7180 2-0020':0 [fmt:UYVY2X8/720x480 field:seq-tb]"
media-ctl -V "'imx6-mipi-csi2':2 [fmt:UYVY2X8/720x480]"
media-ctl -V "'ipu1_csi1':1 [fmt:AYUV32/800x480]";
media-ctl -V "'ipu1_vdic':2 [fmt:AYUV32/800x480 field:none]"
media-ctl -V "'ipu1_ic_prp':2 [fmt:AYUV32/800x480 field:none]"
media-ctl -V "'ipu1_ic_prpvf':1 [fmt:AYUV32/800x480 field:none]"
v4l2-ctl -d2 --set-fmt-video=field=none

Then when I try to launch Gstreamer:

gst-launch-1.0 v4l2src device=/dev/video2 ! kmssink

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[  124.519578] ipu1_ic_prpvf: pipeline start failed with -32
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed
to allocate required memory.
Additional debug info:
../sys/v4l2/gstv4l2src.c(659): gst_v4l2src_decide_allocation ():
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
Execution ended after 0:00:00.032104334
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop ():
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)

Does anyone have any ideas as to why the pipeline fails?

Thanks,

Fabio Estevam

             reply	other threads:[~2021-05-17 20:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-17 20:58 Fabio Estevam [this message]
2021-05-17 23:48 ` Unable to capture adv7280-m on i.MX6Q Fabio Estevam
2021-06-08  3:13   ` Fabio Estevam
2021-06-08  7:09     ` Philipp Zabel
2021-06-08  7:54       ` Ian Arkver
2021-06-08 10:55         ` Frieder Schrempf
2021-06-08 11:20           ` Ian Arkver
2021-06-08 11:21           ` Fabio Estevam
2021-06-09  2:34       ` Fabio Estevam
2021-06-09  7:20         ` Philipp Zabel
2021-06-09 12:27           ` Fabio Estevam
2021-06-09 17:28           ` Ian Arkver
2021-06-25  1:20             ` Fabio Estevam
2021-06-25  9:22               ` Ian Arkver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOMZO5A0nV2bubWt3EzkaWVBoD96YNTYB10y-qB79mX2pTBu0w@mail.gmail.com \
    --to=festevam@gmail.com \
    --cc=frieder.schrempf@kontron.de \
    --cc=lars@metafoo.de \
    --cc=linux-media@vger.kernel.org \
    --cc=nicolas@ndufresne.ca \
    --cc=p.zabel@pengutronix.de \
    --cc=slongerbeam@gmail.com \
    --cc=tharvey@gateworks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.