{"id":18461,"url":"https://patchwork.libcamera.org/api/1.1/patches/18461/?format=json","web_url":"https://patchwork.libcamera.org/patch/18461/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20230324181247.302586-4-nicolas@ndufresne.ca>","date":"2023-03-24T18:12:47","name":"[libcamera-devel,v2,3/3] doc: gstreamer: Document the sensor-mode(s) properties","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"413243d7c638944b54f23bcfbff5b69a59558908","submitter":{"id":30,"url":"https://patchwork.libcamera.org/api/1.1/people/30/?format=json","name":"Nicolas Dufresne","email":"nicolas@ndufresne.ca"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/18461/mbox/","series":[{"id":3815,"url":"https://patchwork.libcamera.org/api/1.1/series/3815/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3815","date":"2023-03-24T18:12:44","name":"Add sensor mode selection to GStreamer","version":2,"mbox":"https://patchwork.libcamera.org/series/3815/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/18461/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/18461/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 3B89DC0F1B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 24 Mar 2023 18:13:01 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 1778D62744;\n\tFri, 24 Mar 2023 19:13:00 +0100 (CET)","from madras.collabora.co.uk (madras.collabora.co.uk\n\t[IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 76F6F62718\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 24 Mar 2023 19:12:58 +0100 (CET)","from nicolas-tpx395.lan (192-222-136-102.qc.cable.ebox.net\n\t[192.222.136.102])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange X25519 server-signature RSA-PSS (4096 bits)\n\tserver-digest SHA256)\n\t(No client certificate requested) (Authenticated sender: nicolas)\n\tby madras.collabora.co.uk (Postfix) with ESMTPSA id 00C4B660312D;\n\tFri, 24 Mar 2023 18:12:57 +0000 (GMT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1679681580;\n\tbh=AG+K99daHMuCR/dO/FlC82WLKrNzoMeLd8FlNJLpYW0=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:\n\tFrom;\n\tb=unM9Kw4eNi5DZaR4ySL0w7OheFPLYGZknMAkhRxgG1iijqf9YWfYOUsIQoB3JrRn8\n\tZpVklo7GbswcXpHoU9l9723+niM5Jhb53RrEFedTca89MvEYoxVoehkS/QCJ5rKS7t\n\teWl3kwOZnaqnccm1BGzyTcf8Jb9t+zbkyF8ryLhDctyUsJ1miZ+zRD8HYWhCuyng0l\n\t8a0D//lSOuYXZqYHY2ZWd5MMuRGAfwXp0WQBfPqoLfhXiE5WI9iFYEXhOnn0vlT4o9\n\tYklAzyxMz+3NX0em+V8mMMwOwaHhVE0iw3cMWx3RDuFXVjduZHfJQO8whFeRv3FWmJ\n\tjk5Oq7hycCsiw==","To":"libcamera-devel@lists.libcamera.org","Date":"Fri, 24 Mar 2023 14:12:47 -0400","Message-Id":"<20230324181247.302586-4-nicolas@ndufresne.ca>","X-Mailer":"git-send-email 2.39.2","In-Reply-To":"<20230324181247.302586-1-nicolas@ndufresne.ca>","References":"<20230324181247.302586-1-nicolas@ndufresne.ca>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 3/3] doc: gstreamer: Document the\n\tsensor-mode(s) properties","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Nicolas Dufresne via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Nicolas Dufresne <nicolas@ndufresne.ca>","Cc":"Nicolas Dufresne <nicolas.dufresne@collabora.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"From: Nicolas Dufresne <nicolas.dufresne@collabora.com>\n\nSigned-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>\n---\n README.rst | 14 ++++++++++++++\n 1 file changed, 14 insertions(+)","diff":"diff --git a/README.rst b/README.rst\nindex 52cde91c..21a4d127 100644\n--- a/README.rst\n+++ b/README.rst\n@@ -174,6 +174,20 @@ Which can be received on another device over the network with:\n    gst-launch-1.0 tcpclientsrc host=$DEVICE_IP port=5000 ! \\\n         multipartdemux ! jpegdec ! autovideosink\n \n+Some pipeline managers have support for selecting the sensor mode. This consist\n+of locking the sensor into a specific resolution/format in order to obtains a\n+specific field or view, quality or get access to different frame duration\n+ranges. Applications can read the enumerate mode through the ``sensor-modes``\n+properties and select (or filter) the selected mode using ``sensor-mode``\n+property. As an example, an application that needs 60 frame per second can\n+ensure this with:\n+\n+.. code::\n+\n+    gst-launch-1.0 libcamerasrc sensor-mode=\"sensor/mode,framerate=60/1\" ! \\\n+        video/x-raw,framerate=60/1,format=NV12 ! \\\n+        queue ! videoconvert ! autovideosink\n+\n .. section-end-getting-started\n \n Troubleshooting\n","prefixes":["libcamera-devel","v2","3/3"]}