Sunday, July 12, 2026

using vlc command line to view ubuntu usb camera at /dev/video0

Must change permissions on /dev/video0 from 660 to 666, which adds rw other to the permissions.

vlc v4l2:///dev/video0:chroma=mjpg :v4l2-width=1920 :v4l2-height=1080 :v4l2-fps=30 --video-filter=adjust --brightness=1.0 --contrast=1.0 

This brings up a very dark image, need to find how to set the video settings.  the brightness and contrast settings did things, but not raising the brightness as needed.

camera being used

usb 0x0AC8 0x307B

https://forums.gentoo.org/viewtopic.php?t=820109

Z-Star Microelectronics Corp. USB 1.1 Webcam. In Linux Ubuntu, this device is supported by the built-in uvcvideo (or gspca) kernel module

To tweak the image during your capture, use these flags:

--video-filter=adjust: Loads the image manipulation plugin.
--brightness=[val]: Sets brightness (defaults to 1.0, use decimals like 1.5 to increase).
--contrast=[val]: Sets contrast (defaults to 1.0).
--saturation=[val]: Sets color saturation (defaults to 1.0).
--gamma=[val]: Sets image gamma (useful for dark lighting)


--30--

No comments:

Post a Comment