RE: ADV7180 Capture with i.MX53

2019-10-18 Thread Matthew Starr
> -Original Message- > From: Steve Longerbeam > > On 10/9/19 8:40 AM, Tim Harvey wrote: > > On Tue, Oct 8, 2019 at 4:48 PM Fabio Estevam > wrote: > >> Hi Tim, > >> > >> On Tue, Oct 8, 2019 at 6:01 PM Tim Harvey > wrote: > >> > >>> Ok that's strange indeed. I did recently test 5.3 on a G

Re: ADV7180 Capture with i.MX53

2019-10-09 Thread Steve Longerbeam
On 10/9/19 8:40 AM, Tim Harvey wrote: On Tue, Oct 8, 2019 at 4:48 PM Fabio Estevam wrote: Hi Tim, On Tue, Oct 8, 2019 at 6:01 PM Tim Harvey wrote: Ok that's strange indeed. I did recently test 5.3 on a Gateworks IMX6 board with ADV7180 and the one patch to drop the first few frames and i

Re: ADV7180 Capture with i.MX53

2019-10-09 Thread Tim Harvey
On Tue, Oct 8, 2019 at 4:48 PM Fabio Estevam wrote: > > Hi Tim, > > On Tue, Oct 8, 2019 at 6:01 PM Tim Harvey wrote: > > > Ok that's strange indeed. I did recently test 5.3 on a Gateworks IMX6 > > board with ADV7180 and the one patch to drop the first few frames and > > its stable. What does your

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Fabio Estevam
Hi Tim, On Tue, Oct 8, 2019 at 6:01 PM Tim Harvey wrote: > Ok that's strange indeed. I did recently test 5.3 on a Gateworks IMX6 > board with ADV7180 and the one patch to drop the first few frames and > its stable. What does your testing show on an IMX6 and do you know I will give it a try on a

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Tim Harvey
On Tue, Oct 8, 2019 at 1:34 PM Fabio Estevam wrote: > > Hi Tim, > > On Tue, Oct 8, 2019 at 1:55 PM Tim Harvey wrote: > > > I still carry around a patch from Steve for imx-csi that drops first > > few frames from BT656 sources: > > https://github.com/Gateworks/linux-imx6/commit/959fbd42ee6433f49ef

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Fabio Estevam
Hi Tim, On Tue, Oct 8, 2019 at 1:55 PM Tim Harvey wrote: > I still carry around a patch from Steve for imx-csi that drops first > few frames from BT656 sources: > https://github.com/Gateworks/linux-imx6/commit/959fbd42ee6433f49ef4a04fb1abe8f8c78db5ad > to deal with this. Tried this patch and no

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Ian Arkver
On 08/10/2019 18:30, Steve Longerbeam wrote: On 10/8/19 10:20 AM, Ian Arkver wrote: On 08/10/2019 18:14, Steve Longerbeam wrote: On 10/8/19 9:55 AM, Tim Harvey wrote: On Tue, Oct 8, 2019 at 4:21 AM Fabio Estevam wrote: On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: So now I need

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Steve Longerbeam
On 10/8/19 10:20 AM, Ian Arkver wrote: On 08/10/2019 18:14, Steve Longerbeam wrote: On 10/8/19 9:55 AM, Tim Harvey wrote: On Tue, Oct 8, 2019 at 4:21 AM Fabio Estevam wrote: On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: So now I need to see if I can get Gstreamer to accept a pi

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Ian Arkver
On 08/10/2019 18:14, Steve Longerbeam wrote: On 10/8/19 9:55 AM, Tim Harvey wrote: On Tue, Oct 8, 2019 at 4:21 AM Fabio Estevam wrote: On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: So now I need to see if I can get Gstreamer to accept a pipeline like: gst-lauch-1.0 v4l2src ! kmss

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Steve Longerbeam
On 10/8/19 9:55 AM, Tim Harvey wrote: On Tue, Oct 8, 2019 at 4:21 AM Fabio Estevam wrote: On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: So now I need to see if I can get Gstreamer to accept a pipeline like: gst-lauch-1.0 v4l2src ! kmssink Ok, so now I decided use the hardware vid

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Tim Harvey
On Tue, Oct 8, 2019 at 4:21 AM Fabio Estevam wrote: > > On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: > > > So now I need to see if I can get Gstreamer to accept a pipeline like: > > > > gst-lauch-1.0 v4l2src ! kmssink > > Ok, so now I decided use the hardware video deinterlacer: > > media

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Fabio Estevam
On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: > So now I need to see if I can get Gstreamer to accept a pipeline like: > > gst-lauch-1.0 v4l2src ! kmssink Ok, so now I decided use the hardware video deinterlacer: media-ctl -l "'adv7180 1-0021':0 -> 'ipu1_csi0':0[1]" media-ctl -l "'ipu1_c

Re: ADV7180 Capture with i.MX53

2019-10-07 Thread Fabio Estevam
On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: > > On Mon, Oct 7, 2019 at 9:51 PM Steve Longerbeam wrote: > > > Ah progress. Try: > > > > v4l2-ctl -d0 --set-fmt-video=field=interlaced > > Yes, with this hint I can run: > > # v4l2-ctl -d0 --set-fmt-video=field=interlaced > # v4l2-ctl --devic

Re: ADV7180 Capture with i.MX53

2019-10-07 Thread Fabio Estevam
On Mon, Oct 7, 2019 at 9:51 PM Steve Longerbeam wrote: > Ah progress. Try: > > v4l2-ctl -d0 --set-fmt-video=field=interlaced Yes, with this hint I can run: # v4l2-ctl -d0 --set-fmt-video=field=interlaced # v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=x.raw --stream-count=1 And it se

Re: ADV7180 Capture with i.MX53

2019-10-07 Thread Steve Longerbeam
On 10/7/19 5:46 PM, Fabio Estevam wrote: Hi Steve, On Mon, Oct 7, 2019 at 9:37 PM Steve Longerbeam wrote: The adv7180 driver in 5.3.x doesn't support seq-bt, only alternate. So pad format should be "[fmt:UYVY2X8/720x240 field:alternate]". Thanks for the suggestion. After changing to field

Re: ADV7180 Capture with i.MX53

2019-10-07 Thread Fabio Estevam
Hi Steve, On Mon, Oct 7, 2019 at 9:37 PM Steve Longerbeam wrote: > The adv7180 driver in 5.3.x doesn't support seq-bt, only alternate. So > pad format should be "[fmt:UYVY2X8/720x240 field:alternate]". Thanks for the suggestion. After changing to field:alternate I get: # gst-launch-1.0 v4l2src

Re: ADV7180 Capture with i.MX53

2019-10-07 Thread Steve Longerbeam
Hi Fabio, On 10/7/19 5:15 PM, Fabio Estevam wrote: Hi Steve, Are you still able to capture from the camera on the imx53-smd board with kernel 5.3.x? I haven't tried the SMD board in a while, it's possible something broke, but see below... I have a custom board with a ADV7180 and it gets