[prev in list] [next in list] [prev in thread] [next in thread]
List: gstreamer-devel
Subject: Re: imx6 capture via ADV7280
From: Fabio Estevam <festevam () gmail ! com>
Date: 2020-11-27 15:58:38
Message-ID: CAOMZO5B_r7Vi4VhX2i7Wjz-E05EnpR3vi1i3i01UEfPFiE+pgg () mail ! gmail ! com
[Download RAW message or body]
Hi Nicolas,
On Thu, Nov 26, 2020 at 3:25 PM Nicolas Dufresne <nicolas@ndufresne.ca> wrote:
> I support kmssink ask for progressive frames, while v4l2src can only produce
> interlaced. There is likely something to improve there, but meanwhile, consider
> usign deinterlace element.
Thanks for your feedback. I am configuring the links like this now:
media-ctl -l "'adv7180 0-0020':0 -> 'ipu1_csi1_mux':4[1]"
media-ctl -l "'ipu1_csi1_mux':5 -> '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 0-0020':0 [fmt:UYVY2X8/640x480 field:seq-tb]"
media-ctl -V "'ipu1_csi1_mux':5 [fmt:UYVY2X8/640x480]"
media-ctl -V "'ipu1_csi1':1 [fmt:AYUV32/640x480]"
media-ctl -V "'ipu1_vdic':2 [fmt:AYUV32/640x480 field:none]"
media-ctl -V "'ipu1_ic_prp':2 [fmt:AYUV32/640x480 field:none]"
media-ctl -V "'ipu1_ic_prpvf':1 [fmt:AYUV32/640x480 field:none]"
v4l2-ctl -d2 --set-fmt-video=field=none
gst-launch-1.0 v4l2src device=/dev/video2 ! kmssink:
And the Gstreamer pipeline works now.
Also, to fix the timeout issue I reported earlier, I had to increase
IMX_MEDIA_EOF_TIMEOUT:
--- a/drivers/staging/media/imx/imx-media.h
+++ b/drivers/staging/media/imx/imx-media.h
@@ -65,7 +65,7 @@ enum {
};
/* How long to wait for EOF interrupts in the buffer-capture subdevs */
-#define IMX_MEDIA_EOF_TIMEOUT 1000
+#define IMX_MEDIA_EOF_TIMEOUT 2000
struct imx_media_pixfmt {
u32 fourcc;
--
2.17.1
Will submit this change as a formal patch.
Thanks,
Fabio Estevam
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic