From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BEF5FC4332B for ; Mon, 15 Feb 2021 00:24:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 702FE64E52 for ; Mon, 15 Feb 2021 00:24:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229961AbhBOAYv (ORCPT ); Sun, 14 Feb 2021 19:24:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbhBOAYv (ORCPT ); Sun, 14 Feb 2021 19:24:51 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEC28C061574 for ; Sun, 14 Feb 2021 16:24:10 -0800 (PST) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 55F3D9E6; Mon, 15 Feb 2021 01:24:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1613348649; bh=xH/WkbsPteP8D1eww7ab3OYH4VXf/kBKXlVNmwiGd8w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R7DajorDeaUvh1HLSyfs+QM8D2ZRnX6JjVxxZQ5xq91NQA5MJO1hRdbUwZZyOVGkf q+nsCOEuiigXNnbox577uy9JW+MW0+iSvw7mku4uYHL6ubnvYs6Ww3rWR2o1lCz2Wm b84j+eD3dH9o8Qu+VedW3je6nYJPoVrmG59yKBWU= Date: Mon, 15 Feb 2021 02:23:44 +0200 From: Laurent Pinchart To: Fabio Estevam Cc: linux-media , Rui Miguel Silva , Steve Longerbeam , Philipp Zabel , Ezequiel Garcia Subject: Re: [PATCH 00/75] media: imx: Miscellaneous fixes and cleanups for i.MX7 Message-ID: References: <20210105152852.5733-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi Fabio, Sorry for the late reply. On Fri, Jan 08, 2021 at 10:47:15PM -0300, Fabio Estevam wrote: > On Fri, Jan 8, 2021 at 10:11 PM Laurent Pinchart wrote: > > > > Ah of course, I should have mentioned that, sorry. Without the legacy > > video node API, the pipeline has to be configured with the MC API and > > the V4L2 subdev userspace API before starting the stream. > > The current method I use is: > > media-ctl -l "'ov5640 1-003c':0 -> 'csi':0[1]" > media-ctl -l "'csi':1 -> 'csi capture':0[1]" > media-ctl -v -V "'ov5640 1-003c':0 [fmt:UYVY8_2X8/320x240 field:none]" I think this is good. The output of 'media-ctl -p' would help double-checking. > # gst-launch-1.0 -v v4l2src device=/dev/video1 ! v4l2convert ! fbdevsink Here you need to specify the format and size for the V4L2 device. I think the following should do (I haven't tested it though and I'm no gstreamer expert). gst-launch-1.0 -v \ v4l2src device=/dev/video1 ! \ video/x-raw,format=UYVY,width=320,height=240 ! \ v4l2convert ! \ fbdevsink > Could you please let me know what is the correct way I should do with > the MC API? -- Regards, Laurent Pinchart