|
@@ -0,0 +1,36 @@
|
|
|
+# v4l2-ctl
|
|
|
+
|
|
|
+> ๋น๋์ค ์ฅ์น ์ ์ด.
|
|
|
+> ๋ ๋ง์ ์ ๋ณด: <https://manned.org/v4l2-ctl>.
|
|
|
+
|
|
|
+- ๋ชจ๋ ๋น๋์ค ์ฅ์น ๋์ด:
|
|
|
+
|
|
|
+`v4l2-ctl --list-devices`
|
|
|
+
|
|
|
+- ๊ธฐ๋ณธ ๋น๋์ค ์ฅ์น `/dev/video0`์ ์ง์ ๋น๋์ค ํฌ๋งท๊ณผ ํด์๋ ๋์ด:
|
|
|
+
|
|
|
+`v4l2-ctl --list-formats-ext`
|
|
|
+
|
|
|
+- ํน์ ๋น๋์ค ์ฅ์น์ ์ง์ ๋น๋์ค ํฌ๋งท๊ณผ ํด์๋ ๋์ด:
|
|
|
+
|
|
|
+`v4l2-ctl --list-formats-ext --device {{๊ฒฝ๋ก/๋์/๋น๋์ค_์ฅ์น}}`
|
|
|
+
|
|
|
+- ๋น๋์ค ์ฅ์น์ ๋ชจ๋ ์ธ๋ถ ์ ๋ณด ๊ฐ์ ธ์ค๊ธฐ:
|
|
|
+
|
|
|
+`v4l2-ctl --all --device {{๊ฒฝ๋ก/๋์/๋น๋์ค_์ฅ์น}}`
|
|
|
+
|
|
|
+- ํน์ ํด์๋๋ก ๋น๋์ค ์ฅ์น์์ JPEG ์ฌ์ง ์บก์ฒ:
|
|
|
+
|
|
|
+`v4l2-ctl --device {{๊ฒฝ๋ก/๋์/๋น๋์ค_์ฅ์น}} --set-fmt-video=width={{๋๋น}},height={{๋์ด}},pixelformat=MJPG --stream-mmap --stream-to={{๊ฒฝ๋ก/๋์/์ถ๋ ฅ.jpg}} --stream-count=1`
|
|
|
+
|
|
|
+- ๋น๋์ค ์ฅ์น์์ ์์ ๋น๋์ค ์คํธ๋ฆผ ์บก์ฒ:
|
|
|
+
|
|
|
+`v4l2-ctl --device {{๊ฒฝ๋ก/๋์/๋น๋์ค_์ฅ์น}} --set-fmt-video=width={{๋๋น}},height={{๋์ด}},pixelformat={{ํฌ๋งท}} --stream-mmap --stream-to={{๊ฒฝ๋ก/๋์/์ถ๋ ฅ}} --stream-count={{์บก์ฒํ _ํ๋ ์_์}}`
|
|
|
+
|
|
|
+- ๋ชจ๋ ๋น๋์ค ์ฅ์น์ ์ปจํธ๋กค๊ณผ ๊ทธ ๊ฐ ๋์ด:
|
|
|
+
|
|
|
+`v4l2-ctl --list-ctrls --device {{๊ฒฝ๋ก/๋์/๋น๋์ค_์ฅ์น}}`
|
|
|
+
|
|
|
+- ๋น๋์ค ์ฅ์น ์ปจํธ๋กค ๊ฐ ์ค์ :
|
|
|
+
|
|
|
+`v4l2-ctl --device {{๊ฒฝ๋ก/๋์/๋น๋์ค_์ฅ์น}} --set-ctrl={{์ปจํธ๋กค_์ด๋ฆ}}={{๊ฐ}}`
|