Difference between revisions of "video 4 linux 2 notes"
From Noah.org
Jump to navigationJump to searchm (Created page with 'Category:Engineering = V4L2 -- Video For Linux Version Two = == UVC == For a list of cameras that support UVC see the official [http://www.ideasonboard.org/uvc/ Linux UV…') |
m |
||
Line 2: | Line 2: | ||
= V4L2 -- Video For Linux Version Two = | = V4L2 -- Video For Linux Version Two = | ||
− | |||
== UVC == | == UVC == | ||
Line 23: | Line 22: | ||
<pre> | <pre> | ||
gst-launch v4l2src device=/dev/video0 ! 'video/x-raw-yuv,width=640,height=480,framerate=60/1' ! xvimagesink | gst-launch v4l2src device=/dev/video0 ! 'video/x-raw-yuv,width=640,height=480,framerate=60/1' ! xvimagesink | ||
+ | </pre> | ||
+ | |||
+ | == Capture video and modify settings at the same time == | ||
+ | |||
+ | Start `guvcview` with the '''--control_only''' option to display a GUI dialog to edit camera settings. This will work while another video display or capture application is already running. | ||
+ | <pre> | ||
+ | guvcview --control_only --device=/dev/video0 | ||
</pre> | </pre> |
Revision as of 15:31, 10 June 2011
Contents
V4L2 -- Video For Linux Version Two
UVC
For a list of cameras that support UVC see the official Linux UVC site. Full UVC support in Linux:
I have been using a Logitech HD Pro Webcam C910, USB Device ID: 046d:0821, for my tests.
Gstreamer
Gstreamer is fast replacing all my other command-line tools for handling video.
1920x1080: This will have a low frame-rate since it will essentially max-out the USB bandwidth. It's useful for capturing individual frames without compression.
gst-launch v4l2src device=/dev/video0 ! 'video/x-raw-yuv,width=1920,height=1080' ! xvimagesink
This will capture at a higher framerate, but it will undersample the pixels so you will get an effective 320x240 resolution.
gst-launch v4l2src device=/dev/video0 ! 'video/x-raw-yuv,width=640,height=480,framerate=60/1' ! xvimagesink
Capture video and modify settings at the same time
Start `guvcview` with the --control_only option to display a GUI dialog to edit camera settings. This will work while another video display or capture application is already running.
guvcview --control_only --device=/dev/video0