{"id":1092,"date":"2023-11-08T22:57:36","date_gmt":"2023-11-08T14:57:36","guid":{"rendered":"https:\/\/www.fanyamin.com\/wordpress\/?p=1092"},"modified":"2023-11-12T09:41:56","modified_gmt":"2023-11-12T01:41:56","slug":"v4l2-utils","status":"publish","type":"post","link":"https:\/\/www.fanyamin.com\/wordpress\/?p=1092","title":{"rendered":"v4l2 utils"},"content":{"rendered":"<h1>installation<\/h1>\n<pre><code>sudo apt install v4l-utils\n\nsudo apt show v4l-utils\nPackage: v4l-utils\nVersion: 1.20.0-2\nPriority: optional\nSection: utils\nMaintainer: Gregor Jasny &lt;gjasny@googlemail.com&gt;\nInstalled-Size: 1826 kB\nDepends: libv4l-0 (= 1.20.0-2), libv4l2rds0 (= 1.20.0-2), libc6 (&gt;= 2.28), libgcc-s1 (&gt;= 3.5), libstdc++6 (&gt;= 5.2), libudev1 (&gt;= 183)\nBreaks: ivtv-utils (&lt;&lt; 1.4.1-2), media-ctl\nReplaces: ivtv-utils (&lt;&lt; 1.4.1-2), media-ctl\nHomepage: https:\/\/linuxtv.org\/downloads\/v4l-utils\/\nDownload-Size: 511 kB\nAPT-Manual-Installed: yes\nAPT-Sources: http:\/\/raspbian.raspberrypi.org\/raspbian bullseye\/main armhf Packages\nDescription: Collection of command line video4linux utilities\n v4l-utils contains the following video4linux command line utilities:\n .\n  decode_tm6000: decodes tm6000 proprietary format streams\n  rds-ctl: tool to receive and decode Radio Data System (RDS) streams\n  v4l2-compliance: tool to test v4l2 API compliance of drivers\n  v4l2-ctl, cx18-ctl, ivtv-ctl: tools to control v4l2 controls from the cmdline\n  v4l2-dbg: tool to directly get and set registers of v4l2 devices\n  v4l2-sysfs-path: sysfs helper tool\n<\/code><\/pre>\n<h1>List v4l2 devices<\/h1>\n<pre><code>$ v4l2-ctl --list-devices\n$ ls -l \/dev\/v4l\/by-id\/    # alternative<\/code><\/pre>\n<h1>Show device information<\/h1>\n<pre><code>$ v4l2-ctl --device=\/dev\/video3 --all<\/code><\/pre>\n<h1>use list-formats to determine if it contains video streams<\/h1>\n<pre><code>$ v4l2-ctl --list-formats --device \/dev\/video0<\/code><\/pre>\n<h1>List supported formats<\/h1>\n<pre><code>$ v4l2-ctl -d \/dev\/video0 --list-formats-ext<\/code><\/pre>\n<h1>Adjust video source<\/h1>\n<ul>\n<li>Brightness, zoom, focus, etc, can be adjusted with v4l2-ctl. Display all controls and their menus:\n<pre><code>$ v4l2-ctl -L<\/code><\/pre>\n<\/li>\n<li>Then adjust the value:\n<pre><code>$ v4l2-ctl -c &lt;option&gt;=&lt;value&gt;<\/code><\/pre>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>installation sudo apt install v4l-utils sudo apt show v4l-utils Package: v4l-utils Version: 1.20.0-2 Priority: optional Section: utils Maintainer: Gregor Jasny &lt;gjasny@googlemail.com&gt; Installed-Size: 1826 kB Depends: libv4l-0 (= 1.20.0-2), libv4l2rds0 (= 1.20.0-2), libc6 (&gt;= 2.28), libgcc-s1 (&gt;= 3.5), libstdc++6 (&gt;= 5.2), libudev1 (&gt;= 183) Breaks: ivtv-utils (&lt;&lt; 1.4.1-2), media-ctl Replaces: ivtv-utils (&lt;&lt; 1.4.1-2), media-ctl Homepage: https:\/\/linuxtv.org\/downloads\/v4l-utils\/ [&hellip;] <a class=\"read-more\" href=\"https:\/\/www.fanyamin.com\/wordpress\/?p=1092\" title=\"Permanent Link to: v4l2 utils\">&rarr;Read&nbsp;more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1092","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1092"}],"collection":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1092"}],"version-history":[{"count":2,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1092\/revisions"}],"predecessor-version":[{"id":1102,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1092\/revisions\/1102"}],"wp:attachment":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}